Asked
— Edited
Alright. My dewy build is almost finished, but I have hit a problem with the relays I'm using. They require at least 1.5v to activate them, and then nothing to deactivate them.
Using a set digital control, I can turn them on, but turning the control off doesn't deactivate the relays.
Why would this be? Does setting the digital port off not set the voltage low?
How else can I activate them and deactivate them with the ez-b if not in this manor?
@thetechguru yes they are the same relays, but the reason I am looking for different is stated above.
@Maze,
if the transistor is present top left corner, and you have the diode it seems good to me.
I have a few relays (ebay) besides the transistor and the diode also have an optocoupler. Some people argue is not needed, others say is another safety layer, others say is a protection for bad circuit design.
i would add a logic level circuit between EZB pin the IN1, they are cheap and offer also some protection (in case of a short circuit a LLV is cheap than an EZB).
I don't think the IN1 pin will sink current from EZB,
if you want confirm, you can wire the relay (vcc, gnd) and measure current with a multi-meter between a 5V and the IN1 pin.
Let's wait for Jeremie 's opinion.
@Jeremie, perhaps powering it off 3.3v like you did may change something. I'll investigate.
If it doesn't I suspect that there may be a default pull-up resistor that could be causing you grief. Your board looks like it has a few too many resistors on it.
I then understand this discussion is for relays with a built in transistor switching circuit. I have relays with a opto- coupler circuit. I will start another thread to not cause confusion here. Anyone doing a future search will get information on the opto-coupled style relay.
@Jeremie if I were to add a diode what should I use? Is what would the specs be? I have some but am not sure whether they will work.
It seems you already have a flyback diode on your relay board so no need to add another. It doesn't really look like a diode but it's an older style germanium.
I'm getting the sense that your relay has an issue, do you have anymore of these boards to test? Can you test something like a servo on the digital pin you are using just to make sure everything is in working order?
I take it back that the board has too many resistors. I didn't notice that second LED on there. So that's one resistor per LED and one for the transistor base.