Case 27: The Smart Garbage Can
29. Case 27: The Smart Garbage Can#
Make a smart garbage can.
29.3. Materials Required#
29.4. Bricks build-up#
29.5. Installation Mthods of Hardwares#
Install the sonar:bit with the bricks.
29.6. Hardware Connection#
29.7. Software Platform#
Click “Advanced” in the MakeCode to see more choices.
Search with Wukong in the dialogue box to download it.
Search with IOT:bit in the dialogue box to download it.
When the micro:bit is powering on, it displays a heart icon, then the lid will automatically open when the ultrasonic sensor detects someone approaching, and it will automatically close after three seconds.