I have a lolin nodemcu v3 and I am running the nodemcu firmware on it with Lua. I want to send data from my Arduino Mega to the lolin chip. I followed the following website http://randomnerdtutorials.com/sending- ... ia-serial/ accordingly but failed to get the intended output.
I uploaded the same Arduino code as provided in the above stated website to my Arduino Mega, and connect the GND to be with lolin nodemcu GND, and also from arduino's tx0 (pin1) to lolin's pin RX (via voltage divider).
Next, I uploaded the provided script onto my lolin nodemcu board. As it is not the ESP8266 chip by itself, I did not need to use FTDI. Instead I just plug in a usb cable to it and the code is uploaded in it. I set it to be 9600 baudrate in the ESPlorer IDE. However, the LED connected to the lolin chip did not light up at all (It is suppose to turn on and off according to the code). In addition, instead of printing out 'Received from Arduino: HI!' followed by 'LED ON (or Off)', the lolin seems to be outputting the code uploaded into it (see the picture attached).
And now when i try to upload new lua script to lolin, it does not work as the ESPlorer IDE says 'Waiting answer from ESP - Timeout reached. Command aborted'. Any idea how to solve this issue too?
It seems that the lolin is not receiving anything from Arduino Mega. Arduino is indeed transmitting as the LED of tx is flashing and the words can be seen on the Arduino serial monitor as well. What can solve this issue? Thank you in advance.