Dear friends welcome back!
Many of you have asked me to make a video about using the TinySine GSM Shield with an Arduino Mega.
So, here it is.
If you need to use the GSM Shield with an Arduino Uno,
check our previous video.
We are in the computer now.
First of all, you have to download
the TinySine GSM library
and unzip it in your Arduino libraries folder.
You can find a link in the description of the video
in order to download a library.
Then, we have to make two changes
in some files in the library itself.
First, we modify the GSM.h file.
We open it with Notepad++ for example,
we uncomment this line here, line 5,
and comment line 4, in order to inform the library
that we are using an Arduino Mega
instead of an Arduino Uno and we press save.
Next, we modify HW.h file.
We open it and uncomment the first line
in order to inform again the library that we are using an Arduino Mega.
Now, we save it and we are ready to open
Arduino IDE.
Okay, we have opened Arduino IDE 1.0.6
and we have loaded the SMSSender.ino program.
IMPORTANT! The TinySine library does NOT work
with Arduino IDE later than version 1.0.6.
Be sure that you are using Arduino IDE 1.0.6.
Now, modify this line here and enter your own phone number.
Now, you can press upload to upload this program
to your Arduino Mega.
Be sure you have not connected the GSM to your Arduino
when pressing upload.
The program sends a SMS message to a phone number
and then waits for incoming messages.
Let's now see how to connect the GSM Shield
to the Arduino Mega.
The shield has two jumpers. We have to remove them
in order to use this shield with an Arduino Mega.
Now, we have to connect TX pin from the GSM Shield
to TX1 pin on the Arduino Mega.
Then, we have to connect RX pin 
from the GSM Shield, to the RX1 pin
on the Arduino Mega.
Now, we are ready to connect the GSM Shield with Arduino.
Let's do it.
Okay. The GSM Shield is now connected,
let's power Arduino up and see if it is working.
I have placed my cell phone here, in order to see the incoming message.
As you can see, the leds are flashing here in the GSM Shield,
when the blue led is flashing slowly, it is
connecting to the GSM network.
Let's wait for a second.
Okay, it is now connected.
Any momment now, we will receive the sms message to the cell phone here.
Let's see.
Okay, it is now sending the sms.
Okay, here it is.
Sms from Arduino Mega 2560. That's it.
That are the steps required to use the TinySine GSM Shield,
with Arduino Mega 2560.
Unfortunately, the provided with the Shield library
only works with Arduino IDE 1.0.6 on Arduino Mega.
Also, it requires some file modifications
so, it is easier to just use an Arduino Uno instead.
I hope you liked the video. If so, press
the Like button below
or subscribe to our channel in order to
watch our future videos.
Thank you very much and see you soon!
