Software Serial Communication

Experiments & prototyping with the Arduino.
rwblinn
Site Admin
Posts: 211
Joined: 07 Oct 2017, 12:16

Software Serial Communication

Postby rwblinn » 08 Oct 2017, 18:31

Communicate between ESP8266 (a NodeMCU 0.9 is used for this experiment) and an Arduino MEGA via Software Serial.
In regular intervals, via a timer, the Arduino send a string to the ESP8266.
The ESP8266 sends a respons.
The data is shown in the B4R logs.

The Arduino runs B4R and the ESP8266 runs ESP8266 [ http://www.esp8266basic.com ] Basic.
Notes
• By using ESP8266 Basic ( http://www.esp8266basic.com ) it shows the integration between B4R and other languages.
• When using higher baud rates, then in cases characters are missing or changed. Default set to 9600.

Parts Needed
• 1x Arduino UNO
• 1x ESP8266 NodeMCU 0.9

Wiring
Arduino = ESP8266 (NodeMCU)
GND = GND
10 RX = 1 TX (Blue)
11 TX = 3 RX (Yellow)
(Wirecolor)

Circuit
Image

Download Source Code

ToDo
• Experiment is completed.

Version
20160518

Return to “Arduino”

Who is online

Users browsing this forum: No registered users and 1 guest