r/ArduinoProjects • u/pgs1000 • Jul 26 '19
Every time the president tweets, this thing dispenses an ibuprofen pill
https://vimeo.com/3376456594
u/wintland Jul 26 '19
This is amazing! I have watched the video like 28 times. I want one.
Any chance you would share the code or instructions?
2
u/pgs1000 Jul 26 '19
Thanks! Yeah I can definitely share the code, it's quite basic as I'm pretty new to coding but happy to share it. I'll get the code up online soon and leave a link to it here.
5
u/pgs1000 Jul 26 '19
You can check out the code here: https://gist.github.com/paulspelman/f7e10b0467d05b6f8e72e79b0412f2b3 At some point I'll write out the full process of building it including the physical pieces, and will share that online.
1
2
u/Friedrich_von_Cool Jul 27 '19
This makes me happy. Thanks for sharing.
1
u/pgs1000 Jul 27 '19
Cheers, glad you liked it. I just had a look at your dino-bot, it's awesome! Great work
2
u/shveytank Jul 26 '19
Can we build something like this with Raspberry pi 3b Raspberry pi 3 : https://www.mob.utsource.net/ic-datasheet/6471448
3
u/pgs1000 Jul 26 '19
Yeah probably, I've never used Raspberry Pi myself though, this was made with the Arduino Uno.
9
1
4
2
3
3
1
-5
0
Jul 26 '19
[deleted]
10
16
u/pgs1000 Jul 26 '19
Took me a long time to get this all working together, but I'm happy with how it turned out.
The code continuously checks @realDonaldTrump for new tweets. As soon as a new tweet appears, the Arduino stepper motor turns 360 degrees, dispensing a pill which falls out of the mouth and into the bowl.
The pill dispenser was made from an old protein powder tub, plastic sheets, a funnel, and a bunch of duct tape. The rubber mask is from Amazon.
Let me know what you think!