Specifications

37
There will be four sets of LEDs implemented for indicating the state of the person
level of alcohol consumption. On the hand held unit, there will be three LEDs
placed sequentially in a way to tell the level of comprehension state for driving.
The colors of the LEDs that will be used on the hand held unit will be green,
yellow, and red. On the control box unit, there will be one LED to determine if the
user is over the BAC level. The color of this LED will be red. The basic concept
use of the LEDs on the hand held unit is when the user takes a sample on the
Breathalyzer system; if the user has consumed enough alcohol to the point that
the displays reads 0.02 BAC or less on the hand held unit, then the green LED
will light up to indicate that the user is able to drive the car and is has not
consumed enough alcohol to affect his driving abilities.
If the user takes another sample and the displays a reading between 0.03 BAC to
0.07 BAC on the hand held unit, then the yellow LED will appear on. This yellow
LED on the hand held unit will indicate that the person has consumed alcohol
that it could potentially affect their ability to drive a vehicle. This doesn’t mean
that they can’t drive but they should take precaution when driving. The last LED
on the hand held unit that will be considered will be a red LED. If a person has
taking the breathalyzer system and has received a BAC of .08 or higher then the
red LED will be placed on. This red LED will indicate that the person has
consumed enough alcohol to affect their ability comprehend and also their ability
to drive a vehicle. This indicator will not go off until the user has taken a sample
and has received a reading of .08 or lower.
2.6 Software
The implementation of software for the Breathalyzer system design will have a
procedure with specific variables that will allow the system to work at an optimal
level. The solution to having this task completed will be highly concentrated in
software portion of the design. The software will create the back bone for
introducing a concept that determine which states are needed ensure that the
components are acting as they ought to. There are major rules that must apply to
a programmer when programming a device to interface with multiple devices. For
the Breathalyzer system these feature were taking into consideration.
Modularity Modularity places an important rule into the code itself. This
concept will simplify the whole system into smaller modules. This will
reduce complexity on many different levels.
Simplicity Simplicity is also very crucial when it comes to programming
a device. A developer should be able to simplify any function and
algorithms to save CPU time and resources. If it takes 100 lines of code
rather than 200, then the design will be more practical and organized.
Persistence Persistence in coding will allow the other developers to be
able make correction if possible. If the code changes to the point that
every function is to the declaring of variables is inconsistent, it would be
more challenging to debug.