I am using a picaxe 40x2 and I want to simply turn a relay on or off based on the push of a button. The relay I have is an omron model #G5SB, 5V coil, coil resisitance of 63 ohms, rated nominal current of 80mA and a minimal load on the conacts of 10mA at 5VDC.
I set the circuit up exactly as shown in manual 3, I used a 10K resisitor in series with my output pin, and I used a BCX38C transistor, along with a 1N4001 diode across the coil.
When I turn the power on, nothing happens. The relay isn't energizing for some reason. I checked and re-checked my wiring and my components to see if they are all good and they are all good. I can use the transistor to turn on and off an LED, but I can't make it energize the relay for some reason.
I broke my code down to be super simple for testing and troubleshooting. At the moment I am simply turning my output pin high.
According to the datasheet, the transistor should be more than capable of handling the 80mA of the relay. I can use the transistor to drive a 30mA LED I have, setting the resistor to a value to obtain between 25 and 30mA and it works just fine every time.
Can anyone help me out a little? what am I missing or overlooking? A relay circuit is fairly simple, or so I thought.
I set the circuit up exactly as shown in manual 3, I used a 10K resisitor in series with my output pin, and I used a BCX38C transistor, along with a 1N4001 diode across the coil.
When I turn the power on, nothing happens. The relay isn't energizing for some reason. I checked and re-checked my wiring and my components to see if they are all good and they are all good. I can use the transistor to turn on and off an LED, but I can't make it energize the relay for some reason.
I broke my code down to be super simple for testing and troubleshooting. At the moment I am simply turning my output pin high.
According to the datasheet, the transistor should be more than capable of handling the 80mA of the relay. I can use the transistor to drive a 30mA LED I have, setting the resistor to a value to obtain between 25 and 30mA and it works just fine every time.
Can anyone help me out a little? what am I missing or overlooking? A relay circuit is fairly simple, or so I thought.