10.Temperature-Controlled Fan
##Case Description
A fan designed for nursing homes uses temperature control technology to prevent elderly users from getting sick due to overexposure. The fan can oscillate (shake its head) after being turned on.
###Key Knowledge Points
How to use the fan module
How to use the Micro:bit's temperature sensor
##Case Implementation
###Structural Assembly Temperature-Controlled Fan.pdf
###Circuit Connection
Connect the fan module to the M1A+ and M1A- pins on the Robotbit. (If the fan direction is reversed, swap the red and black wires.)
Connect the servo to S1, ensuring the servo wires (brown, red, black) match the corresponding pins (brown, red, black) on the Robotbit.
###Programming
1、To use the motor and servo drivers on the Robotbit, the program must begin with [Expansion Board Initialization].
2、When the temperature exceeds 26°C, turn on the fan and activate the servo for oscillation (shaking).
