Ten Challenges for Learning MicroPython
Recommended Materials: Two Micro:bits with attached batteries, an LED, Play-doh, two Grove Micro:bit shields, a Grove rotary angle sensor, two continuous rotation servo motors, a Grove ultrasonic or infrared sensor, or a Grove speaker.
- Push a button on one Micro:bit and have the other respond by lighting up an LED.
- Create a keyboard (at least 3 keys) out of play-doh and have the screen display which key was pressed.
- Record the distance output of a Grove ultrasonic (or infrared) sensor on the LED screen.
- Use a Grove rotary angle sensor to control the brightness of the micro:bit LED's.
- Have the Micro:bit randomly generate a number and make the user guess it using the A and B buttons. The Micro:bit should tell the user whether the value is too high, too low or correct.
- Make the Micro:bit speak based on Morse Code tapped on the buttons.
- Use buttons to control the speed of motors.
- Use a Grove ultrasonic sensor, and if the distance read by the sensor gets below a certain threshold, have the other Micro:bit flash their LEDs.
- Control motors attached to one Micro:bit using the A and B buttons on the other.
- Create a car controlled by motors attached to a Micro:bit. Put a Grove ultrasonic sensor on the front. Make the car controllable by a different Micro:bit, and have the car alert the controller (Visually and with Sound) if it gets within a certain distance from a wall. See below for an example video.