Silent Relay connected to esp-wroom-32

matt@mashfield.com
Posts: 1
Joined: Wed Nov 15, 2017 9:52 pm

Silent Relay connected to esp-wroom-32

Postby matt@mashfield.com » Wed Nov 15, 2017 10:05 pm

Hi,

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);
 
}
I have a 4 channel Tongling relay (i'm only interested in 1 channel at the present)

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

ESP_Sprite
Posts: 8999
Joined: Thu Nov 26, 2015 4:08 am

Re: Silent Relay connected to esp-wroom-32

Postby ESP_Sprite » Thu Nov 16, 2017 3:59 pm

Have you tried sticking a multimeter (in continuity-test mode) in the contacts for the relay? That should clear up if the relay actually switches. Also, do you have a link to the relay board? Most of them will have some kind of transistor that enables them to be switched from a microcontroller, but if the relay board has no such thing, you may need to add that externally.

Who is online

Users browsing this forum: Google [Bot] and 83 guests