0% found this document useful (0 votes)
25 views3 pages

ECE 2305 - Hardware Project 04

The document outlines a project for EE 2305 that involves programming an Arduino to create a servo voltmeter that displays analog input voltage. It includes requirements for a hardware diagram, program flowchart, Arduino source code, and a demonstration video link. The goal is to achieve precise voltage display using a Hobby Servo to indicate the voltage level.

Uploaded by

Nl Fishing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

ECE 2305 - Hardware Project 04

The document outlines a project for EE 2305 that involves programming an Arduino to create a servo voltmeter that displays analog input voltage. It includes requirements for a hardware diagram, program flowchart, Arduino source code, and a demonstration video link. The goal is to achieve precise voltage display using a Hobby Servo to indicate the voltage level.

Uploaded by

Nl Fishing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

EE 2305 – Introduction to C Programming

Hardware Project 04

Servo Voltmeter

Project Features: Analog Input and Hobby Servo Control.

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

Digital Input / Output


Gnd ~9 P
Gnd 8 –
Vin 7
~6
A0 ~5

Analog Input
A1 4
A2 ~3
A3 2
A4 TX 1
A5 RX 0

B. Program Flowchart:
Draw a flowchart of the program.

C. Arduino Source Code


Insert the Arduino Source Code into the document.

const int td = 100;


int PWM = 9;
int v;

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.

You might also like