Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Specific libraries to compile the KC868-A32 Demo
#1
Could you specify the exact libraries to compile the demo for:

PCF8574.h  (there are many available to install)

WiFiManager.h

Sorry if this is an obvious answer to experienced users, I get numerous errors and I've tried many libraries


WARNING: library WiFiManager-master claims to run on esp8266, esp32 architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
KC868-A32_Web_Server:11:1: error: 'WiFiManager' does not name a type; did you mean 'WiFiManager_h'?
WiFiManager wm;
^~~~~~~~~~~
WiFiManager_h
KC868-A32_Web_Server:34:27: error: no matching function for call to 'TwoWire::TwoWire(int)'
TwoWire I2Cone = TwoWire(0);
                          ^
In file included from C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:38:0,
                from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:52:5: note: candidate: TwoWire::TwoWire()
    TwoWire();
    ^~~~~~~
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:52:5: note:  candidate expects 0 arguments, 1 provided
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note: candidate: constexpr TwoWire::TwoWire(const TwoWire&)
class TwoWire : public Stream
      ^~~~~~~
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note:  no known conversion for argument 1 from 'int' to 'const TwoWire&'
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note: candidate: constexpr TwoWire::TwoWire(TwoWire&&)
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note:  no known conversion for argument 1 from 'int' to 'TwoWire&&'
KC868-A32_Web_Server:35:27: error: no matching function for call to 'TwoWire::TwoWire(int)'
TwoWire I2Ctwo = TwoWire(1);
                          ^
In file included from C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:38:0,
                from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:52:5: note: candidate: TwoWire::TwoWire()
    TwoWire();
    ^~~~~~~
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:52:5: note:  candidate expects 0 arguments, 1 provided
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note: candidate: constexpr TwoWire::TwoWire(const TwoWire&)
class TwoWire : public Stream
      ^~~~~~~
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note:  no known conversion for argument 1 from 'int' to 'const TwoWire&'
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note: candidate: constexpr TwoWire::TwoWire(TwoWire&&)
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note:  no known conversion for argument 1 from 'int' to 'TwoWire&&'
KC868-A32_Web_Server:37:41: error: no matching function for call to 'PCF8574:TongueCF8574(TwoWire*, int, int, int)'
PCF8574 pcf8574_R1(&I2Ctwo, 0x24, 15, 13);
                                        ^
In file included from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:0:
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note: candidate: PCF8574:TongueCF8574(uint8_t, uint8_t, void (*)())
  PCF8574(uint8_t address, uint8_t interruptPin,  void (*interruptFunction)() );
  ^~~~~~~


                                        ^
In file included from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:0:
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note: candidate: PCF8574:TongueCF8574(uint8_t, uint8_t, void (*)())
  PCF8574(uint8_t address, uint8_t interruptPin,  void (*interruptFunction)() );
  ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note:  candidate expects 3 arguments, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:109:2: note: candidate: PCF8574:TongueCF8574(uint8_t)
  PCF8574(uint8_t address);
  ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:109:2: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(const PCF8574&)
class PCF8574 {
      ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(PCF8574&&)
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
KC868-A32_Web_Server:39:41: error: no matching function for call to 'PCF8574:TongueCF8574(TwoWire*, int, int, int)'
PCF8574 pcf8574_R3(&I2Ctwo, 0x21, 15, 13);
                                        ^
In file included from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:0:
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note: candidate: PCF8574:TongueCF8574(uint8_t, uint8_t, void (*)())
  PCF8574(uint8_t address, uint8_t interruptPin,  void (*interruptFunction)() );
  ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note:  candidate expects 3 arguments, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:109:2: note: candidate: PCF8574:TongueCF8574(uint8_t)
  PCF8574(uint8_t address);
  ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:109:2: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(const PCF8574&)
class PCF8574 {
      ^~~~~~~


      ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(PCF8574&&)
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
KC868-A32_Web_Server:45:39: error: no matching function for call to 'PCF8574:TongueCF8574(TwoWire*, int, int, int)'
PCF8574 pcf8574_I3(&I2Cone, 0x21, 4, 5);
                                      ^
In file included from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:0:
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note: candidate: PCF8574:TongueCF8574(uint8_t, uint8_t, void (*)())
  PCF8574(uint8_t address, uint8_t interruptPin,  void (*interruptFunction)() );
  ^~~~~~~

C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(PCF8574&&)
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino: In function 'void setup()':
KC868-A32_Web_Server:132:8: error: 'class WiFiClass' has no member named 'mode'
  WiFi.mode(WIFI_STA);
        ^~~~
KC868-A32_Web_Server:132:13: error: 'WIFI_STA' was not declared in this scope
  WiFi.mode(WIFI_STA);
            ^~~~~~~~
KC868-A32_Web_Server:134:5: error: 'wm' was not declared in this scope
    wm.setConfigPortalTimeout(timeout);
    ^~
C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino: In function 'void loop()':
KC868-A32_Web_Server:449:42: error: 'wm' was not declared in this scope
  if ( digitalRead(TRIGGER_PIN) == LOW) {wm.resetSettings();ESP.restart();}
                                          ^~
KC868-A32_Web_Server:449:61: error: 'ESP' was not declared in this scope
  if ( digitalRead(TRIGGER_PIN) == LOW) {wm.resetSettings();ESP.restart();}
                                                            ^~~
C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:449:61: note: suggested alternative: 'SP'
  if ( digitalRead(TRIGGER_PIN) == LOW) {wm.resetSettings();ESP.restart();}
                                                            ^~~
                                                            SP
exit status 1
'WiFiManager' does not name a type; did you mean 'WiFiManager_h'?
Reply
#2
here are two library zip file , you can copy to your arduino library folder.

.zip   PCF8574_library.zip (Size: 23.8 MB / Downloads: 188)

.zip   WiFiManager.zip (Size: 139.57 KB / Downloads: 167)
Reply
#3
(10-11-2022, 10:31 PM)admin Wrote: here are two library zip file , you can copy to your arduino library folder.

Thank you!
Reply
#4
you are welcome.
Reply
#5
(10-12-2022, 01:46 AM)admin Wrote: you are welcome.

Would you have any demos on how to wire up I2C devices?  I have 5 SHT30 Temperature/Humidity sensors I'd like to connect to the KC868-A32.  I've done this no problem on the Arduinio ESP32 dev board but I'm not sure of where to connect on the KC868 board and don;t want to fry anything.
Reply
#6
There is a white IIC extender socket on the center of KC868-A32 board. you can connect with your SHT30 senosr's SDA , SCL and Vcc, GND with these 4 PINs, it's easy. then you should know your SHT30's IIC address use in your code.
Reply
#7
(10-17-2022, 12:08 AM)admin Wrote: There is a white IIC extender socket on the center of KC868-A32 board. you can connect with your SHT30 senosr's SDA , SCL and Vcc, GND with these 4 PINs, it's easy. then you should know your SHT30's IIC address use in your code.

So I cannot use any of the GIO pins for I2C,  I connect all of the I2C sensors to the single 4 pin connector in the center of the board?
Reply
#8
it's up to you. if you want to use exist IIC bus, just connect to " 4 pin connector in the center of the board"
if you want to use free GIPO for new IIC bus, you can use other GPIOs.
Reply
#9
(10-17-2022, 10:25 AM)admin Wrote: it's up to you. if you want to use exist IIC bus, just connect to " 4 pin connector in the center of the board"
if you want to use free GIPO for new IIC bus, you can use other GPIOs.

Could you help me identify which model/brand the white IIC extender socket  is on the A32 board? So I can buy the proper female connector to plug into it. Thank you.
Reply
#10
any 2.54mm plugin can be used, easy to find in market.
   
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)