LED Distance Graph

Description-  What I present before you is a simple2x4 LED bar graph that corresponds to the distance between a Sharp IR Digital  sensor and an object.  The range is between 0 and 10cm.  When you hit the fourth LED, the buzzer sounds indicating that is the maximum range.  There is a SPST switch that can be used to turn the buzzer on or off.  The resolution of the bar graph could easily be increased by simply adding more LEDs if you wanted more precise measurements

Inputs– Sharp IR distance sensor, SPST switch

Outputs– 8 Green LEDs, buzzer