Hey guys, so today we're going to be talking about this. This is the sim 800 L. Which is [a] gSM/GPrs
[sort] of module that you can use now. It's an evaluation board essentially and it's an evaluation board for that little tin
Can that's on the top here? We'll get a closer. Look in a second
Essentially stick an SD card in and Micro Sd
And you are able to send text messages make phone calls communicate with the [internet], whatever you really want to do
But do it [mobile]. E mobley okay? We're going to go with that being a word
[it's] pretty simple to interface with this evaluation board has voltage level translation
And it also has a five volt input
And I think it's brought down by a diode by the looks of it down to 3.3 volts
So let's plug it in and have a look so we've got it all wired up now. It's pretty self-explanatory
There's just five volts. You've got your Rx and Tx
You've got ground and there's a reset pin as well now. I'm using software serial on my
80 Mega
Eighty Mega to Flatten out the Arduino mega
And I've just wired in through the normal power stuff. It isn't massively power-hungry, so you don't need to worry about that too much
But it is going to draw more than a standard output pin
so you're going to have to wire it in straight through the regulator or through volt or V in if you're
Using usb you can do that now. I've got a couple of buttons on this board here ones for reset and
One is for triggering a text message now at the moment
it's not going to trigger a text message because I've disabled that just while I demo it, so
Let's jump and have a look at
The code itself, so here's the code
[I've] just put the module back in so we've got some stuff. That's come out on the serial monitor
And it says that it's ready it's C fun ready. I'm not sure what that is
C pin ready call ready an Sms ready so basically it just means it's ready I think
And then we've got our code just here
now I'm
Organizing this in a way
So that I can send GPS coordinates to a mobile phone and because I'm working on high-altitude
Balloon project, we're not Gonna go in that into that today
But we're going to be looking at how to send temperature sensor Data to your phone now
I'm using a net LM35 it's a really simple one
I've covered them before so go back into my videos if you want to see how to do that
Essentially, it's five volts in ground and then analog signal out
And you [just] do a bit of sort of calculation stuff like here to sort that out
Now we need to software serial with a sim 800. L. So we've defined that here is pin 10 and 11 for Rx and Tx
There several serial examples in the library in the library in the Ide if you don't know how to do that
And if we move [down] a little bit here, we've got a section here
it says if the
Software serial Port is available write it to the serial port so that we can see what [is] kicking out?
and that's what's happened on the
[serial] output
Now we we have a function here called send text message. This is the important bit, so this bit here
it just says it's sending text message, but it works on 80 [commands], so we've got an 80 command here for sending a
Text message [that] sets the shield to Sms mode so shield because I'm using some example code from seed studios
And then it goes on to specify the telephone number I've left mine out of here. So that you can't have my mobile number
However, [if] you're cool, you can always ask for it
And then we've got a section here. I've [commented] out because this was what I was
Messing around with for the GPS stuff
and then this bit here, it's just adding text to
The text message by printing it to the software serial and then down here
We're ending it and so then it will print a final character. Which is cTRl z and
That will tell the [the] module to send the text message, and then I'll tell us the sec system
There's also a bit here for a voice call, but I'm not using that at the moment
We're not going to go into it because I haven't wired up a mic or anything maya or a speaker
so let's go back to the main loop now the main loop requires a button to be pressed and
As one of the buttons I've got wired on breadboard
Once that button is pressed. I've wired it up the other way [around] so it's looking for a zero signal rather than a high [signal]
[it] will take 50 analog readings from the temperature and then average them out, so it will just divide it by 50
And then it will send the text message so I can show you that working
In fact I can show you it working without sending a text message this so I'm going to press the button
so if I just press the button now and
Then we'll jump back to the other screen, and you'll see that it says
Fourteen seventy five so it's fourteen point seven five degrees in here, and that is pretty accurate it isn't warm
In fact I can show you
So it's ads largely right. I think it's probably around a degree out
so I'm going to change the code now and
Then I'm going to make it actually send a text [message]
And we'll jump back to the other screen and see what that looks like so I'm going to put my telephone number in here
And then we're going to upload it and uncomment the section where it says send text message
Plug the module back in and we've reset the board and so we're now ready to send our first text [message] now
I've plugged in my details. So that you can see it
But if I press this button it should send the temperature value that we've been looking at
so here we go fingers crossed, [so]
You're seeing the serial monitor. It's collecting the details of the message, and then it's going to say that it's okay
Essentially so it's sent the message. You'll see also. It's got a number just above that's how many text messages. I sent so far
It does take a while
it's not
very quick
[I] don't know whether it has doesn't have a it uses just the GSM network so it's slower than perhaps
The Data Network or something like that, but it does take a little while
So I'll time it [and] then tell you how long it took
There we go finally now. I have to admit that I I
Did have to move the antenna for the module it was sort of underneath my soldering iron?
Well, sort of it's right next my soldering iron, so I don't know whether there's any
Kind of blocking of signals or whatever, but it's worked out. We can see here that I've got a text message
I'm not sure if you'll be able to see it, but
See if it'll focus on there
You're going to [focus]. So there we go. It says the temperature is fourteen point nine Eight Degrees C
So I'm pretty happy [that] it will send those values
Now that's pretty much all I've got to say about the same 800 module [owner] that it's really cheap
It's very easy to use all you need to do is get yourself a free Sim card
You can get them from most companies
And they've come with a tiny bit of credit already on them like the one
I got was from ee [and] it came with five pounds free credit which is
Amazing and no contracts or anything like that, and I can send text messages through
So about 12 p on a pay-as-You-go contract, so you'll get you know a fair few, but you'll burn through them [pretty] quickly
So you may want to top-up?
Every now and again get a free booster pack or something like that anyway
Thank you very much for watching links to where you can buy one of these modules are in the description
