Changes

Students/Scott Chiu

2,116 bytes added, 05:15, 19 March 2010
no edit summary
==Final Project: eMailbox==
===DocumentationDescription===In this modern age of technology and instant notification, the now ubiquitous standard of e-mail has replaced snail mail. And one of the most dominant companies in maintaining the most productive e-mail systems is Gmail by Google. As such, the eMailbox is a literal, physical manifestation of our transfer and absorption of electronic information through the Internet. It combines the unreal, virtual mail with the real, being notified in the tradition of snail mail. ===Features===Unfortunately, I was unable to get the code to work. In addition to the Arduino software, a programming software named Python was required, as long as the modification of a pfile. The original source was by [http://www.j4mie.org/2008/02/15/how-to-make-a-physical-gmail-notifier/ j4mie], and the application of a servo was implemented by an [http://arduino.myblog.it Angelo Coppola]. ====Proposed Arduino Code====The first part involves the coding for Arduino. This was to move the servo and  ====Actual Arduino Code====This code only provides movement of the servo as well as the blinking of the notification lights. ====Proposed Python Code====The Python script was to allow communication between the internet server (specified as Gmail) and the Arduino by opening the serial port that contained the Arduino.  #import serial, sys, feedparser#Settings - Change these to match your account detailsUSERNAME="[omit]@gmail.com"PASSWORD="[omit]"PROTO="https://"SERVER="mail.google.com"PATH="/gmail/feed/atom"SERIALPORT = "/dev/tty.usbserial-COM9" # Change this to your serial port!# Set up serial porttry: ser = serial.Serial(SERIALPORT, 9600)except serial.SerialException: print "no device connected - exiting" sys.exit()  newmails = int(feedparser.parse(PROTO + USERNAME + ":" + PASSWORD + "@" + SERVER + PATH)["feed"]["fullcount"]) # Output data to serial portif newmails > 0: ser.write("m") print "some mail"else: ser.write("n") print "no mail" #print data to terminal  # Close serial portser.close()</nowiki></code>   ===Visualization & Diagram=======Pictures========Video========Diagram==== 
Details will be posted here after the Final presentation.
56
edits