Diannamertz (talk | contribs) No edit summary |
Diannamertz (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
http://farm4.static.flickr.com/3254/2507585112_60cc338bfb_m.jpg | http://farm4.static.flickr.com/3254/2507585112_60cc338bfb_m.jpg | ||
<br><br> | |||
[http://code.google.com/p/sserial2mobile/ <b>Code</b>] | [http://code.google.com/p/sserial2mobile/ <b>Code Example</b>] | ||
SSerial2Mobile phone = SSerial2Mobile(2,3); <br> | SSerial2Mobile phone = SSerial2Mobile(2,3); <br> | ||
phone.sendTxt("+ | phone.sendTxt("+017627700334","Remember to buy more coffee!"); <br> | ||
phone.sendEmail(" | phone.sendEmail("diannamertz@gmail.com", "Remember to buy more coffee!"); <br> | ||
Serial.print("Batt: "); <br> | Serial.print("Batt: "); <br> | ||
Serial.print(phone.batt()); <br> | Serial.print(phone.batt()); <br> | ||
Line 36: | Line 36: | ||
Photoresistor <br> | Photoresistor <br> | ||
Coffee can <br> | Coffee can <br> | ||
Depleting coffee | Depleting coffee grounds <br> | ||
<b> | <b>Tasks:</b><br> | ||
<ul> | |||
<li>Alter or replace coffee can so the connection from Arduino to photoresistor is possible.</li> | |||
<li>Alter code so that the phone numbers alternate between roommates.</li> | |||
</ul> |
Revision as of 18:22, 15 December 2011
In my WG, my flatmates and I take turns buying the coffee grounds. Sometimes this becomes confusing, as there are three of us, and the person who is next in line to buy coffee is not necessarily aware that the coffee supply is low.
I'd like to develop a system that ensures that our WG is always supplied with enough coffee. Using Arduino and a photoresistor, I propose to install a sensor inside the coffee ground that will send a reminder SMS to the next person in line as soon as the coffee levels are low.
File:Coffee03.jpg
File:Coffee04.jpg
Above image source: Flickr user iDecrease
Setup
SSerial2Mobile phone = SSerial2Mobile(2,3);
phone.sendTxt("+017627700334","Remember to buy more coffee!");
phone.sendEmail("diannamertz@gmail.com", "Remember to buy more coffee!");
Serial.print("Batt: ");
Serial.print(phone.batt());
Serial.println("%");
Serial.print("RSSI: ");
Serial.println(phone.rssi());
Equipment:
Cellular Sheild
SIM card
Antenna
Arduino
Photoresistor
Coffee can
Depleting coffee grounds
Tasks:
- Alter or replace coffee can so the connection from Arduino to photoresistor is possible.
- Alter code so that the phone numbers alternate between roommates.