Asked
— Edited
Hello everyone!
I just got my first shipment of parts from china which included:
8x relays
and
1x 5amp adjusting power adapter(Audiowind).
Just waiting for some regulators, and I should be good to finish some robots!
A question:
Relay wiring?
Relay:
How do I wire this up?
Thanks,
Tech
Nc is normally closed, the opposite to normally open.
Com is common, this is what gets passed through to No or Nc.
Vcc is likely your +5V
Ground is ground
In1 is the enable for the relay, setting high will switch the relay making No close and Nc open.
Was there no datasheet?
e.g.
Set(D0,ON) engages the relay on pin D0... you want your switch between NO AND Com on the relay itself... when Pin 0 goes high the relay closes completing your circuit...
www.ebay.ca/itm/5V-One-1-Channel-Relay-Module-Board-Shield-For-PIC-AVR-DSP-ARM-MCU-Arduino-K0TT-/201203063866?pt=LH_DefaultDomain_0&hash=item2ed8a31c3a
DATASHEET:
songle relay
It looks like, as Richard said, you can drive it direct from the EZ-B (as per my first reply) however check to make sure it does have the driving transistor and diode otherwise there is a risk of damaging the board, the EZ-B and the battery.
If in doubt, add a driver circuit. This would be the TIP122 circuit with the optional diode.
Or if you are feeling brave and want to risk the warranty on the EZ-B you could just try it and see what happens however I don't recommend that option personally
that are 2n2222 transistors.
2n2222
Will these work?
*Added picture of pin layout*
Robotdoc, are you saying that my relay is fine by itself? Or is that just for what you have linked?
Most of the examples online use a 1N4001 or it's higher voltage cousin the 1N4007. Forward voltage doesn't really matter in this case as the diode is just being used in a flyback configuration which means that it is dissipating the energy left in the coil once the transistor stops conducting, efficient forward voltage doesn't really matter in this case.
Here's a schematic for interfacing directly to a relay from the ez-b:
While I am pretty sure that 3.3VDC will work with a 5V relay, if it doesn't then use 5V instead of 3.3V and increase the resistor to a 2.2kohm