NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Project Help and Ideas » Twitter Doorbell with Photo via TwitPic

December 29, 2010
by Steven
Steven's Avatar

I'm 17 and received a NerdKit for Christmas (thanks, dad!) and quickly picked up the different style of programming and thought processes required. I remembered reading about someone using an Arduino to make a doorbell that sent a tweet when rung. I thought, can I do this with my NerdKit? Of course!

Click to visit TwitPic (Click to see the TwitPic page)

I used code examples from the Morse Code Decoder project and the Crystal Real Time Clock tutorial to read the state of the pushbutton and disable the button for a certain amount of time, and the Buttons, Switches, and Pull-up Resistors section of the Digital Calipers DRO tutorial to wire the pushbutton.

Basically, the NerdKit waits until the pushbutton is pressed, sends a "Button pushed." message over the serial port, then enables interrupts and starts the clock, which essentially disables the pushbutton for a set period of time.

I didn't want someone to "abuse" the button and send mass amounts of tweets and photos; this would freeze up my computer and internet connection. For testing purposes I set this to 5 seconds, but in a realistic environment you would set it higher, like a few minutes.

I wrote a quick program that monitors the serial port for that "Button pressed." message, and when it finds one it will take a photo from the selected webcam, upload it to TwitPic, then tweet "Doorbell rung!" along with the time and the link to the TwitPic photo to my Twitter channel.

I made a quick video you can watch on YouTube:

http://www.youtube.com/watch?v=dVPgxYO7jEg

And here is the link to the Twitter account I made to test it:

http://twitter.com/apitestground

December 29, 2010
by Ralphxyz
Ralphxyz's Avatar

Steven you are awesome!! Great project.

Ralph

December 29, 2010
by hevans
(NerdKits Staff)

hevans's Avatar

That is a fantastic project Steven, keep up the great work!

Humberto

January 19, 2011
by siapipa
siapipa's Avatar

I'm really interested in doing this project. I just have a question on how would the signal coming through the USB from the micro controller connects with the Webcam and twitter? I'm so confuse right now. Please give me a hint on how it is done.

Kayla

March 14, 2011
by missle3944
missle3944's Avatar

Did you use Visual Basic to create the program that is in your video?

March 22, 2011
by d3adl0ck3
d3adl0ck3's Avatar

Hey Steven,

That is totally awesome. At 17, hum, I guess I was pretty much 'Beavis and/or Butthead' if that means anything to the other old folks. Glad to see our (computer) scientific future isn't as dark as some assume!

April 07, 2011
by Ralphxyz
Ralphxyz's Avatar

Hey Steven, could you help out Singlecoilx3 with his need to understanding sms text messaging tied to the Nerdkit like you did with your great doorbell project.

Ralph

April 07, 2011
by Ralphxyz
Ralphxyz's Avatar

OOps, sorry here is the link to Singlecoilx3's thread.

Ralph

Post a Reply

Please log in to post a reply.

Did you know that you can make a huge, multi-panel LED display? Learn more...