You should see the output below on the serial monitor. Once you have uploaded the sketch, open the serial monitor at baud rate 9600. read()) //Forward what Software Serial received to Serial Port read()) //Forward what Serial received to Software Serial Port println( "AT+CREG?") //Check whether it has registered in the network updateSerial() println( "AT+CCID") //Read SIM information to confirm whether the SIM is plugged updateSerial() println( "AT+CSQ") //Signal quality test, value range is 0-31, 31 is the best updateSerial() println( "AT") //Handshaking with SIM900 updateSerial() Begin serial communication with Arduino and SIM900 Begin serial communication with Arduino and Arduino IDE (Serial Monitor) SoftwareSerial mySerial( 7, 8) //SIM900 Tx & Rx is connected to Arduino #7 & #8 void setup() #include //Create software serial object to communicate with SIM900 This chart from the datasheet summarizes what you can expect: It won’t usually draw that much, but it may need around 216mA during phone calls or 80mA during network transmissions. The shield’s maximum current draw is around 2A (especially during a transmission burst). The SIM900, depending on its state, can be a relatively power-hungry device. One of the most important parts of getting the SIM900 shield working is supplying it with enough power. 64ms on, 300ms off: The GPRS data connection you requested is active.64ms on, 3 seconds off: The SIM900 chip has made contact with the cellular network and can send/receive voice and SMS.64ms on, 800ms off: The SIM900 chip is running but hasn’t made connection to the cellular network yet.OFF: The module is powering on (assuming it has power).It will blink at different rates depending on the state it is in. Netlight: This LED indicates the status of your cellular network. If this LED is lit, the chip is in working mode. Status: This LED indicates the SIM900’s working status. If this LED is lit, the shield is receiving power. PWR: This LED is connected to the shield’s power supply line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |