MCP23017 Button Panel: Interrupt Capture Is Not Debouncing
Connect eight buttons to an MCP23017, read captured changes and reconcile the current state. Avoid its output-only pins and distinguish capture from debouncing.
Unravel the Mystery of Electronics
Explore integrated circuits through practical projects, clear wiring diagrams, component explanations, calculations and complete code examples.
Connect eight buttons to an MCP23017, read captured changes and reconcile the current state. Avoid its output-only pins and distinguish capture from debouncing.
Build a 3.3 V MCP6002 buffer and compare a loaded sensor divider with its buffered output. Calculate meter loading, resistor error and output headroom.
Build a 3.3 V TLC555 one-shot. Calculate its LED pulse, compare a tap with a held button, and understand reset, capacitor leakage and timing error.
Turn a DS18B20 CSV log into a local Raspberry Pi dashboard. Show fresh, stale, missing and invalid readings separately with a small Python server.
Read four buttons through one Uno R3 analog input. Calculate resistor-divider codes, leave invalid gaps and discover why simultaneous presses are ambiguous.
Compare raw, mean and median readings from a Pico potentiometer. Inject labeled software spikes and measure the smoothing-versus-response tradeoff.
Connect two Pico boards with a one-way UART link. Send framed readings with CRC-16, reject damaged messages and show when data stops arriving.
Build a low-current water-conductivity experiment with an ESP32. Pulse the electrodes, calibrate wet and dry readings and understand corrosion limits.
Decode a mechanical rotary encoder with Pico using a quadrature transition table. Count complete cycles, reject impossible jumps and expose missed edges.
Read a 10 kΩ NTC thermistor with Pico. Derive resistance from a divider, estimate temperature and recognize open-circuit and short-circuit readings.