ATmega — GPIO LED and Safe Current
Drive an LED with a calculated resistor and verify HIGH/LOW voltage. Program and practical guide for ATmega.
ATmega and ATtiny bare-metal embedded projects. Select a project for its circuit, connections, complete program, tests and troubleshooting.
50 projects found
Drive an LED with a calculated resistor and verify HIGH/LOW voltage. Program and practical guide for ATmega.
Read a button reliably using a timed software debounce state. Program and practical guide for ATmega.
Sequence three outputs without blocking delays. Program and practical guide for ATmega.
Convert ADC samples to calibrated input voltage. Program and practical guide for ATmega.
Sample a temperature sensor and report threshold alarms. Program and practical guide for ATmega.
Use a light sensor with hysteresis to control an output. Program and practical guide for ATmega.
Generate PWM and sweep duty cycle while measuring average voltage. Program and practical guide for ATmega.
Generate an audible square wave safely through a suitable driver. Program and practical guide for ATmega.
Map an analogue command to standard servo pulse width. Program and practical guide for ATmega.
Sequence a stepper driver with bounded acceleration timing. Program and practical guide for ATmega.
Control motor speed through a protected MOSFET or driver stage. Program and practical guide for ATmega.
Control a low-voltage relay driver with safe default and timeout. Program and practical guide for ATmega.
Parse bounded serial commands and return deterministic responses. Program and practical guide for ATmega.
Scan valid 7-bit addresses and report responding devices. Program and practical guide for ATmega.
Send an identification command and validate the returned bytes. Program and practical guide for ATmega.
Render live sensor values and status without blocking acquisition. Program and practical guide for ATmega.
Build a button-driven menu with clear state transitions. Program and practical guide for ATmega.
Record validated samples with timestamp and error flags. Program and practical guide for ATmega.
Trigger scheduled actions while handling invalid time data. Program and practical guide for ATmega.
Count input pulses safely and calculate frequency outside the ISR. Program and practical guide for ATmega.
Run periodic tasks from deadlines instead of blocking delays. Program and practical guide for ATmega.
Feed the watchdog only after critical health checks pass. Program and practical guide for ATmega.
Sample briefly, store state and enter the deepest appropriate sleep. Program and practical guide for ATmega.
Implement bounded PID control with anti-windup and output limits. Program and practical guide for ATmega.
Test identity, rails, GPIO and buses and export a pass/fail record. Program and practical guide for ATmega.
Drive an LED with a calculated resistor and verify HIGH/LOW voltage. Program and practical guide for ATtiny.
Read a button reliably using a timed software debounce state. Program and practical guide for ATtiny.
Sequence three outputs without blocking delays. Program and practical guide for ATtiny.
Convert ADC samples to calibrated input voltage. Program and practical guide for ATtiny.
Sample a temperature sensor and report threshold alarms. Program and practical guide for ATtiny.
Use a light sensor with hysteresis to control an output. Program and practical guide for ATtiny.
Generate PWM and sweep duty cycle while measuring average voltage. Program and practical guide for ATtiny.
Generate an audible square wave safely through a suitable driver. Program and practical guide for ATtiny.
Map an analogue command to standard servo pulse width. Program and practical guide for ATtiny.
Sequence a stepper driver with bounded acceleration timing. Program and practical guide for ATtiny.
Control motor speed through a protected MOSFET or driver stage. Program and practical guide for ATtiny.