Bionic-Bean
New member
Hi Guys, Just started getting back into using my MEGA-io 8 relay board and trying to connect to ESP32.
I can connect OK and talk to the MEGA baord nad the ESP returned an I2c scan of (0x31).
What Im trying to do is a very simple sketch for the ESP32 to turn on any of the relays.
Preferably using the Wire.begin() .
example....
Wire.begin();
}
void loop() override {
Wire.beginTransmission(0x31); // Mega sitiing at address 0x31
Wire.write(0x00);
Wire.write(2);
Wire.endTransmission();
Not sure of the correct way to address the board in order to turn any relay on. Hence a simple sketch to get me going and then I can modify .
Thanks in advance
Dave
I can connect OK and talk to the MEGA baord nad the ESP returned an I2c scan of (0x31).
What Im trying to do is a very simple sketch for the ESP32 to turn on any of the relays.
Preferably using the Wire.begin() .
example....
Wire.begin();
}
void loop() override {
Wire.beginTransmission(0x31); // Mega sitiing at address 0x31
Wire.write(0x00);
Wire.write(2);
Wire.endTransmission();
Not sure of the correct way to address the board in order to turn any relay on. Hence a simple sketch to get me going and then I can modify .
Thanks in advance
Dave