https://github.com/nopnop2002/esp-idf-web-serial
Serial Monitor for esp-idf
https://github.com/nopnop2002/esp-idf-web-serial
esp-idf esp32 serial-communication uart websocket
Last synced: 4 months ago
JSON representation
Serial Monitor for esp-idf
- Host: GitHub
- URL: https://github.com/nopnop2002/esp-idf-web-serial
- Owner: nopnop2002
- License: mit
- Created: 2022-04-20T14:33:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T22:53:51.000Z (5 months ago)
- Last Synced: 2025-02-28T19:53:13.267Z (4 months ago)
- Topics: esp-idf, esp32, serial-communication, uart, websocket
- Language: C
- Homepage:
- Size: 82 KB
- Stars: 18
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp-idf-web-serial
This project is a Serial Monitor for esp-idf that can be accessed remotely via a web browser.
I used [this](https://github.com/Molorius/esp32-websocket) component.
This component can communicate directly with the browser.
It's a great job.
I referred to [this](https://github.com/ayushsharma82/WebSerial).
# Software requirements
ESP-IDF V5.0 or later.
ESP-IDF V4.4 release branch reached EOL in July 2024.
ESP-IDF V5.1 is required when using ESP32-C6.# How to Install
- Write this sketch on Arduino Uno.
You can use any AtMega328 microcontroller.```
unsigned long lastMillis = 0;void setup() {
Serial.begin(115200);
}void loop() {
while (Serial.available()) {
String command = Serial.readStringUntil('\n');
Serial.println(command);
}if(lastMillis + 1000 <= millis()){
Serial.print("Hello World ");
Serial.println(millis());
lastMillis += 1000;
}delay(1);
}
```- Configuration of esp-idf
```
idf.py set-target {esp32/esp32s2/esp32s3/esp32c2/esp32c3}
idf.py menuconfig
```

Set the information of your access point.
Set the information of your time zone.
Set GPIO to use with UART.
- Connect ESP32 and AtMega328 using wire cable
|AtMega328||ESP32|ESP32-S2/S3|ESP32-C2/C3|
|:-:|:-:|:-:|:-:|:-:|
|TX|--|GPIO16|GPIO34|GPIO0|
|RX|--|GPIO17|GPIO35|GPIO1|
|GND|--|GND|GND|GND|__You can change it to any pin using menuconfig.__
- Flash firmware
```
idf.py flash monitor
```- Launch a web browser
Enter the following in the address bar of your web browser.
You can communicate to Arduino-UNO using browser.
The Change button changes the number of lines displayed.
The Copy button copies the received data to the clipboard.
```
http:://{IP of ESP32}/
or
http://esp32-server.local/
```
# WEB Pages
WEB Pages are stored in the html folder.
You cam change root.html as you like.# References
https://github.com/nopnop2002/esp-idf-uart2bt
https://github.com/nopnop2002/esp-idf-uart2udp
https://github.com/nopnop2002/esp-idf-uart2mqtt