Asked
— Edited

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.
Steve G, yes I can now see the drive SMT transistor (bottom left with 3 pads) just below the back emf protection diode.
Is it a latching relay? I guess I can look up the part number.
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.
EDIT Sell next post (Alan's)
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:
Alan
@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?
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).
@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...