New Homepage › Forums › Communication Shields › Projects SMS and temperature
This topic contains 5 replies, has 3 voices, and was last updated by Amr 1 year, 9 months ago. This post has been viewed 343 times
-
AuthorPosts
-
April 17, 2019 at 6:43 PM #137286
I want to create an project if the temperature of the phone was <25°C , send an sms message alert for a number ,
and I want to have information avec the temperature with a sms information , please help me , Im a student and its very hard for me ,But I very like it ,
I buy an arduino uno and a 1sheeld+ , I want only it
April 17, 2019 at 9:58 PM #137322Hi,
This project is easy to be achieved as long you are sure your phone has the temperature sensor so that the Temperature Shield is able to work.
The code will be simple. You will check the temperature always in the void loop and send the message, like:
C++123456789/* Always check the value of temperature sensor. */if(TemperatureSensor.getValue() < 25){/* Send the SMS. */SMS.send("1234567890","Room Temperature is higher than 30 degree!");/* Set the flag. */isMessageSent = true;}And don’t forget to initialize the OneSheeld in the void setup and call the #defines for the temperature & SMS shields.
Please refer to the Temperature Shield & SMS Shield documentation for more code samples and information.Note: the Android app on the play store doesn’t have the SMS shield for some technical reasons and for the meantime, please download the same version of the App from the download page here which has the SMS shield.
April 17, 2019 at 11:17 PM #137335Hi ,
Thank you so much sir !
But i have this message “Device can doesn’t support this sensor” so I think my device no support !
Im sur i have the mic , i want a code if a sound comes at the mic , send a message alert , do you have an idea please ?
Im sorry for disturbance at this night . 😉
April 21, 2019 at 6:28 PM #137965Yes, unfortunately, you phone doesn’t have a temperature sensor .. And please check the Mic Shield example here where you can add the message sending code from the SMS Shield. It’s easy as you will replace the:
C++12/* Turn on the LED. */digitalWrite(ledPin,HIGH);With the message sending code lines, like:
C++1234567if(!isMessageSent){/* Send the SMS. */SMS.send("1234567890","Room Temperature is higher than 30 degree!");/* Set the flag. */isMessageSent = true;}April 28, 2019 at 1:31 AM #143153Hi Amr:
I just find out that !Sheild doesn’t support SMS anymore because problems with Google? Then is it possible to send SMS via Skype?
Thanks!April 29, 2019 at 3:33 PM #144873 -
AuthorPosts
You must be logged in to reply to this topic.