Hello guys,
How can i use SIM800L with Arduino MEGA?.
I saw many codes and nothing works with me.
Thanks,
Hello guys,
How can i use SIM800L with Arduino MEGA?.
I saw many codes and nothing works with me.
Thanks,
Your topic was Moved to it's current location / section as it is more suitable.
Could you also take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.
dyso:
https://www.youtube.com/watch?v=aYQKJFromXs&t=304s
Thank you but this module is different of my.
Be more precise. What do you need?
The breakout board can be different, but the module is the same. You will still have to connect rx and tx.
dyso:
Be more precise. What do you need?The breakout board can be different, but the module is the same. You will still have to connect rx and tx.
I just want a code and connections for the module. how can i know if the sim card is placed and work correctly?
The best way is to write the AT-Commands in the serial monitor. For this you need to upload this code:
#include <SoftwareSerial.h>
// Choose two Arduino pins to use for software serial
int RXPin = 8;
int TXPin = 7;
SoftwareSerial myserial(RXPin, TXPin);
void setup()
{
myserial.begin(9600); //Initialize virtual serial port
Serial.begin(9600); //Initialize Arduino default serial port
}
void loop()
{
while(1){
while (myserial.available()) {
Serial.write(myserial.read());//if Serial received data, output it via mySerial.
}
while(Serial.available()) {
myserial.write(Serial.read());//if myserial received data, output it via Serial.
}
}
}
Change the RX and TX pin to what you have.
Another method is, if you have USB on the SIM800L, to use this software:
You can connect and then go through the diagnostics.
I think it is free for 10 days. But it will help you learn alot.
dyso:
The best way is to write the AT-Commands in the serial monitor. For this you need to upload this code:#include <SoftwareSerial.h>
// Choose two Arduino pins to use for software serial
int RXPin = 8;
int TXPin = 7;
SoftwareSerial myserial(RXPin, TXPin);
void setup()
{
myserial.begin(9600); //Initialize virtual serial port
Serial.begin(9600); //Initialize Arduino default serial port
}
void loop()
{
while(1){
while (myserial.available()) {
Serial.write(myserial.read());//if Serial received data, output it via mySerial.
}
while(Serial.available()) {
myserial.write(Serial.read());//if myserial received data, output it via Serial.
}
}
}
Change the RX and TX pin to what you have. Another method is, if you have USB on the SIM800L, to use this software: https://m2msupport.net/m2msupport/tutorial-for-simcom-m2m-modules/ You can connect and then go through the diagnostics. I think it is free for 10 days. But it will help you learn alot.
Where to put my number and the message?
Sorry, completely forgot about this post.
In the command window.
hello
this website is quite good
i am still stuck with this module too
take care of power source it should be independant from mega 2A peak
don t use softserial with mega I think use hard serial
hamzatay:
Where to put my number and the message?
for sending sms you need to use AT commands to configure setting: (enter this commands in serial monitor)
AT+CMGF=1 --->this select sms format (1=text mode)
AT+CMGS="+XXxxxx" --->this the mobile num. for recieve sms (+XX=country code)(xxx=mob. num.)
type your sms and hit enter
SIM800L Test
26
for exit from sms sending mode need to send ctrl-Z to serial port (ctrl-Z is 26 in decimal or 0x1A in hex)
=========
SIM800L is very sensitive on how to power_on and antenna position
use a 12v/3A DC adapter and connect it to the LM2596HVS module and set the Buck Converter module output
to the 4.2v and then connect it to SIM800L (the GND of module and Mega2560 must be shared, exactly like
In-Depth: Send Receive SMS & Call with SIM800L GSM Module & Arduino this tutorial, also need 2 resistors)
and the antenna placement exactly like this tuts.
i forget to send the AT command manual here
(this pdf have most of AT commands for SIM800)
(more than 3MB)
SIM800 Series AT Command Manual V1.09.pdf
SIM800 Series AT Command Manual V1.01.pdf
marteen1337:
for sending sms you need to use AT commands to configure setting: (enter this commands in serial monitor)
AT+CMGF=1 --->this select sms format (1=text mode)
AT+CMGS="+XXxxxx" --->this the mobile num. for recieve sms (+XX=country code)(xxx=mob. num.)type your sms and hit enter
SIM800L Test
26
for exit from sms sending mode need to send ctrl-Z to serial port (ctrl-Z is 26 in decimal or 0x1A in hex)
Karma +
You deserve it for that work.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.