Lesson 6
Grove - Mini Fan
Grove - Mini Fan
It is a DC motor driver and can drive motors in different speed while reading different voltages via the analog signal connector.
Task 1
Task 1
- Program the micro:bit to turn on the mini fan at different speeds.
- When Button A is pressed, the mini fan will turn at a slow speed.
- When Button B is pressed, the mini fan will turn at a faster speed.
- When both Button A and B is pressed, the mini fan will stop turning.
Task 2
Task 2
- Program the micro:bit to turn on the mini fan automatically when the temperature is more than 30 degrees celsius.