TX-20 Wind sensor with ESP8266
Posted: Fri Jun 03, 2016 11:50 am
I would like to make a weather station powered by wemos D1 mini, that is an ESP8266 based platform.
I bought a TX-20 wind sensor, that is a common and well loved DIY sensor. I found code for arduino that is working fine. Here is:
http://fabrizio.zellini.org/decoding-la-crosse-tx20-anemometer-with-arduino
The problem is, the code using the AVR library that is NOT avaiable in the Wemos.
So, I have two option:
try to understand how working the sensor and make a new program from base.
try to found an AVR or compatible library to ESP8266.
I am not familiar the interrupts and how read this kind of data. But maybe someone can read the arduino code and translate to ESP or help me. Or maybe someone can give me a AVR library or any good ideas
My worst case scenario is using an arduino to communicate with TX-20 and connect to the Wemos over i2C. But i like to solve with one MC if possible!
I bought a TX-20 wind sensor, that is a common and well loved DIY sensor. I found code for arduino that is working fine. Here is:
http://fabrizio.zellini.org/decoding-la-crosse-tx20-anemometer-with-arduino
The problem is, the code using the AVR library that is NOT avaiable in the Wemos.
So, I have two option:
try to understand how working the sensor and make a new program from base.
try to found an AVR or compatible library to ESP8266.
I am not familiar the interrupts and how read this kind of data. But maybe someone can read the arduino code and translate to ESP or help me. Or maybe someone can give me a AVR library or any good ideas
My worst case scenario is using an arduino to communicate with TX-20 and connect to the Wemos over i2C. But i like to solve with one MC if possible!