It is said that seeing is believing. Build your very own physical temperature gauge (complete with arrows and dashboards) using the servo module.
What Will Happen
The servo motor will rotate according to the input temperature levels from the micro:bit temperature sensor. Using the map function, the range of integer values for the temperature will be scaled proportionately to match the rotation of the servo motor.
Connection Guide
Block Editor Code
Click the button below to download the block editor code for this challenge. The hex file is contained in a zip folder.
Kindly refer here for instructions on importing code into Micro:bit.
To download the Dr Bit app kindly select one of the links below.
Learning Points
Use in-built micro:bit temperature sensor as input
Send digital signal to fan module as output
Program the LED grid to display temperature value
Additional Challenge
As the micro:bit’s on-board temperature is inferred rather than taken from a dedicated component, the temperature may not necessarily be accurate. One way to improve the accuracy is to use an external thermal sensor.