Why do we need auto turn on :
Let me explain why this auto turn on feature is important and where to we need this feature,
Sometimes in applications where there is no microcontroller present, that time we need the GSM module to boot up by itself and start functioning. One such application is a Auto answering device. This device’s job is to just turn on once the power is given and wait for incoming calls, and then auto answer the calls so that the person who is calling can listen to whats happening near the module through the mic connected to the SIM900 or SIM800 GSM module.
This is just one of the example where we need auto turn on feature. But the auto turn on feature is also useful wherever we don’t have a microcontroller to intervene and turn the module ON by pulling down and holding the PWRKEY pin to GND for some time.
How do we auto turn on the SIM900/SIM800 module :
The only way to turn on these modules is to press the PWRKEY pin to GND for atleast 1 second to boot up.
The way the PWRKEY pin is designed on the SIMCOM modules is if you pull it to ground for 1 second, it will boot the module if its already turned OFF.
and if you pull the PWRKEY pin to GND for 1 second when the module is already ON, it will shut down the module.
But to auto power on the module we need to connect the PWRKEY pin to GND permanently. Meaning, On power ON, if the PWRKEY pin is connected to GND then the module boots up. Since we are not making it high we don’t have the risk of shutting down the module again. So power key will stay low for the lifetime of the module operation. I tried it and it works. Go ahead and try it and comment below.
Hope it helps someone 🙂
Have questions for me ?
Post here -> EmbeddedAdvice.com , We can discuss
Also see :
- Difference between X7R, X5R, X8R, Z5U,Y5V, X7S, C0G Capacitor dielectrics
- Difference between SIM908 vs SIM808 modules
- SIM900/SIM800 not working – Possible reasons – Tips n Tricks
- Getting your electronics product manufactured in India
3 comments
serhat
Hi Ravi,
On the project that we are currently developing, a SIM800L module is used.
Our device is only programmed to send SMS when it gets a 5V digital pulse to microprocessor’s input (arduino nano).
The issue is about sending first SMS.
In intensive use, SIM module can send SMS for every single input pulse but when it is set aside and after a while pulses applied, the first pulse is missing and no SMS sending.
For instance, if I set the device aside and after 1 hour if I apply 5 pulses, SIM module sends 4 SMSs (first one is missing sometimes).
So SIM module working as like its in sleep mode whether there is no AT commend has been uploaded to set it in sleep mode. But sometimes first pulse in a daily usage is missing.
Ravi PujarAuthor
You have to observe by logging the UART data to somewhere to figure out where its going wrong. Most of the times its the firmware which will have some loophole. You could try waiting for sometime before sending the first SMS.
SERHAT
On the serial monitor logs seem OK. But after 1. and 2. pulse a while later (about 30-40mins) i applied 3. pulse but 3. one is missing last SMS has not been received.
/////1. sms received
AT+CMGS=”+9XXXXXXXXXXX”
Initializing…
AT
OK
AT+CMGF=1
OK
AT+CMGS=”+9XXXXXXXXXXX”
> SMS TEXT SMS TEXT….
+CMGS: 189
////2. sms received
OK
AT
OK
AT+CMGF=1
OK
AT+CMGS=”+9XXXXXXXXXXX”
> SMS TEXT SMS TEXT….
+CMGS: 190
////after 30-40 mins applied 3. one has not been received
OK
AT
OK
AT+CMGF=1
OK
AT+CMGS=”+9XXXXXXXXXXX”
> SMS TEXT SMS TEXT….
////4. one also received after 3. one (3. and 4. short interval)
OK
AT
OK
AT+CMGF=1
OK
AT+CMGS=”+9XXXXXXXXXXX”
> SMS TEXT SMS TEXT….