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 ads by
Signing UpStep 1: Materials
- Adafruit XBee Adapter ($10)
- LilyPad Arduino ($20)
- XBee Series 1 ($22) x2
- LinkSprite JPEG Camera ($50)
- LiPo Battery ($9)
- Infrared Emitter Detector Pair ($2)
- Snap-On XBee Breakout ($10)
- 100 Ohm and 10K Ohm Resistor
- Wire
- Bird Feeder
- Bird Seed













































Visit Our Store »
Go Pro Today »




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]);
}
}
http://twitpic.com/5j4g0t
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 ;-)
How about some action shots? :)