United Kingdom
Asked — Edited
Resolved Resolved by rb550f!

5V Relay Not Responding As It Should

So I've just been trying out a 5v relay (with 5v regulator) on port D0 but it's not working as expected. I first tried "Set(D0,on)" and it closed the relay switch. I then tried "Set(D0,off)" and it wouldn't open. I disconnect it from the EZ-B and it opens, plug it back in and it closes again but can't control it from then onwards. I even tried a combined script...


Set(D0,on)
Sleep(2000)
Set(D0,off)

but no change. I'm I missing something here or is there something else I can try?

Thanks.

User-inserted image


ARC Pro

Upgrade to ARC Pro

Discover the limitless potential of robot programming with Synthiam ARC Pro – where innovation and creativity meet seamlessly.

PRO
United Kingdom
#9  

Steve G, yes I can now see the drive SMT transistor (bottom left with 3 pads) just below the back emf protection diode.

PRO
Canada
#10  

Is it a latching relay? I guess I can look up the part number.

United Kingdom
#11  

I believe it's a toggle relay, as when I kill the power I can hear it click off. Apply power or run the first script it clicks on until I kill the power again.

#13  

Hmmm.. Latching relay.

I think that would solve the concern I had in your thread about using a relay for low voltage cutoff. EZ-B turns it off when the battery is low. Push-button turns it on when you have charged the battery. Doesn't use any power to hold either position.

From Wikipedia:

Quote:

A latching relay (also called "impulse", "keep", or "stay" relays) maintains either contact position indefinitely without power applied to the coil. The advantage is that one coil consumes power only for an instant while the relay is being switched, and the relay contacts retain this setting across a power outage. A latching relay allows remote control of building lighting without the hum that may be produced from a continuously (AC) energized coil.

Alan

#14  

@Alan... so I guess a latching relay would just flip/flop positions after power is removed with a high signal pin then? I am trying to figure out how you would alternate between relay positions? Just keep sending the relay a high signal or would you have to remove the power each time before sending it another high signal on a digital pin?

United Kingdom
#15  

What I want this thing to do is to turn lights on and off using D0,on/off scripts. Isn't this thing meant to do just that? Or have I got the wrong one? (Wouldn't surprise me with the day I'm having).

#16  

@Steve, yes normally (meaning not a latching relay) a regular relay is supposed to do what you mentioned... I keep pushing this one as I know it works (I have a few that I use).... It is only rated at 2amps (I have put more through it however with no issues) Electronic Brick Relay It may be a moot point since you have some...