Microcontrollers
Program a small computer on a chip: pins, buttons, analog readings, PWM, timers, interrupts and the serial buses that sensors use, on a simulated board. 6 lessons to work through.
- What a Microcontroller Is: A processor, memory and pins in one chip, running one program round and round. Tour a Raspberry Pi Pico, talk to it in the REPL, and write your first MicroPython in the Board Lab.
- Pins as Outputs: Blink a light from a program, then run a row of them. Work out each LED’s resistor, and build a traffic light and a binary counter in the Board Lab.
- 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.
- 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.
- 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.
- 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.