我对Arduino比较陌生,这就是我想做的事情 .

我有这个DFRobot GPS / GPRS / GSM Shield V3.0并将它安装到我的Arduino Uno R3,因为它与Arduino兼容 . 因此,当我试图通过USB端口驱动GSM模式时,我只能在我的酷炫监视器中看到GPS Ready,因为它应该到GSM准备就绪 .

这是我试图上传的代码

// Driving the gsm mode via the USB interface

// # Steps:
// #        1. Turn the S1 switch to the Prog(right side)
// #        2. Turn the S2 switch to the USB side(left side)
// #        3. Set the UART select switch to middle one.
// #        4. Upload the sketch to the Arduino board(Make sure turn off other Serial monitor )
// #        5. Turn the S1 switch to the comm(left side)       
// #        6. RST the board 

void setup()
 {
   //Init the driver pins for GSM function
    pinMode(3,OUTPUT);
    pinMode(4,OUTPUT);
    pinMode(5,OUTPUT);
   //Output GSM Timing 
    digitalWrite(5,HIGH);
    delay(1500);
    digitalWrite(5,LOW); 
 }
 void loop()    
 {    
    // Use these commands instead of the hardware switch 'UART select' in order to enable each mode
    // If you want to use both GSM and GPS. enable the required one in your code and disable the other one for each access.
    digitalWrite(3,LOW);//enable GSM TX、RX
    digitalWrite(4,HIGH);//disable GPS TX、RX
 }

然后,由于在其wiki页面中声明 GSM module may need external power (ranged to 7-12V) to power up as it needs 200mA@7v, when calling ,我试图通过电源插孔使用9V / 1A外部电源 . 但是它不允许我将程序上传到董事会......正如它所说: avrdude: stk500_getsync(): not in sync: resp=0x43

我试图拔掉外部电源并再次上传程序然后它工作,到了只有GPS模块再次准备好的地步..

那么,使用9V / 1A直流电源适配器供电来启动GSM是导致这个问题的原因吗?我检查了我的USB线和COM端口,以确保一切正常 . 有什么建议如何使这个工作? 9V太高还是功率不够?

我是Arduino的新手 . 任何帮助真的很感激,谢谢!