This project is intended to show how the ADC (Analog Digital Converter) can be configured in the ASM and C languages of the AVR microcontroller architecture. This way we can use less memory capacity (Flash memory), compared to arduino, and understand what Arduino is doing when we use the function analogRead(pin)
The ATmega328p was chosen because it's the uC that is in the Arduino UNO and we can make use of its bootloader to not spend on expensive programmer.
- Demo
- Eschematic
- Components
- Installation step
- git
- platforIO
-
clone the repository to a specific location
git clone https://github.com/marti-gutierrez/ADC_on_AVR_microcontrollers.git
-
go to the clone repository ADC_on_AVR_microcontrollers
cd ADC_on_AVR_microcontrollers
-
Process (build) all environments specified
pio run
-
connect the Arduino to our USB port and type the following command
pio run --target upload