Pages: [1]   Go Down
Author Topic: Button email help?  (Read 405 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to do a project that when I press a button it sends an email. I have an idea of how it will work (as in what programs) but other than that Im stuck.(;
I'm not sure what the code will be but I want to do it the same way as they did it http://learn.adafruit.com/arduino-lesson-17-email-sending-movement-detector/overview but just without the sensor. Is there anyway to do this? If so how would I set it up and what would the code be?

Thanks for the help!
Ethan
Logged

Offline Offline
Sr. Member
****
Karma: 9
Posts: 254
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have a look at this:
http://arduino.cc/en/Tutorial/ButtonStateChange
It is pretty basic but should give you a good idea of a quick and easy way of checking for button presses, and gives you a circuit to work from.
If you go through the code in the link you posted it shouldn't be too hard to substitute in the button press code for the PIR stuff.
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 138
Posts: 5833
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the email part. Replace the "Press 'e' to send" with your button press as the trigger.
http://playground.arduino.cc/Code/Email
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok thanks so much for the help!
Logged

Offline Offline
Sr. Member
****
Karma: 9
Posts: 254
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Note that what SurferTim has posted requires the Ethernet shield, whereas the adafruit code uses a pc to send the email
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok thanks(:
Logged

Pages: [1]   Go Up
Jump to: