Make WiFi TX power configurable, document ESP32-S3 pins
The transmit power was hardcoded to 19.5 dBm. Some setups need a lower value (device right next to the AP, weak 3.3V rail), so it is now a user setting instead of a per-chip constant. - wlan.cpp: load/save/apply TX power (0.1 dBm steps, NVS key wifi_txpwr, default 195), re-applied on GOT_IP so it survives a reconnect - website.cpp: /api/wifi-power GET/POST with validation - setup.html: "WiFi Settings" card - README.md/README.de.md: pin table gets an ESP32-S3 column plus a warning that GPIO19/20 are the native USB data lines - config.cpp: same warning next to the HX711 pin definitions Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b8cfa1ce98
commit
a5ba8a901a
8 files changed
+186
-26
No files matched your search
@@ -111,17 +111,21 @@ When you scan a manufacturer NFC tag for the first time:
|
||||
|
||||
|
||||
### Pin Configuration
|
||||
| Component | ESP32 Pin |
|
||||
|-------------------|-----------|
|
||||
| HX711 DOUT | 16 |
|
||||
| HX711 SCK | 17 |
|
||||
| OLED SDA | 21 |
|
||||
| OLED SCL | 22 |
|
||||
| PN532 IRQ | 32 |
|
||||
| PN532 RESET | 33 |
|
||||
| PN532 SDA | 21 |
|
||||
| PN532 SCL | 22 |
|
||||
| TTP223 I/O | 25 |
|
||||
| Component | ESP32 Pin | ESP32-S3 Pin |
|
||||
|-------------------|-----------|--------------|
|
||||
| HX711 DOUT | 16 | 5 |
|
||||
| HX711 SCK | 17 | 6 |
|
||||
| OLED SDA | 21 | 8 |
|
||||
| OLED SCL | 22 | 9 |
|
||||
| PN532 IRQ | 32 | 15 |
|
||||
| PN532 RESET | 33 | 16 |
|
||||
| PN532 SDA | 21 | 8 |
|
||||
| PN532 SCL | 22 | 9 |
|
||||
| TTP223 I/O | 25 | 7 |
|
||||
|
||||
The I2C pins are the Arduino defaults for each chip and are not set explicitly in the code.
|
||||
|
||||
**!! ESP32-S3: do not use GPIO19/GPIO20 for the HX711.** These are the native USB data lines (D-/D+) and are wired to the "USB" connector on the DevKitC-1, which makes the HX711 detection unreliable.
|
||||
|
||||
**!! Make sure that the DIP switches on the PN532 are set to I2C**
|
||||
**Use the 3V pin from the ESP for the touch sensor**
|
||||
|
||||
Reference in new issue
Block a user