اطلاعیه

Collapse
No announcement yet.

ساخت شیلد sim800c

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    ساخت شیلد sim800c

    سلام
    یکم دودل بودم که مطلبو اینجا بزار م یا تو بخش gsm
    من چند روز پیش خواستم برم یه ماژول gsm بخرم به sim800c خوردم که قیمتش بین 16 تا 19 هزار تومن بود
    بعد چون ما برای آردوینو میخواستیم تصمیم گرفتم شیلدشو بخرم که دیدم بعله 91 هزار تومن قیمتشه!!!!!
    الان حتما دهنتون باز مونده که این تفاوت قیمت از کجا اومده
    جوابش اینه: مدار راه انداز( ولی بازم اینقد اختلاف اخه! )

    خب بعدش به فکر این افتادم که برم یه شیلد پرتوتایپ بخرم و خودم شیلدشو بسازم
    حالا اینجا تاپیک زدم تا با کمک دوستان مدار رو ببندیم
    مشکل اینجاست که من مدارشو ندارم
    اگر کسی مدارشو داره اینجا قرار بده تا ببندیمش یا اگر نیست دوستان بگن تا با مدار های راه انداز موجود یه چیزی بسازیم

    #2
    پاسخ : ساخت شیلد sim800c

    یه شماتیک برای قسمت تغذیه مدار sim800C و سایر قسمت ها می تونید استفاده کنید.

    دیدگاه


      #3
      پاسخ : ساخت شیلد sim800c

      سلام دوست عزیز
      شما بهتر بود ماژول 800l رو میخریدی به قیمت 26 هزار تومان الان هم مشکلی نیست میتونی بر راه انداز رو به قیمت 15 هزار تومان بخری من شیراز هستم و تونستم برد راه انداز رو تهیه کنم

      دیدگاه


        #4
        پاسخ : ساخت شیلد sim800c

        سلام منم مشکل راه اندازی این ماژول رو دارم. tx , rx سیم 800 رو به چایه 0و1 اردوینو یونو وصل کردم و از ماژول تغذیه هم برای تغذیه سیم800 استفاده کردم. میخوام مدارم در صورت دریافت اس ام اس lighton یه چراغ رو روشن و lightoff چراغ رو خاموش کنه. برنامه ای که نوشتم هم میزارم. یه عکس هم از مدارم میزارم. لطفا راهنمایی کنید.
        // include the GSM library #include // include the library code: //#include // PIN Number for the SIM #define PINNUMBER "" // initialize the library instances GSM gsmAccess; GSM_SMS sms; // initialize the library by associating any needed LCD interface pin // with the arduino pin number it is connected to //const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; //LiquidCrystal lcd(rs, en, d4, d5, d6, d7); char Num[20]; // Array to hold the number a SMS is retreived from char text; char on = 'lighton'; char off = 'lightoff'; int led = 8; //the pin that LED is attached to void setup() { // set up the LCD's number of columns and rows: // lcd.begin(16, 2); Serial.begin(9600); //declare pin 8 to be an output: pinMode (led, OUTPUT); } void loop() { // initialize serial communications and wait for port to open: while (!Serial) { Serial.println("No Connection"); delay(300); // wait for serial port to connect. Needed for native USB port only } // connection state boolean notConnected = true; // Start GSM connection while (notConnected) { if (gsmAccess.begin(PINNUMBER) == GSM_READY) { notConnected = false; } else { Serial.println("Not connected"); delay(1000); } } // lcd.write(Serial.read()); Serial.println("GSM initialized"); // If there are any SMSs available() if (sms.available()) { Serial.println("Message received from:"); // Get remote number sms.remoteNumber(Num, 20); Serial.println(Num); // An example of message disposal // Any messages starting with # should be discarded if (sms.peek() == '#') { Serial.println("Discarded SMS"); sms.flush(); } text = sms.read(); // Read message bytes and print them //while (text == sms.read()) { //Serial.print(text); //} // condition of the light on if (text == on) { digitalWrite(8, HIGH); } Serial.println("\nLight Is ON"); // send the message sms.beginSMS(Num); sms.print("Light Is ON"); sms.endSMS(); Serial.println("\nCOMPLETE!\n"); // condition of the light off if (text == off) { digitalWrite(8, LOW); } Serial.println("\nLight Is OFF"); // send the message sms.beginSMS(Num); sms.print("Light Is OFF"); sms.endSMS(); Serial.println("\nCOMPLETE!\n"); // Delete message from modem memory sms.flush(); Serial.println("MESSAGE DELETED"); } delay(1000); }
        جدیدترین ویرایش توسط maryoyaryan; ۱۴:۱۷ ۱۳۹۶/۰۶/۲۰.

        دیدگاه

        لطفا صبر کنید...
        X