Reader small image

You're reading from  Arduino BLINK Blueprints

Product typeBook
Published inMay 2016
PublisherPackt
ISBN-139781785284182
Edition1st Edition
Tools
Right arrow
Author (1)
Utsav Shah
Utsav Shah
author image
Utsav Shah

Utsav Shah is an instrumentation engineer who loves to work on the latest hardware as well as software technologies. He has been featured on India's leading website http://yourstory.in and Ahmedabad Mirror (Times Group) for his research work on "Converting sign language into speech" using a Leap Motion controller. Apart from his regular work at Infosys Limited, he manages activities of Infosys Robotics Club. In his leisure time, he loves to read books and work on cutting-edge technologies.
Read more about Utsav Shah

Right arrow

Controlling multiple LEDs


In the embedded world, controlling a single LED is "Hello World" code, which we learned in first chapter. Now, as we are familiar with the concepts of LED, we can start to control multiple LEDs with Arduino. Here, we will start by making a simple traffic light module.

Simple traffic light controller

As we all know, a traffic light is made up of three LEDs: red, yellow, and green. To make this project, we need red, green, and yellow LEDs, strip wires, and a few 255 Ω resistors.

In the previous chapter, in our "Hello World" program, we connected an LED directly with pin 13. Here, we will connect red, yellow, and green LEDs with pins 9, 10, and 11 respectively. In the case of pin 13, it has an in-built pull up resistor. Pull up resistors are used to limit the current supplied to an LED. We can't give current of more than a few mA to LEDs. But, with pin 13, current is itself limited in Arduino by the internal pull up resistor. If we want to connect to pins other than 13...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Arduino BLINK Blueprints
Published in: May 2016Publisher: PacktISBN-13: 9781785284182

Author (1)

author image
Utsav Shah

Utsav Shah is an instrumentation engineer who loves to work on the latest hardware as well as software technologies. He has been featured on India's leading website http://yourstory.in and Ahmedabad Mirror (Times Group) for his research work on "Converting sign language into speech" using a Leap Motion controller. Apart from his regular work at Infosys Limited, he manages activities of Infosys Robotics Club. In his leisure time, he loves to read books and work on cutting-edge technologies.
Read more about Utsav Shah