Skip to content

RafalVonau/serial_over_esp_now

Repository files navigation

Serial port over ESP NOW

This project creates a two-way connection between two ESP8266 modules using the ESP-NOW protocol. All data arriving on the module UART0 port is sent via ESP-NOW to the second module and then sent via uart.

The test project was built on two D1 mini boards connected to PC computer over USB as /dev/ttyUSB0 and /dev/ttyUSB1 under Linux. Modify the serial port device name in platformo.ini if you want to compile under Windows.

The project uses platformio build environment. PlatformIO - Professional collaborative platform for embedded development.

Building under Linux

  • install PlatformIO
  • enter project directory
  • connect two Webmos D1 mini boards to PC computer over USB cable.
  • type in terminal: platformio run platformio upload

You can also use IDE to build this project on Linux/Windows/Mac. My fvorite ones:

Building in Andruino IDE

You can also run it from Arduino by renaming the main.cpp file to serial_over_esp_now.ino and saving it in a directory with the same name.

  • install Arduino IDE
  • rename /src/main.cpp to serial_over_esp_now.ino and place it in serial_over_esp_now directory
  • open serial_over_esp_now.ino in Arduino IDE, select proper board or install it
  • compile and upload to board1
  • uncomment line //#define DEVICE_1 - this will switch board MAC adress
  • compile and upload to board2

Enjoy :-)

About

Serial port over ESP-NOW

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published