Check board pins match firmware
header J11, GND, 12V, SIG, TMP, 3V3
sensor uses 12V and GND
3V3 and TMP not used
SIG wired to D32
SIG wired to R3 100K pulldown
SIG wired to D2 Zener 1N4728A 3.3V
// Connect Black wire to PCB J11-GND
// Connect Blue wire to PCB J11-SIG
// Connect Brown wire to PCB J11-12V
If you have a volt meter, you should be measuring about less than 0.4V on the Sig wire from the Adafruit sensor when stationary - not moving. I would not expect it to be any higher.
When the cups start rotating, you should see a voltage increase from 0.4V all the way up to a maximum of 2V, but I doubt if one can spin the cups manually at that speed.
regards
Robert
PS
I have attached the latest wind_speed.h file from the next firmware release. Please download this file and replace your existing wind_speed.h file with this updated one.
When you reprogram the controller, please open Serial port monitor in IDE, as there are serial print messages in the file that will help solve the issue for you.
let the firmware run for about 30s
Then move the cups by hand, just one flick to get the cups spinning and then wait till the cops are stationary.
Copy and paste the serial output into a file and please send it to me
i checked the connection of the anemometer to the board. It is the same, as you decribed.
The next step was the measurement of the voltage. If the cups are not moving, there is 0.43 volts.
If i rotate Adafruit a little bit, it goes up to 0.50.
After the download your new wind_speed.h file, i replaced it to the project. I compiled it but there was the following error in the IDE:
Arduino:1.8.19(Windows10),Board:"ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"C:\Users\Admin\Desktop\Andre\mySQM-Projekt\ESP-Firmware\IDE-Firmware\mysqmplus-firmware-129-04\mysqmplus-firmware-129-04\mysqmplus-firmware-129-04.ino:Infunction'void setup()':mysqmplus-firmware-129-04:3032:3:error:'int_rainvoltagesensors'wasnotdeclaredinthisscopeint_rainvoltagesensors();^~~~~~~~~~~~~~~~~~~~~~C:\Users\Admin\Desktop\Andre\mySQM-Projekt\ESP-Firmware\IDE-Firmware\mysqmplus-firmware-129-04\mysqmplus-firmware-129-04\mysqmplus-firmware-129-04.ino:3032:3:note:suggestedalternative:'init_windspeedvoltagesensors'int_rainvoltagesensors();^~~~~~~~~~~~~~~~~~~~~~init_windspeedvoltagesensorsMehrereBibliothekenwurdenfür"mySSD1306Ascii.h"gefundenBenutzt:C:\Users\Admin\Documents\Arduino\libraries\myOLEDNichtbenutzt:C:\ProgramFiles(x86)\Arduino\libraries\myOLEDNichtbenutzt:C:\ProgramFiles(x86)\Arduino\libraries\mysqmplus-firmware-129-04MehrereBibliothekenwurdenfür"WiFiServer.h"gefundenBenutzt:C:\Users\Admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\WiFiNichtbenutzt:C:\ProgramFiles(x86)\Arduino\libraries\WiFiMehrereBibliothekenwurdenfür"ArduinoJson.h"gefundenBenutzt:C:\Users\Admin\Documents\Arduino\libraries\ArduinoJsonNichtbenutzt:C:\Users\Admin\Documents\Arduino\libraries\arduino_713731exitstatus1'int_rainvoltagesensors'wasnotdeclaredinthisscopeDieserBerichtwäredetaillierter,wenndieOption"Ausführliche Ausgabe während der Kompilierung"inDatei->Voreinstellungenaktiviertwäre.
Thanks a lot...
Best regards
André
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Andre
header J11, GND, 12V, SIG, TMP, 3V3
sensor uses 12V and GND
3V3 and TMP not used
SIG wired to D32
SIG wired to R3 100K pulldown
SIG wired to D2 Zener 1N4728A 3.3V
// Connect Black wire to PCB J11-GND
// Connect Blue wire to PCB J11-SIG
// Connect Brown wire to PCB J11-12V
If you have a volt meter, you should be measuring about less than 0.4V on the Sig wire from the Adafruit sensor when stationary - not moving. I would not expect it to be any higher.
When the cups start rotating, you should see a voltage increase from 0.4V all the way up to a maximum of 2V, but I doubt if one can spin the cups manually at that speed.
regards
Robert
PS
I have attached the latest wind_speed.h file from the next firmware release. Please download this file and replace your existing wind_speed.h file with this updated one.
When you reprogram the controller, please open Serial port monitor in IDE, as there are serial print messages in the file that will help solve the issue for you.
let the firmware run for about 30s
Then move the cups by hand, just one flick to get the cups spinning and then wait till the cops are stationary.
Copy and paste the serial output into a file and please send it to me
regards
Robert
Last edit: brownrb 2022-07-23
Hi Robert,
i checked the connection of the anemometer to the board. It is the same, as you decribed.
The next step was the measurement of the voltage. If the cups are not moving, there is 0.43 volts.
If i rotate Adafruit a little bit, it goes up to 0.50.
After the download your new wind_speed.h file, i replaced it to the project. I compiled it but there was the following error in the IDE:
Thanks a lot...
Best regards
André
Hi Andre
Yes, there is an error there, It is fixed in the next release, but that invokes another fix in another file as well.
So not a simple matter of replacing the two files that need to be altered.
Please email me at gmail.com and I will add permission for you to access the RC for the next release. Look for address in firmware or pdf.
regards
Robert