Pages: [1]   Go Down
Author Topic: Newbie Question - Flashing LED  (Read 497 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Apologies if this is a silly question I am very new to this and would like some advice.

I have one of these http://www.maplin.co.uk/52mm-red-led-cluster-12696

I would like to use a 12v input and use a 2 position switch to have the LED on constant or flashing at say 2Hz

Is this something that is easily done using Arduino ?

Please be gentle with me, my knowledge at the moment is basic smiley-razz
Logged

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 19
Posts: 1217
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Its the usual type of thing we all start with when we first get the Arduino ,  in fact the board has a built in LED to practice programs ( called sketches )  on .

Get the board, and work through all the examples, its very rewarding !
Logged

With my mobile phone I can call people and talk to them -  how smart can you get ?

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

What would be the best board to start with ?

I have been looking at the Leonardo or uno

Thanks for the quick response
Logged

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

My other concern was the size of the LED that I am trying to control, will this cause an issue ?
Logged

Johannesburg. UTC+2
Offline Offline
Faraday Member
**
Karma: 82
Posts: 3882
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My other concern was the size of the LED that I am trying to control, will this cause an issue ?

You'll probably need to control it with a transistor as explained here

Do the normal "blink" sketch first, then just extend that thinking to have the Arduino pin switch the transistor, not the LED itself.
Logged

The Elders of the Internet know who I am.....

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 19
Posts: 1217
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can also use a ULN2003 to control up to 8 higher power LEDs or relays
Logged

With my mobile phone I can call people and talk to them -  how smart can you get ?

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5378
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What would be the best board to start with ?

I have been looking at the Leonardo or uno

Uno.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Pages: [1]   Go Up
Jump to: