In this Arduino Project, we are going to learn how to send an SMS with sensor values using the GSM shield. We are going to trigger the SMS send with just a missed call, free of charge! There is a lot to cover so let’s get started!

Intro to the Arduino SMS tutorial

In this video, we build a project in which when we call Arduino it sends back an SMS with the temperature and humidity that it measures using the DHT22 sensor. This project is great when we want to remotely sense a remote location, or make Arduino perform an action remotely free of charge. When we call Arduino it immediately hangs up the call and performs an action. So we get a busy tone and we are not charged for this missed call. Let’s try it and see how it works. OK, I’m now going to call Arduino. We get a busy tone and now we are going to receive an SMS. Waiting for an SMS now. It can come at any minute. Here it is. As you can see, temperature 21.7 and humidity 59.3 percent Great isn’t it?

——————–
WHERE TO BUY
——————–

1. GSM Shield: https://educ8s.tv/part/GSMShield

2. DHT22 Sensor: https://educ8s.tv/part/DHT22

3. Arduino Uno: https://educ8s.tv/part/ArduinoUno

4. USB Voltage Tester: https://educ8s.tv/part/UsbDoctorOLED

5. Powerbank: https://educ8s.tv/part/Powerbank

6. Wires: https://educ8s.tv/part/Wires

Full disclosure: All of the links above are affiliate links. I get a small percentage of each sale they generate. Thank you for your support!

[adsense]

Now, let’s see how to build this project. For this project, all we need is An Arduino Uno, the GSM shield from tinySine and the DHT22 sensor. We have prepared detailed tutorials on how to use the tinySine GSM shield so check them out! All we have to do is to connect the shield with the Arduino Uno. OK. Next, we have to connect the DHT22 sensor. We connect the pin with the minus to Arduino Ground. We connect the pin the plus sign to Arduino 5V, and lastly, we connect the output signal to digital pin 7. Digital pin 8 does not work because it is used by the tinySine GSM shield as well with pins 0 and 1. I haven’t tested any other pins but I am sure the digital pin 7 works fine. Let’s now power it up using a small power bank. I have connected this small power bank and as you can see now the current is around 70mA and the power consumption is 0.35W. So, this project can be powered by a battery, if you are in a remote location you can use solar power in order to power this device.

——————–
LIBRARIES
——————–

GSM Shield Library: http://www.tinyosshop.com/datasheet/GSM_GPRS_GPS_Shield_GSMSHIELD.rar

DHT22 Library: https://github.com/adafruit/DHT-sensor-library

Now let’s go to the computer and see the code of the project. The code of the project is simple. We are using the library from tinySIne the designer of the shield. In the code, we check the status of the shield every second. If there is an incoming call we immediately hang up that call and then we read temperature and humidity from the DHT22 sensor. Then we compose an SMS with the data and send the SMS to a predefined telephone number. In this part of the code, you can place any action you like Arduino to perform. It’s that easy! Of course, you can find the code in the description of the video. So that’s today’s project. A quite useful device in order to remotely sense a location or a single command to Arduino without cost. In the future videos we are going to to see how to send commands to Arduino using SMS messages, so stay tuned!

——————–
CODE
——————–

 

 

 

——————–

SUBSCRIBE ON YOUTUBE

——————–

Never miss a video: Subscribe to educ8s.tv