Germany
Offline
Newbie
Karma: 0
Posts: 32
|
 |
« on: March 21, 2011, 11:00:05 am » |
Hy,
I just finished a LED Cube and thought LED's are good signes. How can I make my Arduino uno recieve E-Mails and RSS feeds, so he can lite a LED? Is USB ok or should I bui the ethernet shield?
Thanks Robohac
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
Newbie
Karma: 0
Posts: 32
|
 |
« Reply #1 on: March 21, 2011, 12:55:43 pm » |
I found a Video, but there isn't written how he made this:
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
Newbie
Karma: 0
Posts: 32
|
 |
« Reply #2 on: March 23, 2011, 11:09:45 am » |
Can't anyone help me?
|
|
|
|
|
Logged
|
|
|
|
|
Finland
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #3 on: March 23, 2011, 01:31:33 pm » |
I suppose that he said into video that PC sends info into arduino. So you could write python script that checks your email and then send results with serial into your arduino sketch.
-Jussi-
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
Newbie
Karma: 0
Posts: 32
|
 |
« Reply #4 on: March 23, 2011, 03:50:00 pm » |
but how can I make the Scetch and the .py script comunicate?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 90
Posts: 9407
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #5 on: March 23, 2011, 04:18:42 pm » |
Over the serial port?!! A sample python sketch that reads from the arduino may help to get you started import sys, os, serial
def monitor():
ser = serial.Serial(COMPORT, BAUDRATE, timeout=0)
while (1): line = ser.readline() if (line != ""): #print line[:-1] # strip \n fields = line[:-1].split('; ') ID = fields[0] # print fields print "device ID: ", ID # write to file text_file = open("Pdata.log", "w") text_file.write(line) text_file.close()
# do some other things here
print "Stop Monitoring"
""" ------------------------------------------- MAIN APPLICATION """
print "Start Serial Monitor" print
COMPORT = 4; BAUDRATE = 115200
monitor()
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
Newbie
Karma: 0
Posts: 32
|
 |
« Reply #6 on: March 24, 2011, 07:32:52 am » |
but the arduino uno haves only a usb port should I replace serial with usb?
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #7 on: March 24, 2011, 07:51:27 am » |
but the arduino uno haves only a usb port should I replace serial with usb? It has a USB to serial converter on board so it appears as a serial port to your computer.
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
Newbie
Karma: 0
Posts: 32
|
 |
« Reply #8 on: March 24, 2011, 08:07:05 am » |
woops sorry I didn't know that
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 90
Posts: 9407
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #9 on: March 24, 2011, 02:08:43 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
Newbie
Karma: 0
Posts: 32
|
 |
« Reply #10 on: March 25, 2011, 12:22:52 pm » |
is that pithon 2 or 3 ?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 90
Posts: 9407
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #11 on: March 25, 2011, 01:46:52 pm » |
it compiles under my python 2.7 In the comments there is a ref to - http://snippets.dzone.com/posts/show/4024 - which is a more elaborate checker, includes sending mail too.
|
|
|
|
|
Logged
|
|
|
|
|
Rome
Offline
God Member
Karma: 1
Posts: 972
Arduino rocks
|
 |
« Reply #12 on: March 30, 2011, 06:15:45 am » |
Hy,
I just finished a LED Cube and thought LED's are good signes. How can I make my Arduino uno recieve E-Mails and RSS feeds, so he can lite a LED? Is USB ok or should I bui the ethernet shield?
Thanks Robohac
wihtout ethernet shield, your PC must be always on to retrieve emails and send them to Arduino. With ethernet shield you don't need any PC at all.
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
Newbie
Karma: 0
Posts: 32
|
 |
« Reply #13 on: March 30, 2011, 06:32:29 am » |
But with ethernet shield I need a server. Or not? How should I programm that?
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #14 on: March 30, 2011, 07:29:43 am » |
How should I program that? With difficulty - You would need some kind of server (but if you have an email address then you probably have one you can access). You can probably monitor an imap server for new messages.
|
|
|
|
|
Logged
|
|
|
|
|
|