mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09: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
|
||||
# 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
|
||||
|
||||
Reference in new issue
Block a user