NodeMCU and SIM800L #6027
Replies: 1 comment
-
Posted at 2016-11-27 by @gfwilliams As far as I know, ESP8266 has 1.5 Serial ports. Serial1 can TX and RX (but is connected to Serial on NodeMCU), and Serial2 can only TX. You might be able to connect to the ESP8266 over Wifi using Telnet, but you still have the problem that USB is physically connected to Serial1, so will conflict with the SIM800 unless you can disable it somehow. Unfortunately you may be out of luck unless you're willing to use something like Espruino Wifi - that has a separate MCU with two serial ports (one for Wifi, one is free), but also an entirely separate USB connection. Posted at 2016-11-28 by AlessioBacin What if i connect to nodemcu over wifi plugged to a wall power supply and i connect rx tx to sim900? does it still conflict? Posted at 2016-11-28 by AlessioBacin Ok i connected NodeMcu with espruino IDE through wifi and then used serial1 to comunicate to sim800L. Posted at 2016-11-30 by @gfwilliams I think if you want some help you'll need to post up the code you're using, and what error messages you get (if any). Thinking about it, you may have some difficulty using both network interfaces at the same time - Espruino is only set up to use one. Still, you should be able to use just the AT commands with the SIM800 without those problems Posted at 2016-12-02 by tve You can use the main UART to attach a peripheral, but it's somewhat tricky. You will get stuff printed on it at boot, so your periph better be able to ignore that. My onInit() function when using a nextion display attached to uart0 contains:
The way I use it is to upload the code using telnet, so I see the "Bye bye..." printed via telnet when I run onInit() manually. By setting Serial2 as console the characters get dropped. By not forcing the console to stick to Serial2 I can telnet into the espruino at any time and have the console back. This has worked quite well for me. Posted at 2016-12-06 by AlessioBacin Hi tve, Posted at 2017-01-24 by IvanMaksimov Hi tve, Did you try to connect sim800 over the software serial? Also if you are trying to send AT-commands to sim800 via the console you have to set NL + CR flags in the console settings. And are you sure that you have started sim800 correctly? Following the HW manual you should ground the PWK pin for 1 second to start the module. As for me I have two different sim800 boards. One has two leds: power led and network led. When you connect the sim800 board to a power source you see the power led is on and this may let you think that the board is really on but it is not so. When you ground the PWK as I stated above you'll also see the network led blinking which means that finally the board is really on. The second sim800 I have has only network led. The another one sim800 has only netowkr led but it is started in the similar way. Don't forget that sim800 consumes 2A 4.2v (or 5v depending on board model) during the Location Update procedure which means you have to use an external adapter for that. I used just 3-4 AA-batteries for test. The NodeMCU Base Shield is also not enough for such a power consumption as it can let only 1A current. Posted at 2017-04-12 by user75734 Hi Ivan, I am connecting SIM800 using Software Serial but WEMOS d1 (similar to NodeMCU) stops working. Could you please share the code you use. Best, Posted at 2017-04-13 by IvanMaksimov Hi Rodri, My test code is as follows: #include <SoftwareSerial.h> // SIM800 PWK pin is conected to D0 // switching on SIM800 by powering down PWK pin for a second mySerial.begin(19200); mySerial.begin(19200); // setting some parameters void loop() { // code to play with AT commands from the terminal Posted at 2018-03-26 by user88185 Hello sir, Posted at 2018-03-26 by Wilberforce If you want to use the arduino ide - your are in the wrong forum. This is for espruino JavaScript, rather than compiled c. Posted at 2018-03-29 by user88185 our task is to receive sms and forward that sms to web server.......using nodemcu ESP8266 and sim800 ..doesnt matter which ide we r using Posted at 2018-03-29 by @gfwilliams It's not just the IDE that is different. It's the whole language (JS rather than C). Please ask on the ESP8266 or Arduino forums - you're definitely in the wrong place. (You can use Espruino on ESP8266 with SIM800 if you're willing to use Telnet to program them rather than the Serial Port (although if you used an official board it'd be miles easier), but honestly I think if you haven't researched Espruino enough to realise it's not just an IDE then when you do find out more about it you'll find it's not for you). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-11-27 by user70656
Can someone help me understand how to implement SIM800L on NodeMCU 1.0?!
I connected:
Then i got this code:
I got console stopping to work.
I even thought that as NodeMCU is connected to usb and maybe tx and rx of NodeMCU somehow conflict with usb then i changed on code "serial1" to serial2 or serial3 but nothing.
Then as i thought about the conflict i connected and saved wifi so that i can connect to NodeMCU through wifi for IDE and then send serial connect on next reboot but nothing.
Well ... can someone tell me how it works please?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions