Reading Analog Values
Turn a voltage into a number with the analog-to-digital converter. Read a knob, a light sensor and a temperature sensor, and build a thermostat that does not chatter.
- Buttons, Pull-Ups and Debouncing: Read a button reliably, and see why one press can look like five. Pull-ups, active low, edges and bounce, with a toggle and a press counter in the Board Lab.
- PWM: Dimming and Motor Speed: Switch a pin on and off fast enough and on-off becomes brighter-dimmer. Dim and fade an LED, see why the pin is never at half voltage, and steer a servo from a knob.