Image Capturing Bird Feeder

 by quasiben
FeaturedContest Winner
The instructable challenges this summer provided a great opportunity to explore cameras and microcontrollers (MCUs)..  We built a bird feeder (aka the birdtweeder) that takes a picture when a bird stops by for some food and sends the photo to Twitter using TwitPic. 

While this project focuses on bird feeders, the code and camera setup are quite applicable to other projects in which tweeting a picture is desired!


 
Remove these adsRemove these ads by Signing Up
elliottkm says: Feb 19, 2013. 11:09 AM
how do you use the python application? I have copied the data from the serial port I am just trying to figure out how to read the txt file using the python program. Where do I put the name of the txt file in the python program?
vdubbin says: Oct 4, 2012. 11:50 AM
FYI: I pulled my hair out on this a bit. It turns out the code is poor (even more poor than my poor code!). The block of missing data went away, for me, when I made sure to get all the data back after a "ReadDataCmd". Per the manual data is returns in <5-byte header>, , <5-byte footer>. The examples do not wait for those last 5 bytes!

Try this:
while(!EndFlag)
{
j=0;
k=0;
count=0;
SendReadDataCmd();
while(k < (datasize+10)){ // 5-bytes, data, 5-bytes

while(mySerial.available()==0){
// waiting forever for something at port
// probably needs some sort of timeout here...
};

incomingbyte=mySerial.read();
k++;
if((k>5)&&(j<32)&&(!EndFlag))
{
a[j]=incomingbyte; // loading up a buffer
if((a[j-1]==0xFF)&&(a[j]==0xD9)) //Check if the picture is over
EndFlag=1;
j++;
count++;
}

}

for(j=0;j {
Serial.write(a[j]);

}
}
nrush says: Oct 23, 2011. 3:22 PM
Hey! You got one! :-)

http://twitpic.com/5j4g0t

334450973.jpg
a-maw says: Sep 13, 2011. 3:54 AM
underconstruction ,,, & reply later :p that's really nice ;)
dombeef says: Jul 7, 2011. 6:55 PM
How is this a toy?
nku says: Jul 3, 2011. 5:37 AM
hum just a tip for students like me to get those components here
maybe check taobao dot com you'll find smtimes pretty interesting prices

then for payments shipping either email the seller , or you know some friend living in china , or just use a reliable taobao agent like this one taobaospree dot com (ask for Susan or Doris)
or pick another but check their reputation before paypal etc
oh i dont work for these guys ok im student , just made lots of good deals with them for tech stuff and quality is good so thought i could share ;-)
dombeef says: Jun 29, 2011. 12:22 PM
Is it waterproof?
quasiben (author) in reply to dombeefJun 29, 2011. 3:32 PM
Not at the moment but it easily could be!
pdxnat says: Jun 28, 2011. 10:26 AM
This is a very well written instructable and a totally cool build project! Thanks for posting it!
quasiben (author) in reply to pdxnatJun 28, 2011. 12:08 PM
Thanks for the kind words! I think there's still lots of room for improvement. I purchased the TCM8240MD camera from sparkfun and have a breakout board coming later this week. Also, I think I might switch to ultrasonic sensor. My guess is that it's probably more reliable than the IR gate.
AgeingHippy says: Jun 24, 2011. 6:54 PM
Great idea.

How about some action shots? :)
quasiben (author) in reply to AgeingHippyJun 24, 2011. 7:53 PM
I will post them as soon as I get a good one. It's been rainy and no birds have been stopping by :( . You can see what I've got so far at http://twitter.com/birdtweeder
zazenergy says: Jun 24, 2011. 10:50 AM
Wonderful project!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!