ok, so from what i gathered, hastily mind you, is that an external source was not needed as the rating is only 3v, which the arduino could provide easily. and from the schematics i saw, the source seemed like a bit of a black box that everybody just understood, clearly i didnt. is there a way to do this without an external power source? also i never claimed it to be a schematic, i used the word diagram appropriately and i think it offers a better view of the physical connections as it's clear im having a problem with the schematic view
I'm not trying to be funny, but why don't you just connect it like that example I linked to a few hours back. It's dead simple...
From the high voltage side, hook to the relay. The low side of the relay, to the collector. Diode across those two, backwards (cathode stripe to positive input. Emitter to ground.... Arduino digital pin to the base. Arduino earth and transistor emitter earth one and the same.
As Lefty says, you have no high side connection the relay as it shows in your Fritzing...
Yep if the current's not too big, you can take 5v from the Arduino to the high side of the relay as the relay power source I guess.
zeroprog:
ok, so from what i gathered, hastily mind you, is that an external source was not needed as the rating is only 3v, which the arduino could provide easily. and from the schematics i saw, the source seemed like a bit of a black box that everybody just understood, clearly i didnt. is there a way to do this without an external power source? also i never claimed it to be a schematic, i used the word diagram appropriately and i think it offers a better view of the physical connections as it's clear im having a problem with the schematic view
Ok the shield 5V pin is a source of 5vdc that could power the relay coil, but only if you are using that Darlington transistor as it drops 2 volts even when fully turned on so 3 volts left over for your 3 volt relay coil (your sure you have the 3 volt relay coil version?). So move the blue wire from the ground pin to the 5V pin and disconnect the emitter lead of the transistor and connect it to a ground pin. That is assuming the middle lead is the collector lead and the right hand lead is the emitter lead and the left lead is indeed the base lead. Why don''t you redraw via those words and see what it looks like after you verify the transistor leads via a datasheet for your specific transistor which I assume is still that npn Darlington one you started off with?
Lefty
jimbo, that is what i followed but i didnt get it, i think i do now. here's a new diagram. apologies, programmer mentality is a bit different sometimes.
Here's a really quick and dirty sketch of how it might look....
Too quick, no base resistor shown. Now go to the corner for a time out.
Lefty
here's a new diagram.
Yeah that looks right, as long as the transistor pins are correct.... Datasheet shows base, collector, emitter, as you have.
Too quick, no base resistor shown.
Ooops, well spotted... It's midnight here, time I turned in.
thanks again guys, still not working but could be a blown transistor, relay, connection etc. atleast now i know where i went wrong. both of you were immensely helpful, thank you again.
could be a blown transistor, relay, connection etc
Here's how to make a simple tester with an LED indicator. About half way down the page it explains how to check out all the ways through a transistor.
You can check the relay simply enough by putting the tester across the outputs while energising the coil.