|
Post by jerrym on Feb 13, 2021 17:07:10 GMT -8
I have installed the solar power extender kit which has the SunAirPlus2 solar controller board to the Weather Plus 2 board. The data does not show up on the Blynk app and shows up as "Not Present" in the status log. I have enclosed my hookup.
|
|
|
Post by SDL on Feb 14, 2021 10:01:26 GMT -8
Are you able to recompile the code?
The issue is that the old SunAIrPlus i2c was at 0x40 and SunAirPlus2 is at 0x41.
The line in the code (SDL_Arduino_INA3221.h) to change is:
/*========================================================================= I2C ADDRESS/BITS -----------------------------------------------------------------------*/ #define INA3221_ADDRESS (0x40) // 1000000 (A0+A1=GND)
Change 0x40 to 0x41 and it will start working.
BP
|
|
|
Post by jerrym on Feb 15, 2021 18:08:05 GMT -8
Is there a tutorial on recompiling the code?
|
|
|
Post by SDL on Feb 17, 2021 8:34:58 GMT -8
|
|
|
Post by jerrym on Apr 30, 2021 16:57:29 GMT -8
Hello I am trying to recompile the code on my weather plus 2 board and I am running into the following errors when using the Arduino IDE and compiling the program.
Arduino: 1.8.13 (Windows 10), Board: "Adafruit ESP32 Feather, 80MHz, 115200, None, Default"
SDL_ESP32_OurWeather:311:19: error: 'WEB_SERVER_PORT' was not declared in this scope
WiFiServer server(WEB_SERVER_PORT);
^
SDL_ESP32_OurWeather:701:24: error: 'LOCALMAC' was not declared in this scope
static uint8_t mac[] = LOCALMAC;
SDL_ESP32_OurWeather:702:23: error: 'LOCALIP' was not declared in this scope
static uint8_t ip[] = LOCALIP;
^
C:\Users\jermo\Documents\Arduino\SDL_ESP32_OurWeather\SDL_ESP32_OurWeather.ino: In function 'void setup()':
SDL_ESP32_OurWeather:2401:18: error: 'WEB_SERVER_PORT' was not declared in this scope
Serial.println(WEB_SERVER_PORT);
^
Multiple libraries were found for "WiFi.h"
Used: C:\Users\jermo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
'WEB_SERVER_PORT' was not declared in this scope
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
|
|
|
Post by SDL on May 1, 2021 15:47:51 GMT -8
Search on "WEB_SERVER_PORT" here in the forum. I know that we have seen this before.
BP
|
|
|
Post by jerrym on May 2, 2021 11:34:20 GMT -8
Would I be able to send the board back to you to get reprogrammed? I need it to work with the SunAirPlus2 solar controller board I had purchased a while back.
|
|
|
Post by SDL on May 2, 2021 12:31:11 GMT -8
Have you updated to the latest OurWeather software via Over the Air as in the manual?
BP
|
|
|
Post by jerrym on May 2, 2021 13:29:22 GMT -8
I was trying to recompile the the software outlined in the Advanced Usage manual.
|
|
|
Post by SDL on May 2, 2021 14:36:48 GMT -8
Use the Over the air update. What version are you currently running?
BP
|
|
|
Post by jerrym on May 3, 2021 2:56:12 GMT -8
I think while trying to recompile the code, the files were erased.
|
|
|
Post by jerrym on May 3, 2021 15:01:48 GMT -8
Will I have to purchase another board if the files are erased or corrupt.
|
|
|
Post by SDL on May 3, 2021 17:13:03 GMT -8
Go ahead and put it in the mail and I'll reprogram it for you. No problem. Happy to help.
Send it to:
SwitchDoc Labs RMA#050321-01 ATTN: BP 909 S Shelley Lake Lane Spokane Valley, WA 99037
BP
|
|
|
Post by chancetran on Oct 28, 2021 6:42:09 GMT -8
Hi....The SPI communicate driver has a support of 16 bit. To send longer information, I wanted to utilize either 3 arrangement of 8 pieces or 2 arrangement of 16 pieces. In both the cases, I see little hole in clock between two sets (like the main picture).
The information to communicate is (0x88 FFFF) will give me full scale voltage on the channel 0. Is there some setup more needed prior to composing information?
|
|
|
Post by SDL on Oct 28, 2021 6:54:39 GMT -8
SPI? This is an I2C device.
BP
|
|