B4R Question circuito.io + ESP8266 ESP01 communication pins

Discussion in 'B4R Questions' started by hatzisn, Jul 16, 2019.

  1. hatzisn

    hatzisn Active 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/repl...39003096c818&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: Jul 16, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. hatzisn

    hatzisn Active Member Licensed User

    There you are. It is in C...
     

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    Are you referring to this line:
    Code:
    ESP8266 wifi(WIFI_PIN_RX,WIFI_PIN_TX);
    ?
     
  5. hatzisn

    hatzisn Active Member Licensed User

    Yes, exactly...
     
  6. Erel

    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.
     
  7. hatzisn

    hatzisn Active Member Licensed User

    Thanks
     
  8. janderkan

    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
     
  9. hatzisn

    hatzisn Active Member Licensed User

  10. janderkan

    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
     
  11. hatzisn

    hatzisn Active 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?
     
  12. janderkan

    janderkan Active Member Licensed User

    I use ESP8266, ESP12E and ESP12F randomly, they are the same.
     
    hatzisn likes this.
  13. ivan.tellez

    ivan.tellez Active Member Licensed User

  14. hatzisn

    hatzisn Active Member Licensed User

    Last edited: Jul 17, 2019
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice