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