I’m back as promised for a new update to the SMS Tutorial.
This was supposed to be an update to the original, not as a new Instructable but I thought that posting this as an update won’t do justice to the project. This is because in the older one, you could only send an SMS to a number pre-defined in the LinkIt ONE sketch, but in this one a set of numbers can be stored and a type of contact list can be set-up on the LinkIt ONE.
You may say: “Well what would be achieved by that?”. By that you can use the LinkIt ONE to send messages just like in a cell phone, by specifying the contact name, or it could be used in a variety of ways.
I do not have a suitable display at the moment, or I would have attached that, along with a keypad or something of that type, but if I get those in future, I will certainly post that as well.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Materials Required
- A LinkIt ONE capable to get sketches uploaded to it
- USB cable to connect the LinkIt ONE to the PC
- Pre-paid SIM card with credit in it. Service charges may apply
Step 2: The Code
I have attached the code but here I would like to tell you that this code can be used but you need to do a few changes. You will have to enter your phone numbers and the contact name in the code itself and then upload that code to your LinkIt ONE.
First, download the code. Then, modify the array in the code which contains the contact numbers, to whatever you want (Your contacts), and then change the number in the brackets. Look at the pictures for reference. I have included everything there in detail. When you have done all that, then press the “Verify” button. Hopefully, you will be greeted by “Done compiling”. If not, then you have done something wrong so look at the pictures and modify the code again.
Note: You should enter the name and numbers in inverted commas, separated with commas, like this:
"1" , "John", "0897554434"
Step 3: Uploading the Code
This should be quite easy. Select the right COM port (MTK USB Modem Port) by verifying it once from the “Device Manager” and then upload the code. Once you see the red reset light flash, move on to the next step.
Step 4: Working
Once uploaded, wait for the LinkIt ONE to show up in the Arduino IDE and once it does, open the serial monitor. Make sure that your baud rate is set to 115600 and the other to “No line ending”. If nothing appears on the serial monitor, do not panic and type anything there and send it.
I have done this in my code because of the LinkIt ONE’s serial port, which takes time to initialize than the Arduino UNO, and data through the serial port gets lost once it does initialize.
Once you do that, you will see other text. Follow the instructions and you’re good to go.
It will show you the contact name and the index (1, 2, 3, etc). When it asks who do you want to send to, enter the ID number of the contact and the rest is easy. If the SMS is sent successfully, “SMS is sent” will be printed on the serial monitor and if no “SMS is not sent” will be printed.
If you have any doubts/suggestions, post a comment and I will be happy to help you.