logo elektroda
logo elektroda
X
logo elektroda

ESP8266 D1 R1 not receiving data from Nucleo via UART

spectral95 774 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17154307
    spectral95
    Level 6  
    Hello.
    I have been struggling with the following problem for a few days. I want to send a char from the Nucleo to the ESP8266 ( I have a D1 R1 WiFi ESP8266 - compatible with WeMos and Arduino). The code from the Nucleo side works fine. I have a problem with the ESP. Here is my code for the ESP:
    Code: C / C++
    Log in, to see the code
    .

    And for the Nucleo:
    Code: C / C++
    Log in, to see the code
    .

    ESP does not respond in any way.
    GND connected, TX and RX alternating, I have no idea what is wrong.

    Please give me some help and guidance. Greetings
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 17154436
    piterek-23
    Level 33  
    I don't know C, but I would start with:
    1. are your devices definitely running at the same speed?
    2. connect each of your devices under a PC and try to talk to them via a terminal
  • ADVERTISEMENT
  • #3 17154441
    spectral95
    Level 6  
    The Nucleo works correctly via the sensor UART configured in this way, so I didn't find a fault there.
    Both devices have the same speed ( 115200 ).
    Nothing works with the ESP, I can't connect it to the PC because I don't have a USB adapter.
  • ADVERTISEMENT
  • #4 17154447
    piterek-23
    Level 33  
    spectral95 wrote:
    Nothing works with the ESP, I can't connect it to the PC because I don't have an adapter for USB.
    .
    Then how do you program the ESP? :/
  • #5 17154451
    spectral95
    Level 6  
    Sorry, I misspoke. Writing data to the database via WIFI, flashing LEDs etc works. What doesn't work is the UART, which I need.
ADVERTISEMENT