Network Change icon Network Change — Execute scripts on WiFi/network connect or disconnect; monitor adapter, store status in a variable and trigger custom scripts for headless SBC robots. Try it →
United Kingdom
YouTube
Asked — Edited
Resolved Resolved by rb550f!
5v Relay Not Responding As It Should

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

With ARC Pro, your robot is not just a machine; it's your creative partner in the journey of technological exploration.

#33  

I made my own 5V regs using LM7805s and some servo extension wire that seem to drive the relay no problem... Maybe there is something different about the ez robot reg? Not sure... Perhaps you'll be fine without the reg... Like I said the relay wasn't complaining or getting hot when I was using 8V with them.... Besides, they are not all that expensive, so won't be a big deal to replace them should they fail before their MFT (mean failure time).... They are probably good for a few 100,000 relay cycles....

#34  

You can't control an adc port like you can a digital port.... ADC ports are more meant to measure analog voltage levels...

Author Avatar
United Kingdom
YouTube
#35  

I thought as much. Just wanted to make sure as I'm running a little short on Digital ports. I just emailed the company selling the UBEC regs telling them they were labeled incorrectly.

Thanks again.