micro:bit Workshop Level 4
- micro:bit and External Modules (Part 2)
- Applications with External Modules
Example: Grove Inventor Kit for micro:bit
- micro:bit Shield
- Speaker
- Rotary Angle Sensor
- Ultrasonic Ranger
- Light Sensor
- Gesture Sensor
- Red LED
- RGB LED Strip
- 4-digit Display
1. MakeCode - Add Package
Add the following packages.
- Grove
- Neopixel
2. MakeCode - Grove 4-digit Display
Test the 4-digit display by showing the number "1234."
3. MakeCode - Grove Ultrasonic Ranger
Replace the number "1234" with the "Ultrasonic Sensor (in cm) at P0" block. Add delay for the measurement to work correctly.
4. MakeCode - LED Strip
5. MakeCode - Neopixel
Hands-on: Rotate LED
Make one lit LED move along the strip repeatedly.
Exercise: More LEDs
Light up the LEDs in order.
See you in micro:bit Workshop Level 5 ...
- micro:bit Wi-Fi Extension
- Applications with Cloud Platform ThingSpeak
- Applications with Web-based Service Platform IFTTT