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.
- 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.
- Timers: Keep time without stopping the rest of the program. See what a sleeping loop misses, keep two rhythms with ticks_ms, build a reaction timer, and hand a heartbeat to a Timer.