Arduino: Light Indicator with multi-LED bar graph, light sensor and 8-bit shift register 74HC595.
This project refers to an Arduino sketch that implements a light indicator with the help of an external sensor (photoresistor) for the recognition of light (the sensor acts as input device for the Arduino), and a bar graph of many LEDs used as a rating indicator (the indicator functions as an output device for the Arduino).
In this project we use an 8-bit shift register (namely the 74HC595). This way we can drive 8 different LEDs in the output committing only three PINS of the Arduino.
If we want to drive more LEDs, we connect into a cascade form two or more (depending on the number of LEDs we want to support) shift registers and act accordingly.
For example, with this approach, if we wanted to drive 1024 LEDs, we would need only 3 PINS from the Arduino and some more 74HC595 in a cascade form. Otherwise, we should drive the 1024 LEDs with separate PINS from the Arduino, something which is of course impossible.
For more information you can get the project itself:
Recent Posts
- The ‘Refugee’ project.
- Creating a Sharded Cluster of Replica Sets in MongoDB.
- Arduino: A simple and lightweight library for managing the Arduino GSM shield.
- Neo4j code infrastructure for .NET enterprise applications.
- Arduino: Security Alarm System.
- A dynamic string data structure helper implementation.
- A useful function for getting the host name and service of a socket.
Categories
- Articles (77)
- Compilers & Interpreters (15)
- Data Structures & Algorithms (26)
- Desktop Applications (4)
- Electronic Games (6)
- Embedded Systems (54)
- Events (19)
- Hobbies (4)
- Internet Applications (17)
- Libraries & Frameworks (13)
- Machine Learning (16)
- News (4)
- Numerical Methods (7)
- Operating Systems (10)
- Projects (78)
- Security Systems & Access Control (10)
- Tools & Filters (8)
- Writings (1)
Archives
Statistics
- 240,364 clicks
FSF News
- Public Lab and Karen Sandler are 2017 Free Software Awards winners
- LibrePlanet free software conference celebrates 10th anniversary, this weekend at MIT, March 24-25
- Free Software Foundation releases FY2016 Annual Report
- Free Software Foundation receives $1 million donation from Pineapple Fund
- Announcing LibrePlanet 2018 keynote speakers
- FSF adds PureOS to list of endorsed GNU/Linux distributions