ECE 2305 - Hardware Project 04
ECE 2305 - Hardware Project 04
Hardware Project 04
Servo Voltmeter
Program an Arduino board to accept an analog input voltage and display the magnitude of the
voltage using a Hobby Servo display. Use the servo horn to direct an arrow to the appropriate
voltage. Provide as much precision in the display as possible.
Document your program and include the following sections. Provide a brief description of the
system and how you are designing it to operate.
A. Hardware Diagram:
Provide a hardware diagram of the components.
1
Arduino UNO 13
12
3.3V ~ 11
5V ~ 10 +
Power
Analog Input
A1 4
A2 ~3
A3 2
A4 TX 1
A5 RX 0
B. Program Flowchart:
Draw a flowchart of the program.
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
void loop() {
// put your main code here, to run repeatedly:
v = analogRead(A0)/5;
Serial.print(v);
Serial.print('\n');
analogWrite(PWM, v);
delay(td);
2
D. Demonstration Video
Record and upload a video demonstrating the operation of the circuit.
https://youtu.be/n0xZwlrfY04
Save the document as a PDF file and submit the PDF document to Blackboard.