Water break

Larry realized that his camp was a bit far from the nearest river. What was he going to do for water? He could do without bathing for a few days (making a mental note to himself not to stand too close to others on the return bus home), but he still needed to drink?

 

Looking around him at the lush plants, he remembered reading somewhere about digging for groundwater. But where would he start? How would he find the best spot in the ground that had the highest level of water?

What Will Happen

The moisture (or water content) levels is taken from analog input pin 00 (connector ADC1 on the Tembusu board) and the value displayed on the micro:bit’s LED grid. The threshold level is set at 50. If the value is below the threshold level, the micro:bit will display a sad face, prompting the user to water the plant. Otherwise, it will display a happy face and say the plant is well hydrated.

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. 

This code can be imported into the micro:bit block editor.

Dr Bit Code

Click the button below to download the Dr Bit solutions  for this challenge. The Dr Bit file is contained within a zip folder.

To download Dr Bit PC software kindly click hear.

To download the Dr Bit app kindly select one of the links below.

To download Dr Bit PC software kindly click hear.

To download the Dr Bit app kindly select one of the links below.

Learning Points

  • Use of in-built light sensor
  • Use of ‘Set Brightness’ block
  • Display on Micro:bit LED Array

Additional Challenge

  • Include a buzzer to sound off when the moisture level is low without the user pressing the button.
  • Change the threshold level to other values to improve the sensitivity of the sensor