TactivergeLite

Lite / Building Machines That Respond / Week 20

Week 20: Inputs and outputs

Term 3: Embedded Intelligence

This week you will

Lessons

  1. Pins: high, low and in between · about 30 min
    One tiny metal leg on a chip can light an LED, read a button or wreck itself. What decides which?
  2. Pull-ups: giving a button a resting voltage · about 30 min
    A button only connects two wires. So why does every microcontroller button also need a resistor?
  3. Debouncing: one press, one count · about 30 min
    You press a button once. Your program counts seven presses. Is the code wrong, or is the button lying?
← Week 19Week 21 →