UART to Bluetooth bridge for ESP-IDF.
esp-idf v4.4/v5.0.
git clone https://github.com/nopnop2002/esp-idf-uart2bt
cd esp-idf-uart2bt/classic_bt
idf.py set-target esp32
idf.py menuconfig
idf.py flash
git clone https://github.com/nopnop2002/esp-idf-uart2bt
cd esp-idf-uart2bt/ble
idf.py set-target {esp32/esp32s3/esp32c3}
idf.py menuconfig
idf.py flash
You can use any AtMega 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);
}
AtMega328 | ESP32 | |
---|---|---|
TX | -- | GPIO16 |
RX | -- | GPIO17 |
GND | -- | GND |
You can change it to any pin using menuconfig.
I used this app.