Documente Academic
Documente Profesional
Documente Cultură
Arduino - GSM GPRS Shield
Arduino - GSM GPRS Shield
Attribution-NonCommercial-NoDerivs
CC BY-NC-ND
Esti liber sa distribui acest document prin orice mijloace consideri (email, publicare pe website /
blog, printare, sau orice alt mijloc), atat timp cat nu aduci nici un fel de modificari acestuia. Codul
sursa din acest document poate fi utilizat in orice fel de scop, de natura comerciala sau nu, fara
nici un fel de limitari.
Arduino GSM Shield
http://www.robofun.ro/forum
• O pereche de casti cu microfon.
Apel de voce.
http://www.robofun.ro/forum
Intre casti/microfon si pad-urile shield-ului este necesar un circuit
intermediar, dat de diagrama de mai jos.
http://www.robofun.ro/forum
http://www.robofun.ro/forum
In imaginea de mai sus se observa si modificarea de care am vorbit mai
devreme.
http://www.robofun.ro/forum
#include <GSM.h>
// PIN Number
#define PINNUMBER ""
void setup()
{
// connection state
boolean notConnected = true;
void loop()
{
http://www.robofun.ro/forum
// add any incoming characters to the String:
while (Serial.available() > 0)
{
char inChar = Serial.read();
// if it's a newline, that means you should make the call:
if (inChar == '\n')
{
// make sure the phone number is not too long:
if (remoteNumber.length() < 20)
{
// show the number you're calling:
Serial.print("Apelez : ");
Serial.println(remoteNumber);
Serial.println();
http://www.robofun.ro/forum
Cum transmit un SMS ?
http://www.robofun.ro/forum
#include <GSM.h>
void setup()
{
// initialize serial communications
Serial.begin(9600);
http://www.robofun.ro/forum
Serial.println("Transmitere SMS");
// connection state
boolean notConnected = true;
void loop()
{
// nothing to see here
}
void sendSMS(){
// sms text
Serial.println("TRIMITERE");
Serial.println();
Serial.println("Mesaj:");
Serial.println(txtMsg);
http://www.robofun.ro/forum