diff --git a/README.md b/README.md index c655fae..84e9c78 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Download this library (the whole repository) and install it in your Arduino IDE. See these links on [how to install ESP32](https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/) and [ESP8266 boards](https://randomnerdtutorials.com/how-to-install-esp8266-board-arduino-ide/) in your Arduino IDE. Connect the robot's **yellow cable to TX**, the **white cable to RX**. -
Serial*Serial1Serial2Serial3
RXTXRXTXRXTXRXTX
Arduino UNO, Nano, Mini01
Arduino Leonado, Micro, Yun01
Arduino Mega01191817161514
ESP323122231617
ESP826631
+
Serial*Serial1Serial2Serial3
RXTXRXTXRXTXRXTX
Arduino UNO, Nano, Mini01
Arduino Leonado, Micro, Yun01
Arduino Mega01191817161514
ESP323118191617
ESP826631
*When using the Serial port, you HAVE TO DISCONNECT the cables while uploading code to the board. There will appear bytestrings in the serial monitor which are commands sent to the motors ### Supported robot types diff --git a/robot_info/morobot_connection.png b/robot_info/morobot_connection.png index 07c6b0b..6bcc88f 100644 Binary files a/robot_info/morobot_connection.png and b/robot_info/morobot_connection.png differ diff --git a/src/morobot.cpp b/src/morobot.cpp index dd01c56..8d6c939 100644 --- a/src/morobot.cpp +++ b/src/morobot.cpp @@ -108,7 +108,7 @@ void morobotClass::begin(const char* stream){ Serial.println(F("WARNING: Serial on ESP32 is connected to the USB-Controller, so you may get strange bytestings in the serial monitor!")); _port = &Serial; } else if (stream == "Serial1") { - Serial1.begin(115200, SERIAL_8N1, 22, 23); // Map the serial pins to different pins since 9/10 are not mapped + Serial1.begin(115200, SERIAL_8N1, 18, 19); // Map the serial pins to different pins since 9/10 are not mapped _port = &Serial1; } else if (stream == "Serial2") { Serial2.begin(115200);