Following my first project ie a solar powered waterproof anemoter, let me introduce you : the solar powered waterproof windvane. Mostly based on the same form factor, I only had to re-designed the top part with Fusion 360.
There are eight resistors in the wind vane, and as the magnet rotates, different reed switches will open and close and thus switch their corresponding resistor in and out of the circuit.
Schematic reedwitches and resistors
Implementation reedswitches and resistors
Voltage divider (R1 is 10kOhm is this project and R2 will vary regarding how reed switches are open or close)
Electronic spare parts needed :
- 3.7v Lithium battery (650 mAh)
- Lithium battery charger module TP4056
- ESP32 DevKit)
- Home made voltage divider with 2 resitors 33KOhm and 7.5kOhm
- Solar panel
- XH2.54 connectors
- 30 AWG (0.08mm) silicon wire
- 3.7v Lithium battery (1200 mAh)
- Bearing 608ZZ
- 4 neodymium magnets (8mm)
- Some resistors
- Some nuts and bolts
Quite easy :
- Wire positive and negative 3.7v battery to ESP32 DevKit (Careful connect to 5v pin, not 3.3v !!), Voltage divider (the one that will measure the battery voltage), TP4056
- Wire the voltage divider that will measure the wind direction to 3.3v pin (that way we have a constant voltage)
- GPIO34 to output of voltage divider (measure wind direction)
- GPIO35 to ouput of voltage divider (measure battery voltage)
All 3D models can be found on my Thingiverse for free or in the model3d folder of this project
I included a mount system that fits on H pole like this one :
If needed, I can provide the 3d model solar panel holder
- In place
- Inside the beast (we can the custom voltage divider)
- Fusion 360 design
- Tampered ESP32 DevKit (I replaced the AMS1117 LDO 1v dropout by HT7333 only 250mA but low dropout)
- Top view (we can see the bearing)