You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I use the ESP32 with an I2C PWM Expander PCA9685. With the ESP8266 I had no problem with this IC. But with the ESP32 I get an timeout, but only with this IC. On the same Board there is an LM75 Temp-Sensor, that delivers right values if the PCA is disassembled.
I use this Library: https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library/blob/master/Adafruit_PWMServoDriver.cpp library to controll the PCA9685
Sketch:
//Change the code below by your sketch
#include<Arduino.h>voidsetup() {
Wire.begin(sda,scl);
ledDriver = Adafruit_PWMServoDriver();
ledDriver.setPWMFreq(200);
ledDriver.reset();
}
voidloop() {
for (uint8_t x = 0; x < 3; x++) {
ledDriver.setPWM((i+x),0,4000);
}
i = 3;
for (uint8_t x = 0; x < 3; x++) {
ledDriver.setPWM((i+x),0,4000);
}
i = 6;
for (uint8_t x = 0; x < 3; x++) {
ledDriver.setPWM((i+x),0,4000);
}
}
You just need to replace:
\cores\esp32\esp32-hal-i2c.c
\cores\esp32\esp32-hal-i2c.h
\cores\esp32\esp32-hal-log.h
\libraries\Wire\src\Wire.h
\libraries\Wire\src\Wire.cpp
Hardware:
Board: ESP32 Himalaya
Core Installation/update date: 14.2.2018
IDE name: Platform.io
Flash Frequency: 40Mhz
Upload Speed: 115200
Description:
Hello, I use the ESP32 with an I2C PWM Expander PCA9685. With the ESP8266 I had no problem with this IC. But with the ESP32 I get an timeout, but only with this IC. On the same Board there is an LM75 Temp-Sensor, that delivers right values if the PCA is disassembled.
I use this Library:
https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library/blob/master/Adafruit_PWMServoDriver.cpp library to controll the PCA9685
Sketch:
Debug Messages:
The text was updated successfully, but these errors were encountered: