Lesson 9
Grove - Vibration Motor
Grove - Vibration Motor
This is a motor that vibrates when the input is logic High. It can be used in toys, cell phones and many more.
Task 1
Task 1
- Program the micro:bit as a step counter (pedometer) to count the number of steps taken.
- When there is a 'shake', the counter will increase by 1.
- When both Buttons A & B is pressed, the counter will reset to 0.
- If the counter shows more than 10, the vibration motor will vibrate and the buzzer will sound for 5 times. Then, the microbit will show, "Well done!"