You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/devices/dingtian-dt-r002/index.md
+17-10Lines changed: 17 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,23 +9,29 @@ difficulty: 3
9
9
10
10
# Dingtian DT-R002
11
11
12
-
A 2-channel relay board with an ESP32 and an Ethernet interface. Available direct from the manufacturer on [AliExpress](https://www.aliexpress.com/item/4001232791244.html).
12
+
A 2-channel relay board with an ESP32 and an Ethernet interface. Available direct from the manufacturer on
Unlike the variants with more channels, the two relays on this model are directly controlled by GPIOs and no I/O expander is used.
15
+
Unlike the variants with more channels, the two relays on this model are directly controlled by GPIOs and no I/O
16
+
expander is used.
15
17
16
18
When ordering this board ask for relay board with test firmware, otherwise the ESP32 will be locked.
17
19
18
-
Initial programming can then be done using the [pin descriptions](https://github.com/dtlzp/relay_dev_demo/blob/main/gpio_pinout/2ch.png) and
19
-
[pinout photo](https://github.com/dtlzp/relay_dev_demo/blob/main/gpio_pinout/debug_port_2CH_V2.png). Disconnect external power while programming.
20
-
Connect GND and 3V3 to your programmer's power supply (which must be set to 3.3V). Connect IO1 (TX) to your programmer's RX, and IO3 (RX) to your programmer's TX.
21
-
Connect IO0 to GND while booting to enter bootloader. Once programmed, you can perform future upgrades OTA.
20
+
Initial programming can then be done using the
21
+
[pin descriptions](https://github.com/dtlzp/relay_dev_demo/blob/main/gpio_pinout/2ch.png) and
Disconnect external power while programming. Connect GND and 3V3 to your programmer's power supply (which must be set
25
+
to 3.3V). Connect IO1 (TX) to your programmer's RX, and IO3 (RX) to your programmer's TX. Connect IO0 to GND while
26
+
booting to enter bootloader. Once programmed, you can perform future upgrades OTA.
22
27
23
28
## Basic Configuration
24
29
25
-
The ESP32 naturally supports wifi, however as you've bought this relay board because it has Ethernet, the example configuration
26
-
here enables only Ethernet and not wifi.
30
+
The ESP32 naturally supports wifi, however as you've bought this relay board because it has Ethernet, the example
31
+
configuration here enables only Ethernet and not wifi.
27
32
28
-
If you bought the boxed version, both the LED and the "factory" button are within the box and inaccessible when closed, but are exposed in this example anyway.
33
+
If you bought the version with a case, both the LED and the "factory" button are within the case and are inaccessible
34
+
when closed, but are exposed in this example anyway.
29
35
30
36
```yaml
31
37
esphome:
@@ -39,7 +45,8 @@ esp32:
39
45
minimum_chip_revision: 3.1
40
46
sram1_as_iram: true
41
47
42
-
# Above the "FACTORY" button there are two LEDs. One is wired in series with the switch and the other is controllable via GPIO. Use the second one as a status indicator.
48
+
# Above the "FACTORY" button there are two LEDs. One is wired in series with the switch and the other is
49
+
# controllable via GPIO. Use the second one as a status indicator.
0 commit comments