Light Gauge
Last Updated: 7/24/18
This project shows how to build a light gauge that uses an LED bar graph to show the measured brightness level.
The function “gauge()” is a good example of using “if” statements to analyze sensor values and control LED’s based on a set of rules.
The gauge circuit and software can be reused in any project where we want to display a sensor value.

The presentation material and the code can be downloaded at
Contact Us
College of Engineering and Physical Sciences
Engineering Education and Research Building (EERB)
- Room 401
- 1000 E. University Ave
- Laramie, WY 82071
- Dept. 3295
- Email: enginfo@uwyo.edu
- Phone: (307) 766-4253
The University of Wyoming has earned its Research Level 1 (R1) status from the Carnegie Classification of Institutions of Higher Education, placing Wyoming's only four-year university with the top research universities in the United States.
