B4R Question circuito.io + ESP8266 ESP01 communication pins

hatzisn

Well-Known Member
Licensed User
Hi everyone,

I just bought an ESP8266 ESP01 board to work with WiFi.
I found out in circuito.io that it also needs a bidirectional logic level converter as seen here (press Wire) and I bought it also:

https://www.circuito.io/static/reply/index.html?solutionId=5d2d76c3b7aa39003096c818&solutionPath=storage.circuito.io

in these instructions on how to create the circuit if you download the code it sets two pins as communication pins. Having a look on some code examples for communication with B4R and ESP8266 I did not find anywhere code for setting the pins but I found in a thread that you have to Use Pin 0 (RX0) and Pin 1 (TX0) of the Geekright ATmega2560 board. What is the correct solution in this?

Also any advices on "playing" with Geekright ATmega2560 and ESP8266 ESP01 boards are highly welcomed.

Thanks in advance


Edit - Is this done with a rSerialSoftware library stream?
 
Last edited:

Erel

Administrator
Staff member
Licensed User
Are you referring to this line:
B4X:
ESP8266 wifi(WIFI_PIN_RX,WIFI_PIN_TX);
?
 

Erel

Administrator
Staff member
Licensed User
I'm not sure where does the ESP8266 type come from. Why not program the ESP8266 directly?

Try to use rSoftwareSerial. It might work.
 

janderkan

Active Member
Licensed User
ESP01 is one type of board and ESP8266 is another.

The ESP8266 has 8 digital In/Out ports and 1 Analog port.
If you need more inputs and outputs you use a ESP32.

I dont see any reason for using an Uno together with a ESP01.

Jan
 

janderkan

Active Member
Licensed User
The ESP01 is a 8266 but with only 2 IO exposed.
You must write a program to the ESP01 and find a way to upload it, because it has no Usb on board.
After that you must define a protocol so that the UNO and ESP01 can communicate.
Then you must write two programs that use this protocol.
OR
You just buy an ESP8266 like this
 

hatzisn

Well-Known Member
Licensed User
I suppose I prefer the OR part... :):):):)
I checked in the boards of B4R and NodeMCU supports up to ESP-12E. Is it compatible with this ESP-12F you suggest?
 
Top