Following on from the previous lesson, we will be programming the Arduino against a specific specification to build a system which can have a real life application. This will allow us to apply what we have learnt throughout the course.
Program Description
The program we will be coding in this lesson is a Voltage Meter. We will be able to adjust the voltage reading between 0 and 5 volts. However, this system will include upper and lower trip points, which are defined in the specification. This trip points are used to ensure that the voltage level is not below the required level and also does not exceed the required level.
Program Specification
1. Using the variable resistor on the Multi Functional Shield, read the analog voltage.
2. The voltage reading must have an upper and lower trip point. The upper trip point is set at 3 volts and lower trip point is set at 2 volts.
3. When the meter reads the voltage within the trip point boundaries, the reading must be displayed to the 4x7 segment display.
4. But when the upper trip point is activated, a relevant message is to be displayed as wells as a visual LED indication.
5. Similarly, when the lower trip point is activated, a relevant message is to be displayed and an alternative LED visual indication.