Esp8266 with robotdym dimmee

Hi i want to connect my esp8266 to my dimmer, but i have a big problem. I have connect only ground with the dimmer and now i cant boot/restart the Esp and upload too from USB. I disconnect everything and nothing happened too. What can i do ? D1 not connected D2 not connected GND connected with GND of 5v and GND of dimmer
No description
3 Replies
elecsprint73
elecsprint73OP4w ago
c++
#include <RBDdimmer.h>//


#define outputPin 4 // D2
#define zerocross 5 // D1

dimmerLamp dimmer(outputPin, zerocross); //initialase port for dimmer for ESP8266, ESP32, Arduino due boards
// dimmerLamp dimmer(outputPin); //initialase port for dimmer for MEGA, Leonardo, UNO, Arduino M0, Arduino Zero

int dimmerValue = 0; // Valeur actuelle du dimmer

void setup() {
Serial.begin(115200);
delay(1000);
Serial.println("--- heho ---");

dimmer.begin(TOGGLE_MODE, OFF); //dimmer initialisation: name.begin(MODE, STATE)
Serial.println("--- Toggle dimmer example ---");
dimmer.toggleSettings(0, 100); //Name.toggleSettings(MIN, MAX);
dimmer.setState(ON); // state: dimmer1.setState(ON/OFF);
pinMode(zerocross, INPUT);
}
void loop() {

delay(1000);
dimmerValue += 5;
if (dimmerValue > 100) {
dimmerValue = 0; // Retour à 0 quand on dépasse 100
}

dimmer.setPower(dimmerValue);
Serial.println("💡 Dimmer: ");
Serial.println(dimmerValue);

}
c++
#include <RBDdimmer.h>//


#define outputPin 4 // D2
#define zerocross 5 // D1

dimmerLamp dimmer(outputPin, zerocross); //initialase port for dimmer for ESP8266, ESP32, Arduino due boards
// dimmerLamp dimmer(outputPin); //initialase port for dimmer for MEGA, Leonardo, UNO, Arduino M0, Arduino Zero

int dimmerValue = 0; // Valeur actuelle du dimmer

void setup() {
Serial.begin(115200);
delay(1000);
Serial.println("--- heho ---");

dimmer.begin(TOGGLE_MODE, OFF); //dimmer initialisation: name.begin(MODE, STATE)
Serial.println("--- Toggle dimmer example ---");
dimmer.toggleSettings(0, 100); //Name.toggleSettings(MIN, MAX);
dimmer.setState(ON); // state: dimmer1.setState(ON/OFF);
pinMode(zerocross, INPUT);
}
void loop() {

delay(1000);
dimmerValue += 5;
if (dimmerValue > 100) {
dimmerValue = 0; // Retour à 0 quand on dépasse 100
}

dimmer.setPower(dimmerValue);
Serial.println("💡 Dimmer: ");
Serial.println(dimmerValue);

}
i have this error ets Jan 8 2013,rst cause:2, boot mode:(1,6)
DarwinWasWrong
Suggest you try searching internet for answers as this server rules no help with high voltage projects
elecsprint73
elecsprint73OP4w ago
a 5v module with esp ground share, is a classic project

Did you find this page helpful?