Buongiorno.
Su Amazon, qualche giorno fa ho ordinato il modulo gsm sim900 (https://www.amazon.it/Development-Quad-Band-Antenna-sviluppo-quad-band/dp/B07PGKR23K/ref=sr_1_6?__mk_it_IT=ÅMÅŽÕÑ&dchild=1&keywords=sim900&qid=1630610517&sr=8-6), dopo aver inserito la sim, attaccato tutti i vari cavi, non riesco a chiamare e a mandare sms. Vorrei capire se è il pezzo che non va o sono io che sbaglio di programmare.
Come ho collegato i cavi:
Codice (scopiazzato da internet ):
#include <SoftwareSerial.h>
// Configure software serial port
SoftwareSerial SIM900(7, 8);
void setup() {
// Arduino communicates with SIM900 GSM shield at a baud rate of 19200
// Make sure that corresponds to the baud rate of your module
SIM900.begin(19200);
// Give time to your GSM shield log on to network
delay(20000);
// Make the phone call
callSomeone();
}
void loop() {
}
void callSomeone() {
// REPLACE THE X's WITH THE NUMER YOU WANT TO DIAL
// USE INTERNATIONAL FORMAT CODE FOR MOBILE NUMBERS
SIM900.println("ATD + +393334445555;");
delay(100);
SIM900.println();
// In this example, the call only last 30 seconds
// You can edit the phone call duration in the delay time
delay(30000);
// AT command to hang up
SIM900.println("ATH"); // hang up
}
Grazie, spero di aver sbagliato qualcosa nel codice, senò mi tocca rimandare il pezzo indietro.
Allerinsko