Published On Feb 3, 2022
You can receive the temperature sensor value built into the microbit as an input. By comparing this value in the conditional statement, we will create a fan that operates when the temperature is higher than the set temperature. The signal to turn the motor on and off can be done using a "digital write pin" block. I will also teach you how to adjust the temperature sensor values in the simulator, so follow along!
#microbit
#temperaturesensor
#fan
✔ Learning Goals
Let's make a program that turns the fan when the temperature rises using the temperature sensor and DC motor.
✔ Preparations
micro:bit
USB 5-pin cable
DC motor
fan
3 clamp wires
3 M-F jumper wires
✔ Lessons, filming, editing : hohpark
✔ Student : pengshoon / pengshoon
✔ Download code and tutorials
After uploading the video, I will upload the class content and hex file to Github.
https://bit.ly/microbitBasic