Go Down

Topic: Button email help? (Read 499 times) previous topic - next topic

1EAS1

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

tobyb121

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.

SurferTim

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

1EAS1

ok thanks so much for the help!

tobyb121

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


Go Up