Wind direction faulty reading

Hello all, I have tried to replicate your weather station project(https://learn.sparkfun.com/tutorials/we … ground/all) but with small diffrences. I have the Weather Meter Kit hooked-up to Weather Sparkfun Shield which is stacked on RedBoard Photon . All fine and well until I have wrong reading on the wind direction. After checking the hookup guide and the schematics of weather shield I realized I haven’t taken in account the 3.3 V board against the 5V shield . Do you have any preposition for a solution? The first thing that comes in my mind is to use a voltage divider (Trimpot 10K https://www.sparkfun.com/products/9806 and link the Vout to Wdir pin on weather shield and Vin to 3.3V pin from the weather shield and GND to GND),but I’m not quite experienced with them.

:smiley: :smiley:

The shield you’re using is made to provide 5 volt power to the wind vane and our code is expecting analog values based on a 5 volt power source.

Since you’re using a 3.3 volt board, you will need to modify things so that you’re not feeding more than 3.3 volts to the analog pin on your micro controller and the analog readings you get are probably not going to match our code so you will also need to modify the code a bit.

Might be easiest to make a test sketch that only reads the wind vane and reports an analog value. With that running, you can rotate the vane around slowly and record the values you get for each compass direction and then put those into your final sketch.

Thank you for your answer! But I want to ask again what solution would be good not to feed to the MCU more than 3.3V, would a potentionmeter with the connection to WDIR , 3.3V and GND weather shield pins work?

Maybe WDIR, Analog in and GND would work for you, it’s going to take some testing to find out what gives the best values.

Oke, I will give it a try . Thanks!