Chapter 3 of KitiBot-Microbit
Chapter 3 Music
Micro:bit integrates temperature sensor, Accelerometer, compass and so on. In this chapter, we learn to use these sensor.
1. Temperature Sensor
In fact, micro:bit has no temperature sensor on board, what we used to measure temperature is the sensor in its main chip. The sensor is used to measure the temperature of chip but not the ambient temperature. However, we can take it as ambient temperature as they are similar.
The main chip we say is nRF51822, where the temperature is inside.
Find temperature block in Input class, combine with number block we could measure the temperature. Simulating the project, you can see the number changes when we change the temperature.
Download the project to micro:bit, touch the chip for some time, and you can find the value increased.
2. Accelerometer
MMMA8652 is integrated on micro:bit, locates at the left bottom of micro:bit