I disconnected the FTDI and the battery and plugged the Mini Pro LP into an USB supply rather than the SunAirPlus2 board and I kept the grove cable connected to SunAirPlus2. I saw no information transmitted to the receiver on the LED screen regarding the sunairplus2 however the the weather data did transmit and was displayed on the screen.?
I'm somewhat frustrated here. I though we had nailed it.
Wait, wait wait!
I think I just figured it out!
The SunAirPlus INA3221 to is set to 0x41 NOT 0x40 as the previous SunAirPlus board. I just checked my board using i2cdetect and that is the problem. Download the TX software and change the I2C address of the INA3221 from 0x40 to 0x41.
In the SDL_Arduino_INA3221.h file change the 0x40 to 0x41:
Is there anything else that needs to be fixed or adjusted to get the solar information to come into Blynk? I feel like there is something missing still and reading thru all of the Support Forum, I cannot find a similar example of data failure.
Here is what Blynk is telling me. Still says SunAirPlus is not present. It is connected. I can see data on the OLED but it doesnt show up in Blynk where I need it.
Still says Am2315 is not connected. It is connected to the TX board and does report data to the RX and can be viewed on the OLED and Blynk.
I have read thru various manuals for SunAirPlus, WXlink, and OurWeather and cannot figure this out. So I went into the code and although I dont know the language I am wondering if I found something.
In SDL_Arduino_WeatherLink_LoRa_Tx you check if the SunAirPlus is present.
It must determine it is present because it sends data to the OLED on the RX and OurWeather. I can see the battery voltage etc.
So it must be an issue with the BLYNK code in OurWeather. So I looked into that code and was able to track down each of the pieces of data and where they fit in the app on the screen. On the Solar Page, no data is being provided.
So I dug around in the OurWeather code and found this section in lines 285 to 388: So I was wondering if OurWeather/Blynk isn't finding the SunAirPlus board??? Is there something I need to change to fix this to get data to flow to Blynk? I think that is the last step to fix in this whole package of gear.
// Now solar Variables if present
delay(500); // push variables into next second - avoid flood
You had me change the address from 0x40 to 0x41 on the TX board. Do I need to change the address in the OurWeather code in the line above as I did for the TX board and then re-upload to the OurWeather board in order to get Blynk to receive SunAirPlus data?
Last Edit: Jul 15, 2020 18:10:51 GMT -8 by aarong: added new information found in code regarding address of SunAirPlus
1) The Blynk terminal is just displaying what OurWeather is detecting what is connected to OurWeather. Your SunAirPlus2 is connected to your WXLink so that is correct.
2) The address looked at by OurWeather doesn't matter, as your SunAIrPlus2 is connected to your WXLink.
3) The OurWeather code is supposed to display the local SunAirPlus2 info if it is connected locally and if it isn't, it is supposed to display the WXLink solar information. However, that is only supported in the ESP32 versions (WeatherPlus2) so you won't see the solar data from WXLink on our ESP8266 based OurWeather.
If you are so inclined, here is the link to the upgrade to OurWeather V2. I'll even throw in a $20 off coupon for you. I'll PM you the coupon code.