-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Tx20 Wind Sensor #3146
Added Tx20 Wind Sensor #3146
Conversation
Hi @TheEggi sounds interesting 👍 |
To be honest ... I don't have anything that I could compare it to. I mean the position is marked on the sensor and seems to work as expected but for the wind speed the only test that I could do was to blow at it and see if the speed is increasing/decreasing - and that seemed to have worked. If you have a better way/idea (without any real testing equipment) how I can test the precision of the device, I am more than happy to try it. |
I think i buy one. I can compare it with the quality (expensive) Aneometer from my brother (hang gliding...) |
Thank you very much @TheEggi for implementing this! I have just returned from a businesstrip and have a lot of work to do. However, I already have a NodeMCU and a TX20 sensor on my desk to test that as soon as possible. I'm so curious if that works well. I can compare the results with my mdt SCN-WS3HW.01 Weatherstation. Thank you again! |
Hello, |
@@ -2551,4 +2551,5 @@ void loop() | |||
|
|||
// yield(); // yield == delay(0), delay contains yield, auto yield in loop | |||
delay(sleep); // https://github.com/esp8266/Arduino/issues/2021 | |||
XsnsCall(FUNC_LOOP); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, This line shouldn't be there.
Please, check other sensors to see the way tasmota handle this.
/*********************************************************************************************\ | ||
* Tx20 wind sensor | ||
\*********************************************************************************************/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add a
#ifdef USE_TX20_wind_sensor |
in order to enable or disable this sensor from user_config.h file
By default this sensor should be disabled in user_config.h
#endif // USE_WEBSERVER | ||
} | ||
return result; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add below this a
#endif // enable sensor
This PR has been rebased with the new version of Tasmota. Could you update it? |
What does the analogue input in screenshot "10" indicate? |
Means that in his version he has enabled the use of the Analog input on the pin A0 but nothing is connected there. Just that. Nothing to do with this PR nor the sensor. Don't worry. |
Added most of your suggestions. Maybe you have a suggestion on which sensor I could check as an example to remove the FUNC_LOOP. |
Based on your work I will rewrite and release soon. You then have the opportunity to test as I do not own a Tx20... |
I see that you translate D_UNIT_KMH into "kpH". Shouldn't that be "kmh"? |
I guess kmh is the correct short form of kilometer per hour – so you are right. |
Hello together, |
Just released a version for the TX20. Give it a try and let me know if it works pls. |
Seems to be working. Thank you for adding it. |
Thx for testing ;-) |
Hi, I have a doubt. I bought a TX20 sensor and it does not work for me. I have loaded the latest tastmota firmware in a basic sonoff and soldered the black cable in gpio4, the yellow and green cable in gnd and the red in vcc. I have also selected in the configuration that gpio4 acts with TX20. Should we do more? Thank you very much for your work, it is just what I was looking for. |
Nope, works fine for me |
it works fine for me too. No Problems |
what hardware do you use? All cables (red -> 3,3v) (green, yellow -> gnd) (black -> d2) are already connected before starting the Wemos. I am using a Wemos d1 mini and its 3,3v. Strange is that the wind direction is updated. Is there a way to debug it? |
Isnt installed because solar charging part isnt done right now... |
How long is the cable from your TX-20? I had some measurement results for a few seconds yesterday. |
I cut the cable down to ~1.5m as I did not need it to be any longer - worked without any issues. |
Can you take a picture with the model number? |
Does anyone still have a photo with the original pin assignment? |
e possibile direttamente da tasmota abilitare un uscita una volta arrivati ad una soglia di velocità ? |
I tried the TX23 because the TX20 is not available any longer. The TX23 is not compatible! Even the support for the TX20 was dropped in recent releases (8.1) ... |
Support for TX20 is NOT dropped. It is just not in a precompiled version (as many other drivers) |
The "Complete list of available feature and sensors." states that tasmota-sensors.bin supports the TX20. So the precompiled supprt is dropped. I won't compile a version because I only own a TX23 which is not compatible ... |
I'm currently trying to adapt the TX20 driver also for TX23. The protocol is the same but TX23 needs an initial signal to send out their data where TX20 sends every 2 seconds automatically. |
Add support for La Crosse TX23 Anemometer (#3146)
Details of the sensor can be found in this issue:
#2654
The wind sensor consist of:
Config:
Result:
Json Result:
"TX20":{"SPEED_AVG:":nan, "SPEED_MAX":0.00, "DIRECTION":"NNE"}