Pages: [1]   Go Down
Author Topic: help with a relay  (Read 432 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
« Last Edit: August 17, 2013, 07:12:20 am by ico170 » Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 151
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12070
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://playground.arduino.cc/uploads/Main/relays.pdf
Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
God Member
*****
Karma: 16
Posts: 597
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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  smiley-wink
Logged

UK
Offline Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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  smiley-wink
One of which is called, cunningly enough, Blink.
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Pages: [1]   Go Up
Jump to: