ESP-01 with relay simple example does not work
Posted: Sun Nov 20, 2016 8:51 am
Next code does not work
Relay is connected to 5V
ESP-01 to 3.3V throw AM1117
after turning on LED on the Relay does not blink but is all time on.
Where is mistake?
Why my simple example does not work?
Code: Select all
void setup() {
pinMode(2, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
delay(1000);
digitalWrite(2, LOW);
delay(1000);
}
Relay is connected to 5V
ESP-01 to 3.3V throw AM1117
after turning on LED on the Relay does not blink but is all time on.
Where is mistake?
Why my simple example does not work?