Go Down

Topic: help with a relay (Read 543 times) previous topic - next topic

ico170

Aug 17, 2013, 02:06 pm Last Edit: Aug 17, 2013, 02:12 pm by ico170 Reason: 1
hy i need to use the arduino to start a relay but as i can see i cant connect a relay directly to the arduino could any of you please tell me what components i need to build it and a scheme

the relay is SRD-05VDC-SL-C

i have transistor BC548
diode 1N4004
resistor 1K omh

will i be able to use this or would i need something else?

tocpcs

You can use those components to control a relay.
Now you need to determine how you'll use those components to control the relay - plenty of examples out there.

MarkT

[ I won't respond to messages, use the forum please ]

ico170

ty guys you where a great help.

any chance you can tell me how should i write te code should digital pin be output or input

any chance for a sample blink code  :smiley-roll-blue:

alnath


ty guys you where a great help.

any chance you can tell me how should i write te code should digital pin be output or input

any chance for a sample blink code
  :smiley-roll-blue:


yep, the arduino IDE comes with a lot of examples  ;)

majenko



ty guys you where a great help.

any chance you can tell me how should i write te code should digital pin be output or input

any chance for a sample blink code
  :smiley-roll-blue:


yep, the arduino IDE comes with a lot of examples  ;)

One of which is called, cunningly enough, Blink.

Go Up