LED light on USing Arduino

in #technology7 years ago

 Hello Steemit. I want to show you a simple Arduino project. Firstly,in this project I use some component like  LED ARDUINO JUMPER WIRE.

  My Phone

For this project,our objective is to control the LED light using ARDUINO. This project we use 10-12LED lights. Now in the setup function we set the pin 2,3,4,5,6,7,8,9,10,11,12,13 as INPUT andLED (1,2,3,4,5,6,7,8,9,10,11,12) as OUTPUT. In the loop function we read the value of the pin LED (1,2,3,4,5,6,7,8,9,10,11,12) and store it in the variable state button. Using aif() function the ARDUINO makes some decisions. If the button is pressed ( state button==1) then give voltage to pin LED(1,2,3,4,5,6,7,8,9,10,11,12) (HIGH) else if state button is not 1 (not pressed) do not output voltage on pin 2,3,4,5,6,7,8,9,10,11,12,13. 

 

 

For this project code, I use some delay that means when turn on first led light than other led lights are off. Again second LED light is on other LED lights off.So when you give some delay for all led lights it work like a array.  

My Phone

Sort:  

Upvoted on behalf of @thehumanbot and it's allies. Write less but write great original content, and do not use bid bots for at least 1-2 days, for your post to be recommended to other curators. If you are using any image or video, cite proper source. Even if its your own image or video, it's worth mention the same. Also be careful to avoid duplicate posting.
Great Original Works are rewarded by top Curators, refer posts from my Step-Brother @humanbot for more details.If you like this initiative, you can follow me in SteemAuto and upvote the posts, that I upvote.
And remember to do some charity when you are rich by contributing to me. Check out my Introduction Post for more details. If you have any concerns or feedback with my way of operation, raise it with @sanmi , my operator who is freaking in Steemit chat or discord most of the time.

thanks thehumanbot for your information and i will try to my best to follow the all rules and regulation.

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63281.14
ETH 2674.11
USDT 1.00
SBD 2.79