Automatic Dustbin Using REKA:BIT

Automatic Dustbin Using REKA:BIT

Introduction

Maybe this is the first tutorial using REKA:BIT. ? So I decide to build a simple automatic dustbin. When the sensor detects an object distance of less than 10cm, the servo motor will open the cover for 5 seconds.

Video

This video shows how automatic dustbin works with REKA:BIT.

Hardware Preparation

This is the list of items used in the video.

Sample Program

This sample program is using MakeCode. Before that you need to add the extension of "rekabit" and "grove".

makecode

Thank You

References:

  • REKA:BIT - Simplifying Robotics with micro:bit

Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.

"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."

Related Products

RC Servo Motor (Metal Gear) -50%
x 1 unit(s)
Grove - Ultrasonic Ranger Best Seller
x 1 unit(s)