6. Project 1: Read Sensors on micro:bit LED lights

Level: level

6.1. Part List:

  1. Temperature/Humidity Sensor X1

  2. Multiple Sensors for plant X1

  3. Multiple Actuators for plant X1

  4. Connecting Wire X1

  5. micro:bit X1

  6. USB Cable X1

6.2. Description:

You can learn how to get the value of the sensor and show on micro:bit LED. Temperature/Humidity sensor will be illustrated in this demo.

6.3. Steps:

  1. Basic (Add block on start) > Plant (Add block Initialize Smarthon multiple-sensor)

  2. Input (Add block on button A is pressed) > Basic (Add block show number) > Plant (Add block Get temperature (°C))

  3. Input (Add block on button A is pressed, change “A” into “B” ) > Basic (Add block show number) > House (Add block Get humidity) auto_fit

6.4. Hardware:

  1. Download the code and transfer to micro:bit

  2. Plug the micro:bit into Multiple Sensors

  3. Pressed micro:bit button A to see the temperature and button B to see the humidity auto_fit * Try to show the other sensors value on micro:bit LED.