I have a 5v relay which is not working on my esp-32 dev board. I understand that there logic levels are different but i checked the seller and they say it works with 3.3 logic level. When powered by the 3.3 pin on the board, the relay light turns on however it does not work. Sometimes the green light turns on but there is no sound or vibration of the latch opening/closing. Up till now you could dismiss all of these problems by saying that the board requires more power(5v). I thought so too. However what is bothering me is the fact that when the relays IN pin is connected too ground it turns on. Furthermore, i have also tried powering the board using a breadboard power supply(set to 5v) and triggering with esp-32 board but that too has failed? Could someone tell me If the problem is my code? relay? or mabye it is the right ammount of current/voltage?
( ik this is an electronic forum and am only asking about relays electrical side.this code is just to show it isn't a problem on the software side:) )
For testing purposes i am using this code:
void setup() {
pinMode(23,OUTPUT);
}
void loop() {
pinMode(23,HIGH);
delay(250);
pinMode(23,LOW);
delay(250);
}