This gummy dispenser is a simple and fun project to make for kids and with kids. There are candies around the circumference of the rocket, and you can get one of them simply by placing your hand in the niche at the base of the rocket. It's just that a sensor is installed inside the rocket and when you bring your hand to it, the servo sends the candy directly into the palm.
Let's watch a short video demonstrating the operation of the dispenser.
Tools and materials: -Crazy Circuits board; -Micro board: bit; -Ultrasonic module; -Servo drive; -Battery holder for 2 AA;
-Two AA batteries;
-Red spray paint;
-Aluminum adhesive tape;
-Details from Lego constructor;
Step one: body and servo
The body is made of cardboard. It is necessary to remove the upper part on one side and, bending the cardboard into a tube, secure with tape. Make a rectangular hole in the case and fix the servo.
Attaches to the servo shaft Lego lever. When you turn the servo, it will turn the lever and the candy will roll to the bottom. At the same time, the lever will block the following candies from rolling. When he returns to the starting position, the next candy will roll onto his shoulder.
Step two: track
Next, you need to measure the diameter of the candy and add a couple of millimeters to cut the rings for the track. Sweets will roll down on it.
The track is attached to the body with superglue. There are stubs at the top and bottom.
For the candy to roll into the hole, the master glued a triangular piece with an inclination to the hole.
Step three: base
Now you need to make the base. An ultrasonic sensor will be installed at the base. The base is in the form of a cylinder with a large diameter at the bottom. To determine the diameters of the lower and upper parts, the master first made templates out of paper.
Then cuts out the details and glues the base.
Cuts a niche. < br> Glue disks to faith and to the bottom of the base.
In the lower part of the case, under the servo, he glues the cardboard at an angle. Hitting it, the candy will roll back and fall into your hand.
Step four: electronics
An ultrasonic sensor is glued to the top of the base. The wires from it stretch up inside the case.
Wraps with plastic transparent acrylic corpus.
To install a microbit, he makes a disk. It will be attached to the top of the case.
The wires from the distance sensor and the servomotor are pulled up through the case.
Installs the batteries in the battery compartment and connects to the device. The battery compartment is located inside the case.
The servo motor connects to pin 13, and the distance sensor to pins 0 and 1.
Step five: code
The wizard uses makecode.microbit.org to program the board. Downloads and installs the code from here.
It works like this.
The code shows a smiley on micro: bit until the distance sensor detects a hand under it. He then displays the chewing gum on the screen and moves the LEGO lever attached to the servo up and down to dispense one chewing gum. He then shows a down arrow indicating that a distribution is in progress. 5 seconds must pass before the previous and next cycle.
Step six: details rockets
In the upper part, the master adds a cone. It will cover some of the electronics and make it look more like a rocket. Added wings on the sides.
Paints rocket parts with red and gray paint. Along the spiral of the track he sticks an aluminum tape. The same tape is glued to the wings.
Step Seven: Candy
Now it remains to remove the top part and place it inside the candy.
< a href = "https://usamodelkina.ru/uploads/posts/2020-12/1608925474_1-40.jpg" rel = "prettyPhoto"> Everything is ready.