From 0f1b32b1ed03de1750960591bc9e0140689e46cf Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Fri, 4 Dec 2026 11:53:27 +0100 Subject: [PATCH] m5stickc-plus: TJA1050 CAN module on Grove (RX GPIO32, TX GPIO33), listen-only until the node sees the bus --- mcu-m5stickc-plus.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mcu-m5stickc-plus.yaml b/mcu-m5stickc-plus.yaml index 34e18b4..25fb371 100644 --- a/mcu-m5stickc-plus.yaml +++ b/mcu-m5stickc-plus.yaml @@ -1,11 +1,11 @@ --- -# Hardware: M5StickC Plus + Hat CardKB + Hat Mini JoyC on the hat header, Unit CAN on Grove +# Hardware: M5StickC Plus + Hat CardKB + Hat Mini JoyC on the hat header, TJA1050 CAN module on Grove # CANopen keypad + joystick (node 4), canopen from ESPHome dev + canopen_entities # Pinout: # GPIO0 hat SDA -> i2c_hat (i2c sda) # GPIO26 hat SCL -> i2c_hat (i2c scl) -# GPIO32 Grove -> can_bus (canbus esp32_can tx_pin), swap with rx if the node stays silent -# GPIO33 Grove -> can_bus (canbus esp32_can rx_pin) +# GPIO32 Grove -> can_bus (canbus esp32_can rx_pin), TJA1050 module RX +# GPIO33 Grove -> can_bus (canbus esp32_can tx_pin), TJA1050 module TX # GPIO21 internal SDA -> i2c_axp (i2c sda) # GPIO22 internal SCL -> i2c_axp (i2c scl) # GPIO10 red LED (active low) -> LED (light binary) @@ -110,10 +110,11 @@ m5stack_mini_joyc: canbus: - platform: esp32_can id: can_bus - tx_pin: 32 - rx_pin: 33 + tx_pin: 33 + rx_pin: 32 can_id: 4 bit_rate: 500kbps + mode: LISTENONLY # TEMP: the node does not see the bus on RX (GPIO32), keep it off the bus canopen: - id: can_open