How randomahhname-h/prac-micro works
This repository is a collection of independent ATmega328P/AVR practice programs, not one integrated application. Each project’s main source configures peripherals, runs its own loop or interrupt-driven behavior, and interacts directly with hardware or a serial terminal. The graph groups examples by their primary function; it does not imply shared runtime components. The README is empty, and the sampled programs provide the evidence for the shown hardware relationships; unsampled projects are represented only by their source paths.
Main entry points: src/main.c Serial servo control · src/main.cpp I2C AHT20 reader · src/main.c ADC averaging display · src/main.cpp Light and 7-segment
Components 27
Sensing and display
- I2C AHT20 reader
I2C n sensor/src/main.cpp - ADC averaging display
adc/src/main.c - Light and 7-segment
light with 7seg/src/main.cpp - PIR motion monitor
PIR sens for motion/src/main.c
Motion control
- Servo sweep
servo/src/main.c - Serial servo control
servo with uart/src/main.c - Step motor pulses
ctrl step motor (TS IS BROKEN)/src/main.c
Timing and input
- Input capture frequency
input capture/src/main.c - Button and timer LEDs
task1/src/main.cpp - Timer scheduler exercise
timer n scheduler/src/main.c
Other projects
- Test project
test/src/main.cpp - Test2 project
test2/src/main.c
Other components
- AHT20 sensor
- Serial monitor
- Analog input
- LCD
- Light sensor
- 7-segment display
- PIR sensor
- LED and UART
- Servo
- Serial terminal
- Stepper motor driver
- Signal source
- LCD
- Button
- LEDs and buzzer
Connections 17
- I2C AHT20 reader → AHT20 sensor: reads over I2C
I2C n sensor/src/main.cpp - I2C AHT20 reader → Serial monitor: prints readings
I2C n sensor/src/main.cpp - ADC averaging display → Analog input: samples ADC
adc/src/main.c - ADC averaging display → LCD: displays average
adc/src/main.c - Light and 7-segment → Light sensor: reads ADC
light with 7seg/src/main.cpp - Light and 7-segment → 7-segment display: updates digits
light with 7seg/src/main.cpp - PIR motion monitor → PIR sensor: reads state
PIR sens for motion/src/main.c - PIR motion monitor → LED and UART: signals changes
PIR sens for motion/src/main.c - Servo sweep → Servo: sets PWM angle
servo/src/main.c - Serial terminal → Serial servo control: sends angle
servo with uart/src/main.c - Serial servo control → Servo: sets PWM angle
servo with uart/src/main.c - Serial servo control → Serial terminal: prints status
servo with uart/src/main.c - Step motor pulses → Stepper motor driver: sends step pulses
ctrl step motor (TS IS BROKEN)/src/main.c - Signal source → Input capture frequency: provides edges
input capture/src/main.c - Input capture frequency → LCD: displays frequency
input capture/src/main.c - Button → Button and timer LEDs: provides presses
task1/src/main.cpp - Button and timer LEDs → LEDs and buzzer: toggles outputs
task1/src/main.cpp