Skip to content

Commit

Permalink
feat(platformio): add environment for esp32-s3-devkitc-1 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
tspopp authored Jan 19, 2025
1 parent ace4570 commit 456e591
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 22 deletions.
3 changes: 3 additions & 0 deletions AquaMQTT/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,15 @@ Listener" and "Man-in-the-Middle."
```bash
pio run -e arduino_nano_esp32
```

3. Connect the Arduino and upload the project to your microcontroller via USB

```bash
pio run -t upload -e arduino_nano_esp32
```

**Note:** If you are using the cheaper esp32 [esp32-s3-devkit-c1](https://github.com/tspopp/AquaMQTT/issues/56) instead of the Arduino Nano ESP32, use the environment `esp32-s3-devkitc-1` instead of `arduino_nano_esp32`

### Over-The-Air Update

1. Determine the IP-Address of your AquaMQTT device
Expand Down
34 changes: 20 additions & 14 deletions AquaMQTT/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@

[env]
test_framework = googletest

[env:native]
platform = native
build_src_filter = src/**
lib_deps =
googletest

[env:arduino_nano_esp32]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip
board = arduino_nano_esp32
framework = arduino
test_framework = googletest
build_flags = -std=c++11
# uncomment the next line if you have error when you upload the firmware (Error 74)
#upload_protocol = esptool
# uncomment the below lines to use over the air update
Expand All @@ -38,4 +25,23 @@ lib_deps =
[email protected]
[email protected]
https://github.com/denyssene/SimpleKalmanFilter.git#v0.2
[email protected]
[email protected]

[env:native]
platform = native
build_src_filter = src/**
lib_deps =
googletest

[env:arduino_nano_esp32]
framework = arduino
build_flags = -std=c++11
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip
board = arduino_nano_esp32

[env:esp32-s3-devkitc-1]
framework = arduino
build_flags = -std=c++11
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
2 changes: 1 addition & 1 deletion pcb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Your [heat pump](./../DEVICES.md) may use a different connector such as the Ther
| Item | Count | Estimated Cost |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|----------------|
| AquaMqtt PCB Board (e.g. via AISLER.net) | 1x | ~ 7 € |
| [Arduino Nano ESP32](https://docs.arduino.cc/hardware/nano-esp32) | 1x | ~ 20 € |
| [Arduino Nano ESP32](https://docs.arduino.cc/hardware/nano-esp32). Note: Community suggested [cheaper alternative](https://github.com/tspopp/AquaMQTT/issues/56) | 1x | ~ 20 € |
| Cable 2x4 2,54mm (Socket-Housing, Contacts, Wiring) | 1x | ~ 10 € |
| [Real Time Clock RTC DS3231](https://www.az-delivery.de/products/ds3231-real-time-clock) *(optional, experimental)* | (1x) | ~ 6 € |
| [SparkFun Logic Level Converter](https://eckstein-shop.de/SparkFunLogicLevelConverter-Bi-DirectionaShifterPegelwandlerEN) - 3.3V to 5V Bi-Directional or similar | 1x | ~ 4 € |
Expand Down
21 changes: 14 additions & 7 deletions tools/AquaDebug/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

[env]
test_framework = googletest
# uncomment the below lines to use over the air update
# upload_protocol = espota
# upload_port = 192.168.188.62
lib_deps =
locoduino/[email protected]
256dpi/[email protected]

[env:native]
platform = native
Expand All @@ -18,14 +24,15 @@ lib_deps =
googletest

[env:arduino_nano_esp32]
framework = arduino
build_flags = -std=c++11
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip
board = arduino_nano_esp32

[env:esp32-s3-devkitc-1]
framework = arduino
test_framework = googletest
build_flags = -std=c++11
# uncomment the below lines to use over the air update
# upload_protocol = espota
# upload_port = 192.168.188.62
lib_deps =
locoduino/[email protected]
256dpi/[email protected]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3

0 comments on commit 456e591

Please sign in to comment.