Newbee enthusiast here - hope my questions not lame
I have a doit esp-wroom-32 dev board and I am playing with relays.
my code is simple:
Code: Select all
void setup() {
// put your setup code here, to run once:
digitalWrite(5,HIGH);
delay(10);
pinMode(5,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(5,HIGH);
delay(1000);
digitalWrite(5,LOW);
delay(1000);
}
when i run my code the LED on the relay blinks as expected but I don't hear the relay switch/toggle -it's normally audible I assume.
I am powering my esp-32 dev board from my laptop USB - could it be that this doesn't supply enough umph to switch the relay?
please excuse my ignorance as I'm new to this hardware
regards
Matt