Introduction
This experiment demonstrates how to use the ATtiny85's Analog-to-Digital Converter (ADC) to read analog signals and convert them to digital values.
Materials Required
- ATtiny85 Microcontroller
- Potentiometer (10kΩ)
- Breadboard and jumper wires
- Arduino IDE with ATtiny85 support
- USBasp Programmer or similar
No Ads Available.
Circuit Diagram
The following diagram shows how to connect the potentiometer to the ATtiny85 for ADC input:
Steps for the Experiment
- Connect the potentiometer to the ADC pin of the ATtiny85.
- Upload the ADC reading program using the Arduino IDE.
- Adjust the potentiometer and observe the digital readings on the serial monitor.
Explanation
The ATtiny85 reads the analog voltage from the potentiometer and converts it into a digital value using the ADC. The digital value corresponds to the voltage level, and this can be displayed on the serial monitor.
Results and Observations
- The digital readings should change as you adjust the potentiometer.