Halloween Play-Doh Dispenser

by wentworthm in Circuits > Arduino

3859 Views, 12 Favorites, 0 Comments

Halloween Play-Doh Dispenser

IMG_7916.JPG
Halloween Play Doh Dispensor 2

As a result of the concerns around trick or treating and COVID-19 I decided to make a treat dispenser for Halloween to allow kids to trick or treat safely, and have a brief moment of normalcy. I saw many people online building way to give out candy while being socially distanced like candy chutes. They were good ideas, but I saw a way to challenge myself and my engineering skills. My concept was to build a machine that would dispense a single treat per child without any physical contact with the device. So I built this, the Pumpkin 3000 as my son likes to call it.

Side Rail and "slide" Plate

2BFE2546-A8C4-4BA5-B383-FD7E8B07A810_1_105_c.jpeg
C6A44351-D890-4C7F-BB3E-4F70A1258968_1_105_c.jpeg
C711CACA-6BB6-4F60-89E1-0A3A1BE652CB_1_105_c.jpeg
AC656BFD-7800-49B0-830C-ECABCDE3F9CC_1_105_c.jpeg
D8889626-9176-4FD6-9172-EE7DD8E2797E_1_105_c.jpeg

The Play-Doh canisters would sit on a simple incline plane (slide). I use some old 1/8" plywood from a former build, about 1.5'x2.5'. Using a piece of cheap common wood I cut a groove with my table saw in it so that the plywood would fit in. This would be the primary guide for the slide so that Play-Doh containers wouldn't fall out. To hold everything in place I opted for hot glue. (No judgement here this was a last minute build and I have two kids so limited time to work on it. lol)

Just a small note, the stand which you don't see much through this Instructable is reused. It was the back part of a firetruck I made my son to ride in a few years ago for Halloween. https://www.instructables.com/Halloween-Firetruck/

Stepper Motor, the Cog and the Servo

95402B40-4E52-4620-8099-42DA319E5318_1_105_c.jpeg
07FAA3D3-7E57-4BB7-9436-D98653C4902E_1_105_c.jpeg
6CF943F8-2905-4DD3-A1E3-3DB7B01B3990_1_105_c.jpeg
6F2689F5-2823-4046-A277-FA31644E6B7F_1_105_c.jpeg
6B32A05E-27CF-4AAC-ABC9-3F6893A39968_1_102_o.jpeg
DF8D75A4-B5E8-4708-995E-96D1C45BBB77_1_105_c.jpeg
155D0782-1EBA-4468-98C7-BA589E80B5A7_1_105_c.jpeg
Halloween Play Doh Dispensor 3

So the Play-Doh canisters slide easily down the plywood, but I needed to control them so they would go one at a time. I designed and 3D printed a simple four spoke cog which had an opening in the center to fit over a small stepper motor. I measured out the correct mounting position and drilled my hole for the motor shaft to come through and connect to the cog. The stepper motor was then hot glued into position. I took a piece of scrap wood and made an assumption that I could use it to make a V feed for the Play-Doh. I also put a piece of plywood over it so the canisters wouldn't pop out when they were pressing against one another. Unfortunately I discovered immediately that when I filled the feed full of Play-Doh canisters, they'd jam up. I discovered this after I glued the plywood top piece on, this is a good reminder to test often. I removed the plywood cover, added a straight piece of cardboard for a simple straight chute for feeding the Play-Doh and then replaced the cover. This reduced my ability to hold what I hoped would be 20 canisters to about 10. I attached a small lever switch so I could detect a quarter turn, because the stepper motor isn't great at turning exactly at the rate and speed I wanted when under load.

Using a 2'x2' piece of plywood from an old project I painted a pumpkin on the front. I 3D printed an L shaped mouth, which could pivot to "open" revealing a Play-Doh. Using a jig saw I cut a hole for the L shaped piece. One side of the 3D printed "mouth" was attached to a servo, the other side was held in place with a pin and bracket that I 3D printed. The bracket and servo were hot glued to the plywood.

THE BRAINS!!!

2CECFB74-AD84-46D2-BC5F-5D6C82A57C2D_1_105_c.jpeg
7C7327B3-AB29-4DD9-A97F-BECD90DCF6F2_1_105_c.jpeg
9FE7D0A2-4166-4A0A-95E5-2CC987FEFBF1_1_105_c.jpeg
34BA3AD4-0598-44D7-9BC3-B994D1BE5AF8_1_105_c.jpeg

For the controller I used an Arduino compatible NodeMCU board. I attached a simple power adaptor which would convert to both 3.3v for the NodeMCU with 5v for the servo and stepper motor. The canisters would sometimes fall too fast or hard, resulting in them falling off of the L shaped mouth piece. I hot glue some cardboard "guides" so that the canisters could only land in the mouth.

I wanted a true contactless approach, so I used the Blynk.io platform rather then a button trigger for the kids to press. This allowed me to create a simple phone app which could connect to the board, via wifi, using an Arduino library. I have attached the code I wrote. When a child approached I pressed the dispense button in my app. This would rotate the cog a quarter of a turn dropping one Play-Doh into the mouth. The mouth would then open for 5 seconds allowing a child to take the Play-Doh. If the mouth closed before the child took it, I had created a second button which would open the mouth for an additional 5 seconds without dispensing additional Play-Doh. This allowed children as many tries as needed to take the Play-Doh in case they were scared or excited.

Extras for Safety

BA7CA3CD-C812-4C23-B2EB-0406C4AF6038_1_105_c.jpeg
1AE6FDAB-248F-464A-9A98-C367BEC78E0A_1_105_c.jpeg

I posted my progress on a local facebook group to advertise our safe trick or treat option. I was noticed by The Hartford Courant and ended up with an article in the paper. My wife suggested I make some updates just in case we get more kids then we were expecting. I added a small caddy to the right side to hold some hand sanitizer. I also took some small skulls, inserted LEDs for eyes and had a simple 2032 coin battery powering them (side note the eyes are still on over a week later). These were hot glued to a thin 1/4" dowels and stuck into the ground every 6-7 ft as social distancing guild markers.

Here are the links to articles I was mentioned in:
Hartford Courant: https://www.courant.com/news/connecticut/hc-news-connecticut-halloween-treat-dispenser-20201030-pa7cdfrqnjcxblflvmancqa6su-story.html

We-Ha.com: https://we-ha.com/halloween-in-west-hartford-2020-style/

Final Result

Halloween Play Doh Dispensor 4
74506584-64DF-46CC-A496-0B3E627A9E4F_1_105_c.jpeg
A3C55E7C-DA6F-4748-AC99-4FAE716DD8A9_1_105_c.jpeg
Halloween Play Doh Dispensor 1

In the end we had a strong turn out with over 70 kids showing up, about double what we normally get. I was please with the numbers as many families decided not to trick or treat this year. I hope you liked this build, I am happy to answer any questions you might have.