Chapter 3 of KitiBot-Microbit

From Waveshare Wiki
Revision as of 10:32, 27 July 2018 by Waveshare-eng11 (talk | contribs) (Created page with "===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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

51822ofmicrobit.png

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.

Temperature measure.gif

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

Acceleration of microbit.png

Related Pages