-
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
New windmeter sensor #8283
New windmeter sensor #8283
Conversation
In tasmota/support_features.ino your added lines shouldn't be commented out. |
Yes, ok.. done! I was trying to figure out if that kind of modification could be done myself. |
# Conflicts: # tasmota/language/bg-BG.h # tasmota/language/cs-CZ.h # tasmota/language/de-DE.h # tasmota/language/el-GR.h # tasmota/language/en-GB.h # tasmota/language/es-ES.h # tasmota/language/fr-FR.h # tasmota/language/he-HE.h # tasmota/language/hu-HU.h # tasmota/language/it-IT.h # tasmota/language/ko-KO.h # tasmota/language/nl-NL.h # tasmota/language/pl-PL.h # tasmota/language/pt-BR.h # tasmota/language/pt-PT.h # tasmota/language/ro-RO.h # tasmota/language/ru-RU.h # tasmota/language/sk-SK.h # tasmota/language/sv-SE.h # tasmota/language/tr-TR.h # tasmota/language/uk-UA.h # tasmota/language/zh-CN.h # tasmota/language/zh-TW.h
# Conflicts: # tasmota/language/bg_BG.h # tasmota/language/cs_CZ.h # tasmota/language/de_DE.h # tasmota/language/el_GR.h # tasmota/language/en_GB.h # tasmota/language/es_ES.h # tasmota/language/fr_FR.h # tasmota/language/he_HE.h # tasmota/language/hu_HU.h # tasmota/language/it_IT.h # tasmota/language/ko_KO.h # tasmota/language/nl_NL.h # tasmota/language/pl_PL.h # tasmota/language/pt_BR.h # tasmota/language/pt_PT.h # tasmota/language/ro_RO.h # tasmota/language/ru_RU.h # tasmota/language/sk_SK.h # tasmota/language/sv_SE.h # tasmota/language/tr_TR.h # tasmota/language/uk_UA.h # tasmota/language/zh_CN.h # tasmota/language/zh_TW.h
Hi LeoTasmo,
Thank you for your appreciation. :)
The only documentation available for now is in Commands section of Tasmota
docs; search for "Sensor68". There you can get info on how configuring
basic parameters related to anemometer.
I have also a new pull-request tasmota/docs#310 that
completes docs.
To use this feature, you have to activate it into your custom build, it's
not included in any precompiled file. You have to use: "#define
USE_WINDMETER" in your "user_config_override.h" file.
Once enabled you will be able to configure a GPIO as "WindMeter Spd".
Il ven 15 mag 2020, 21:08 LeoTasmo <notifications@github.com> ha scritto:
… Hello, nice new feature. Is there any documentation how to use this
feature? Is it already included in the precompiled bin-files?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8283 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6RY6PEKGOVZ4LBMK46JR3RRWHKRANCNFSM4MRDR66Q>
.
|
can i report a bug to the windmeter here? when using 3 pulses per rotation, it shows only 2,14 or 4,27 as windspeed |
Hi @lacrimosa2k2 , calculations rely on a numeric counter that counts pulses on the selected GPIO pin; maybe count are not reported correctly due to specific setup conditions. |
thanks that was a logik problem by my wire, i have figured out another problem that is crazy. i have a pulse signal (windmeter) on gpio4 or gpio5 (i testet it on all avaible pins) and and the windmeter turns and comes pulse in, and then i restart the esp, it could not boot complete, it reboots so often that its looses the config. |
Hi I can confirm lacrimosa2k2 Issue, because I have the exact same behaviour. ` ets Jan 8 2013,rst cause:2, boot mode:(3,0) load 0x4010f000, len 3456, room 16 Exception (0): '>>>stack>>> Regards! |
@sergios100 @lacrimosa2k2 What device are you using? ESP8266? Are you sure that your GPIOs are free for external uses? |
@malbinola i have exact the same ecxeption i tested it on a sonoff t1 2ch and a sonoff basic r2 (ESP8285). both on pins GPIO1/4/5/14 all same error. i think @sergios100 and me dont uses hardware buttons, i have soldered on the pins. my config is a hall sensor with digital out that goes high on signal, a npn transistor to invert the signal so that the high pin from the esp goes to ground when a magnet comes in range . sorry for bad english, greets from germany |
I use a ESP8266 NodeMCU V3 on a Base Board ProtoShield with Voltageregulator: As far as I know, the Pins I tested (gpio4, gpio5 and gipo12) should be directly routed to the solder PIN on the ProtoShield and free of any other functionality. I use an Eltako WindMeter https://www.eltako.com/fileadmin/downloads/de/datenblatt/Datenblatt_WS.pdf (I guess inside is a Reed-Switch in series with a 120Ohm Resistor which gets orbited by two magnets per revolution. So I measure infinite Ohm and two times 120Ohms per Revolution on the to Cables that leave the Sensor). I have to mention, that this setup was running fine using tasmotas counter function and some rules, there were no crashes. But I had to do the speed calculations in NodeRed and I did not have the nice Sensor-Data (avg. Speed, min, max, actual) on the Web-Interface. Greetings from Switzerland! |
@malbinola so i tested it with a wemos d1 mini with the same result, it hangs on bootloop until the config is resetet. with the counter function it runs fine |
@lacrimosa2k2, @sergios100 |
@malbinola i try it without the ISR, and no crashes :) btw another question, i cant find anything for a powermeter that gives 1000 pulses per KWh, i use a counter for and give him the aktual powermeter numbers. can you make a copy of your windmeter script to like a a powermeter? |
@lacrimosa2k2 have a look on the sml/scripter section in the docu. Sent with GitHawk |
thanks, i have seen this, but can i use rules and script at the same? i use rules at the moment, the sml config is so verry big and confusing |
@lacrimosa2k2 no. Not at the same time. Sent with GitHawk |
What value are you using for debounce time?
I suspect that with 3 pulses per rotation many counts could fall into the
same interval between the initial pulse and the debounce time.
Try to change it to a lower value.
Il lun 8 giu 2020, 16:20 lacrimosa2k2 <notifications@github.com> ha scritto:
… @malbinola <https://github.com/malbinola> i try it without the ISR, and
no crashes :)
but i think the code is a little bit slow, my 3 pulses are registred when
i turn it by hand, but when it runs fast the wind speed displays max 12,xx
what changes for the interupt managment?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8283 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6RY6MDLMQFPXXFSZLMJBLRVTXRZANCNFSM4MRDR66Q>
.
|
@malbinola i have test the debounce 2-10ms @kugelkopf123 i have one compuled file for all my devices with different sensors etc, i think i dont change all to script, i hope it give a simple way to calculate watts consumption |
@lacrimosa2k2 yes, they are already low values If it doesn't work, next step could be to completely disable debounce check, keeping only the counter increment in ISR. But i think that you have do add a such sort of hw-debounce like this outside. In theory in this way we are sure that we have the right counter value without any time-dependent debounce logic. It's strange because current code is acting like the counter sensor that you were using before. Isn't it? During my tests i had a similar issue (speed capped at fixed value) but i solved lowering the debounce time, but my anemometer has only 1 magnet. |
@malbinola i will try it at the week with the new code |
@malbinola tested it, without visibil change. the windmeter works, but the counts are to low. |
@malbinola Hey Matteo! |
@lacrimosa2k2 i cannot exclude that aren't problems with different pulsesXrot, my situation (value 1) is the simplest case. Once you have a reliable value of counter you can concentrate on speed: looking at the formula the only key point that can differ from my situation is the part "(WindMeter.counter / Settings.windmeter_pulses_x_rot)", an explicit cast to float on counter value is maybe missing (like "(float)WindMeter.counter").
Unfortunately i do not have any experience with tasmota's rules/triggers, i use windmeter sensor through HomeAssistant automations.
Speed and other data (like average) are included in tele messages so the are sent according the main tele period setting (if i remember well 300 is the default). If you want to be more reactive you can obviously lower that value (but you will have lot of tele messages overhead especially in absence of wind), otherwise you can set the minimum percentage change between current and last reported speed (5th option with Sensor68 command). So, if the current speed differs from the last reported by a percentage value greater than the set threshold, the sensor will trigger/send an optional tele message. |
This sensor add support to simple cup anemometers based on reed switch (like https://www.amazon.it/08880905D-ANEMOMETRO-SENSORE-CRISTAL-ALMOT/dp/B07CJ83XF5).
It provides like Tx20 sensor (from which this is inspired) info about instant, min, max and average wind speed.
The configuration command allow to customize parameters (radius, pulses per rotation, reed bounce time and correction factor) related to the specific anemometer in use.
Lastly, how to deal with support_features.ino changes?
Can i take the next free one like below?
Related issue (if applicable): #5391, #2132
Checklist: