nrf-ant, nrf-dk: two-way UART on the DK default pins, wires crossed

Both boards use UART1 RX P1.01 / TX P1.02 so Home Assistant data can reach
the ANT+ node's transmitters; on the default pins the ANT+ node no longer
needs the RX pin workaround.
This commit is contained in:
randy committed 2026-09-30 23:15:10 +02:00
1 parent 3f9a8c3117
commit 2e8b678072
2 files changed
+9 -7

No files matched your search

+5 -6
View File
@@ -4,8 +4,8 @@
# P0.06 UART0 TX -> logger (J-Link VCOM) # P0.06 UART0 TX -> logger (J-Link VCOM)
# P0.13 LED 1 (active low) -> ANT+ Connected (a configured device is received) # P0.13 LED 1 (active low) -> ANT+ Connected (a configured device is received)
# P0.14 LED 2 (active low) -> ANT+ Unknown Device (an unconfigured one is in range) # P0.14 LED 2 (active low) -> ANT+ Unknown Device (an unconfigured one is in range)
# P1.01 UART1 TX -> mcu-nrf-dk UART1 RX (P1.01), packet_transport; plus GND # P1.01 UART1 RX <- mcu-nrf-dk UART1 TX (P1.02), packet_transport
# P1.02 UART1 RX (unused) # P1.02 UART1 TX -> mcu-nrf-dk UART1 RX (P1.01), packet_transport; plus GND
# Radio: ANT+ receiver (RadiANT), no network of its own; values go to mcu-nrf-dk # Radio: ANT+ receiver (RadiANT), no network of its own; values go to mcu-nrf-dk
# ANT+ devices: # ANT+ devices:
# 655730 Garmin HRM-Pro heart rate # 655730 Garmin HRM-Pro heart rate
@@ -147,10 +147,9 @@ ant_plus:
uart: uart:
id: link id: link
port: UART1 port: UART1
tx_pin: P1.01 # the DK's default UART1 pins, same on both boards, wires crossed
# unused, but must be set: the fork otherwise keeps the board's default RX, which on tx_pin: P1.02
# the DK is P1.01 too, and the UART hears its own transmissions rx_pin: P1.01
rx_pin: P1.02
baud_rate: 115200 baud_rate: 115200
packet_transport: packet_transport:
+4 -1
View File
@@ -9,7 +9,8 @@
# P0.16 LED 4 (active low) -> LED 4 (light binary) # P0.16 LED 4 (active low) -> LED 4 (light binary)
# P0.24 Button 3 (active low) -> Button 3 (binary_sensor gpio) # P0.24 Button 3 (active low) -> Button 3 (binary_sensor gpio)
# P0.25 Button 4 (active low) -> Button 4 (binary_sensor gpio) # P0.25 Button 4 (active low) -> Button 4 (binary_sensor gpio)
# P1.01 UART1 RX <- mcu-nrf-ant UART1 TX (P1.01), packet_transport; plus GND # P1.01 UART1 RX <- mcu-nrf-ant UART1 TX (P1.02), packet_transport; plus GND
# P1.02 UART1 TX -> mcu-nrf-ant UART1 RX (P1.01), packet_transport
# ANT+ values (Garmin HRM-Pro, Concept2 PM5, Garmin Tempe, Garmin Varia RTL515) come from mcu-nrf-ant # ANT+ values (Garmin HRM-Pro, Concept2 PM5, Garmin Tempe, Garmin Varia RTL515) come from mcu-nrf-ant
esphome: esphome:
name: mcu-nrf-dk name: mcu-nrf-dk
@@ -41,7 +42,9 @@ api:
uart: uart:
id: ant_link id: ant_link
port: UART1 port: UART1
# the DK's default UART1 pins, same on both boards, wires crossed
rx_pin: P1.01 rx_pin: P1.01
tx_pin: P1.02
baud_rate: 115200 baud_rate: 115200
packet_transport: packet_transport: