mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 01:06:52 +01:00
m5stickc-plus: TJA1050 CAN module on Grove (RX GPIO32, TX GPIO33), listen-only until the node sees the bus
This commit is contained in:
1 parent
feaa161653
commit
0f1b32b1ed
1 file changed
+6
-5
@@ -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
|
# CANopen keypad + joystick (node 4), canopen from ESPHome dev + canopen_entities
|
||||||
# Pinout:
|
# Pinout:
|
||||||
# GPIO0 hat SDA -> i2c_hat (i2c sda)
|
# GPIO0 hat SDA -> i2c_hat (i2c sda)
|
||||||
# GPIO26 hat SCL -> i2c_hat (i2c scl)
|
# GPIO26 hat SCL -> i2c_hat (i2c scl)
|
||||||
# GPIO32 Grove -> can_bus (canbus esp32_can tx_pin), swap with rx if the node stays silent
|
# GPIO32 Grove -> can_bus (canbus esp32_can rx_pin), TJA1050 module RX
|
||||||
# GPIO33 Grove -> can_bus (canbus esp32_can rx_pin)
|
# GPIO33 Grove -> can_bus (canbus esp32_can tx_pin), TJA1050 module TX
|
||||||
# GPIO21 internal SDA -> i2c_axp (i2c sda)
|
# GPIO21 internal SDA -> i2c_axp (i2c sda)
|
||||||
# GPIO22 internal SCL -> i2c_axp (i2c scl)
|
# GPIO22 internal SCL -> i2c_axp (i2c scl)
|
||||||
# GPIO10 red LED (active low) -> LED (light binary)
|
# GPIO10 red LED (active low) -> LED (light binary)
|
||||||
@@ -110,10 +110,11 @@ m5stack_mini_joyc:
|
|||||||
canbus:
|
canbus:
|
||||||
- platform: esp32_can
|
- platform: esp32_can
|
||||||
id: can_bus
|
id: can_bus
|
||||||
tx_pin: 32
|
tx_pin: 33
|
||||||
rx_pin: 33
|
rx_pin: 32
|
||||||
can_id: 4
|
can_id: 4
|
||||||
bit_rate: 500kbps
|
bit_rate: 500kbps
|
||||||
|
mode: LISTENONLY # TEMP: the node does not see the bus on RX (GPIO32), keep it off the bus
|
||||||
|
|
||||||
canopen:
|
canopen:
|
||||||
- id: can_open
|
- id: can_open
|
||||||
|
|||||||
Reference in new issue
Block a user