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?
I've tested 3 different from the same manufacturer. They're all the same. Voltage on the in line.
I also get some voltage at the IN1 pin on my board (-0.7V) but I suspect it's just because the base of the transistor is floating. You could use a 10Kohm pull down resistor on the IN1 pin if this voltage bothers you.
The 10kohn pull down to what? Ground? Because this activates the relay...
So how much voltage is at the IN1 pin? Is it 3.3V or 5V. If that's the case you might have a PNP transistor on-board so the logic will be inverted. You will have to send a low signal to turn it on and a high to turn it off.
If it isn't connected it stays off. If I connect to the ez-b with the port I triggered it stays off. If I turn the port on, it turns on. If I turn the port off it goes half off, signalled by the led, but does not deactivate. If I add a 10kohm resistor to the Gnd or signal line, the relay acts in the way you described.
Couple questions:
There's two LEDs on the board, is one a power LED?
You mentioned that if you send a high signal from the ez-b to IN1 on the relay board the relay activates. (no resistors applied)
You also mentioned if you place a pull-down resistor (from IN1 to GND) the relay activates.
These two scenarios are in conflict with each other.
Are you certain that you have a common ground?
I am unsure what you mean by "triggering a port" but I will say this: The I/O pins on the ez-b are tri-state, which means that when they are not set to a digital high (3.3V) or digital Low (0V) they are in a high resistance state (High-Z). In a High-Z state the pin will appear to have 0V but in reality it is floating and has no state until a high or low signal is sent.
2 LEDs. 1 for power, and the other for activation status(on, relay activated).
Yes, I agree, but it is what is happening. This makes me think that when the ez-b activates, the current flows through it to gnd.
Common ground is achieved by connecting the gnd pin of the ez-b to the gnd of the 5v power source for the relay. This allows, in my mind, common ground. Perhaps not?
In High Z state the relay is doing nothing.
When the port is set on(no resistor) it activates. When port is set off(no resistor) the relay hits the mid point, where it is half way to turning of, as indicated my the activation light dimming.
When port is set on(WITH resistor) it deactivates, and when turned off, it activates.
I too am puzzled by this conundrum. I will play with it again, and see if something changes.
I have a relay of similar design. My knowledge of electronics is very limited so please be understanding.
This relay has a 2TY device, 3 resistors all marked 102, 2 leds and a diode. I am assuming the 2TY is a transistor. If anyone knows this is true, can they tell me the pinout ? I will then try to make a schematic of the one I have.
Maybe we then can get a better idea of what we are dealing with.
Thanks,