#24 Money Box Project With micro:bit
16 Jun 2025
Categories
Recent Post
16 June 2025
13 June 2025
12 June 2025
Featured Products
PicoBricks Pi Pico W Main Board: Meet Robotic Coding
PicoBricks Base Kit: Robotics Project Starter Kit
PicoBricks Money Box can detect objects placed in its receptacle through distance sensor in the front of it and automatically lifts its receptacle to take in these objects.
In this project, when the distance sensor detects the object placed in the receptacle , the servo motor connected to the motor driver is adjusted to the angle specified in the code, and then the object inside the receptacle is dropped into the Money Box.
You can assemble this project by breaking apart the PicoBricks modules at the proper points.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#Money Box Project from microbit import * from picobricks import * # Function Initialization motor = motordriver() motor.servo(1,180) trashDetected=0 distance=100 while True: rawdistance=measure_distance() if rawdistance<1200: distance=rawdistance motor.servo(1,180) sleep(500) if distance<5: trashDetected=1 sleep(300) if distance>9 and trashDetected==1: trashDetected=0 motor.servo(1,90) sleep(500)
Thanks for subscribing!
This email has been registered!
Edit Option
Back In Stock Notification
Compare
Product | SKU | Rating | Description | Collection | Availability | Product Type | Other Details |
---|