Experiment 2: CandyDrop – The Arduino Candy Dispenser

Listen to this article

Project description

CandyDrop is a Halloween candy dispenser designed for our socially distanced world! As trick-or-treaters approach the doorway and extend their bags under the CandyDrop, an LED inside the home is switched on, triggered by a light sensor underneath the CandyDrop.

The person in the home can then place their hand over the second light sensor, inside the home, which triggers the dispensing mechanism, controlled by a servo, to drop the candy into the trick-or-treater’s bag.

Process + Experience Video

How it Works / Development / Context

As the cliché goes, we are facing unprecedented times because, of course, of the pandemic. Though I didn’t really celebrate Halloween as a kid (in terms of trick-or-treating and giving candy), I know that the festivities are important to a lot of people, both young and old, here in Canada.

Alas, here in Ottawa, our medical officer of health, Dr. Vera Etches, has cancelled trick-or-treating for this year (Chen 2020). In the spirit, though, I’ve decided to conceptualize a way to distribute candy while maintaining social distancing. This was also the only thing I could think of that would fit the theme of inside/outside (besides the obvious examples shown in the lectures).

I began by researching candy dispensers (using both Arduino or just through manual action) to see if the idea had been implemented before, and how:

Though they weren’t exactly candy dispensers, I was also inspired by these projects:

  • Remote Control Pet Feeder: This was a similar idea that was implemented in a very simple manner. It uses a lateral movement to control the flow. This project also gave me the idea of using a plastic bottle as the container.
  • Dropping Spider on Doorbell – Halloween Scare Prank: This Halloween themed project inspired my to add fake spider and spider webs to my project, as well as having the candy drop from the bottom.

Once I decided on the mechanism, I purchased some materials: Halloween décor, plastic bottle, cardstock, stickers, and, of course, candy.

A quick, very rough sketch of the system
A quick, very rough sketch of the system

I began by building the receiving tube and mini cup that would drop the candy. Next, I attached one of the servo horns to the cup. I then built the sensor system that was connected to the servo with the help of TechMartian’s “Light-Controlled Servo” Instructable.

Afterwards, I added the LED system, tested the entire mechanism, and added some finishing touches with decorations.

Unfortunately, when I was testing the CandyDrop outside for my final set of documentations, the Arduino dropped. Ever since, the servo motor has been glitching and hasn’t been able to drop any candy. Despite troubleshooting the issue over the next few days, I was unable to get the CandyDrop to work again. It’s unfortunate, but at least I got to enjoy the process (and the candy!):

Arduino code hosted on Github

The code can be viewed here: https://github.com/candideu/Arduino-Candy-Dispenser

Circuit diagram

Circuit Diagram

 

Works Cited

Barkers Random Projects. 2019. Automatic Halloween Candy Dispenser – Engineering Process. https://www.youtube.com/watch?v=KxcxH3_G3Es.
Blåsol, Kristian. 2018. ‘Dropping Spider on Doorbell – Halloween Scare Prank’. Arduino Project Hub. 28 October 2018. https://create.arduino.cc/projecthub/Sourcery/dropping-spider-on-doorbell-halloween-scare-prank-5de344.
Chen, Jennifer. 2020. ‘How to Keep Halloween Happy, Even in a Pandemic | CBC News’. CBC, 17 October 2020. https://www.cbc.ca/news/canada/ottawa/how-to-make-halloween-special-during-a-pandemic-1.5763916.
Crazy Mr.Hacker. 2017. How to Build Candy Dispenser. https://www.youtube.com/watch?v=d_KdwpLFhSM.
Dawar, Sahil. 2018. How to Make Automatic Candy Machine with Arduino. https://www.youtube.com/watch?v=VCWiQE6Vrgs.
Mathew, Amal. 2018. ‘Remote Controlled Pet Feeder’. Arduino Project Hub. 13 June 2018. https://create.arduino.cc/projecthub/amalmathewtech/remote-controlled-pet-feeder-abba47.
Mini Gear. 2017. How to Make Candy Dispenser with 3 Different Taste at Home. https://www.youtube.com/watch?v=SpQgHzrhxik.
Pinc Share. 2017. How to Make Candy Dispenser from Cardboard Easy DIY. https://www.youtube.com/watch?v=j7_MdpUqugQ&feature=emb_title.
pneumatic addict. 2018. ‘Desktop Candy Dispenser’. Buildsomething.Com. 25 October 2018. https://www.buildsomething.com/plans/PA57A1F77F2D3B445/Desktop-Candy-Dispenser.
Robokart. 2019. How to Make a Chocolate Dispenser Machine Using Arduino Nano, Servo Motor & IR Sensor. https://www.youtube.com/watch?v=c35OYum_A7k.
simonlevy. 2017. Arduino Powered Candy Dispenser / Arduino Süßigkeitenautomat. https://www.youtube.com/watch?v=D2TIYTq7dFk.
TechMartian. n.d. ‘Light-Controlled Servo’. Instructables. Accessed 23 October 2020. https://www.instructables.com/Light-Controlled-Servo/.

Comments