Hi all, my dog treat dispenser is based on this dog treat dispenser posted over here at http://www.nyccnc.com/judd-treat-machine.html
There are three video's on his site with great detail into the pythong script, the mechanics and creation of his dog treat dispenser, along with basic operation.
There are quite a few differences in our projects, but they do behave pretty much the same way. My code is based on his code, I removed what I did not want, and added things I needed for my version. This is pretty much how it operates:
A user sends an email to a gmail account you setup for your dog so your dog can get a treat.
The raspberry pi checks for emails every 10 minutes or so, and if it finds any new unread emails, it dispenses a treat, waits a few seconds, then it snaps a picture of your dog having a treat.
Then the raspberry pi replies to those new unread emails and attaches the picture it just took of your dog enjoying the treat. Upon replying, the email(s) in the inbox are marked as read, preventing them from generating another cycle.
NYC CNC based dog treat dispenser users a raspberry pi, a servo, a gear Motor, and an LCD screen, I chose to go a simpler route. My dog treat dispenser uses:
a raspberry pi,
An Arduino Pro Mini to control the L.E.D.S. and the servo motor,
1 servo motor to drive the auger to dispense the treat(s),
3 L.E.D.s to indicate status,
and 3D printed parts.
Here is a link to all the parts on Thingiverse: http://www.thingiverse.com/thing:2187877
Here are a bunch of pictures of the device: https://www.flickr.com/photos/66577016@ ... 9653879371
Not shown in the pictures is the Battery pack I added last minute to power the servo separately to preven the raspberry pi from crashing.
Attached is the Python Script for my version of the dog treat dispenser and the Arduino .ino file for the pro mini.
Electronics for fun...
Raspberry Pi-1 Occidentalist, Tenda 311m x 2
Raspberry Pi-2 Raspbian Wheezy 07-15-12, Netgear N150 x1
Genius 8000 slimline wireless keyboard and mouse both work great with the usb wifi dongle right in the raspberry pi.