Fundamental of Electronics
- Potentiometer
- ADC (Analogue to Digital Converter)
- Breadboard
- Wires
Arduino Programming Language
- Float: Variables/Data Types
- Int: Variables/Data Types
- begin(): function/communication/serial
- print(): function/communication/serial
- println(): function/communication/serial
- analogRead(): functions/analog I/O
Arduino IDE Tools
- Serial Monitor
Task 1 Develop a program to read the voltage across the potentiometer, and use the serial monitor tool to observe the ADC reading.
Objectives of practice:
- Familiar with the ADC system on Arduino Board
- Understanding how the potentiometer works
- Practice with serial communication
- Familiar with using of Serial Monitor tool in Arduino IDE
- Practice with Fritzing software
Task 2 Modify the developed program to convert the ADC reading value to ‘voltage’ value. And display the voltage value and message in correct format. as shown in figure
Objective of practice:
- Understanding the difference between int and float data type
- Understanding the difference between serial.print() and serial.println() functions
- Practice with using the serial communication function to get desired information message display in serial monitor