I am having some trouble with my new build.
I have bought the anenometer and it works nicely on my protoboard with the other sensors, BME280, TSL2591 and MLX90614.
I used the sketches from cactus.io to check the anenometer and they read nicely.
My oled is an SH1106, which works nicely with u8g2, so no luck until I get an SSD1306
With version 1.10 and 1.11 from github I can't compile the sketch without #def USE_OLED due to some missing preprocessser directives
in the ino, there is also a typo in the JsonDocument declaration at the start of getSensorData, see patch
My three I2C sensors read nicely with weatherradio unless I use the anenometer.
I thought this might be due to my hardware setup so I wrote another script and the anenometer works (vane and windspeed) with the sensors
so I am trying to figure out where the problem is.
In weatherradio if I run the anenometer on its own
{
"Davis Anemometer": {
"init": true,
"direction": 60,
"avg speed": 4.924791,
"min speed": 0.252556,
"max speed": 11.95702,
"rotations": 130
}
}
If I add an I2C sensor (BME280)
Weather Radio V 1.10 (should say 1.11)
{
"Davis Anemometer": {
"init": true,
"direction": 98,
"avg speed": 0,
"min speed": 0,
"max speed": 0,
"rotations": 0
},
"BME280": {
"init": true,
"Temp": 16.58,
".2793
}
}
Woops what is that ".2793 ????
Worse with 2 sensors BME and MLX
Weather Radio V 1.10
{
"Davis Anemometer": {
"init": true,
"direction": 104,
"avg speed": 0,
"min speed": 0,
"max speed": 0,
"rotations": 0
},
"BME280": {
"init": true,
"Temp": 16.49,
8.42871
},
"MLX90614": {
}
}
Woops strange character before 8.4
With three sensors
Weather Radio V 1.10
{
"Davis Anemometer": {
"init": true,
"direction": 105,
"avg speed": 0,
"min speed": 0,
⸮⸮W⸮U⸮
⸮⸮7U⸮]Ul"Timing": 1
}
}
An example output with my test script
BME280
T = 16.48 *C
P = 1028.22 hPa
H = 48.18 %
MLX90614
Ambient T = 16.35 *C
Object T = 16.23 *C
TSL2591
[ 33511 ms ] IR: 213 Full: 13960074 Visible: 906 Lux: 2.526531
DAVIS VANE
424 149 SE
DAVIS WIND
60 45.00
{
"BME280": {
"init": true,
"Temp": 16.48,
"Pres": 1028.209,
"Hum": 48.17773
},
"MLX90614": {
"init": true,
"T amb": 16.31,
"T obj": 16.32999
},
"TSL2591": {
"init": true,
"Lux": 2.440772,
"Visible": 874,
"IR": 205,
"Gain": 32,
"Timing": 1
}
}
Not sure if any you have seen this. Are any of you using the anenometer with the i2c sensors connected to the same arduino?
My RG-11 has arrived, but I won't start with that until I have figured this out.
Kind regards
Adrian