Sunday, 27 January 2019

Arduino - IX

The last article saw us sending SMS (Short Message Service) from a Arduino GSM (Global System for Mobile Communication) Shield integrated kit. In the present post, we will try to control a LED and fetch the temperature by using SMS

We will be using the same setup comprising SIM800 with a SIM card that we used in the earlier post. But, with the addition of a LED and LM35 sensor. The communication between Arduino and the GSM Shield will be the Rx, Tx and Ground on Arduino to Tx, Rx and Ground on GSM Shield, respectively, as is shown below for reference:




















The code is shown below:

























When we send a SMS with message 'x', LED lights up as shown below:




















When next a SMS with message 'y' is sent, LED is powered off. When a SMS with message 'z' is sent, we get the temperature from LM35 as shown below:
























This concludes the post on controlling LED and fetching sensor data using Arduino SIM800 integration