[Feature Request]: Anemometer support #4734
Replies: 11 comments
-
This is the first step meshtastic/protobufs#491 Using serial to pass data from a weather station is probably going to be the easiest way go get started. Analog sensors that require processing need to have a second MCU to do that processing, there are no I2C Anemometers that we have found. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the rapid reply! |
Beta Was this translation helpful? Give feedback.
-
The serial module has a protobufs mode, which is probably what we would want to use to pass data in as an environment telemetry packet. |
Beta Was this translation helpful? Give feedback.
-
We could also try and make a I2C adaptor / MCU for some of these analog sensors, or use serial from weather stations. I suspect weather stations may be the first step as a lot of people have fancy weather stations already |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
Wondering here.. What if we create something like an "stationary" module which would have 2 MCUs (one for LoRa and one for analog sensors) or a outside module. We could have some #defines to handle if it is an stationary module or not and another code to the new MCU which could transfer the data to LoRa via Serial. |
Beta Was this translation helpful? Give feedback.
-
@AllanRomanato I was thinking something like the ATTINY85 might do it, low power consumption if running from 3.3v or vbat. |
Beta Was this translation helpful? Give feedback.
-
If there's arduino code already, pick an arduino and get the anemometer running with it. Then implement an I2C slave on the board and assign it a unique address. A good source of information how to do that would be the m5stack cardkb firmware. This way you created your own (sampling, averaging and max values) i2c anemommeter which can then be added in the meshtastic firmware. |
Beta Was this translation helpful? Give feedback.
-
the key is to code the intermediate mcu so that the meshtastic firmware does not need to poll it for a few minutes. Average sensors report every 900 seconds, the wind sensor can go lower, but should at lease buffer/average measurements for about 5 minutes. One data transmission from the new sensor type can be crafted so to carry all those values. What about momentary value every 30 seconds, then average and peak values. Both for direction and speed. |
Beta Was this translation helpful? Give feedback.
-
Is anyone able to help me emulate the LARK to use on a co-processor to meshtastic in order to connect standard anamemoters? This is a bireif start I have made, meshtastic sees a connected LARK but I cant get the values to show up in meshtastic - it returns all zeros. |
Beta Was this translation helpful? Give feedback.
-
#4032 implemented I2C Anemometer support. Converting from bug to discussion so this can continue. |
Beta Was this translation helpful? Give feedback.
-
Platform
NRF52, ESP32
Description
Hi, Just wondering what the best approach might be to add Anemometer support for environmental data on Meshtastic. The use case of a remote weather station is exciting due to Meshtastics hardware support and data routing capability.
I understand a co-processor could be used and the serial module to forward data but using the hardware meshtastic is running on would seem to be more power efficient. Data could then be routed to other systems using MQTT or other integrations, and having the data available to other nodes on the default channel through telemetry packets might be useful for other nodes on the network.
Many anemometer sensors are on the market, most use an analog read pin for wind direction and a digital pin for wind speed. the DAVIS anemometers are widespread and of good quality. Code is available on Arduino to take measurements from this sensor https://github.com/wrybread/weewx-ArduinoWeatherStation/blob/master/ArduinoWeather.ino
Is there any work on adding this sensor type? Or any desire or willingness from developers to add this to Meshtastic?
Many thanks for the hard work on this fantastic project!
Regards, Mike.
Beta Was this translation helpful? Give feedback.
All reactions