M5Stack with CAN
no CAN now! we changed the design.
reaper7 last edited by reaper7
we have CAN library:
we only need additional CAN transceiver as described above
we still can use GPIO35 as CAN RX and GPIO5 as CAN TX (this config is used by Olimex EVB Rev B)
Personally I haven't tested GPIOs pair 35/5 but pair 4/5 works very well with arduino lib
loboris last edited by
@reaper7 在 M5Stack with CAN 中说：
Probably because most of the users will never need/use the CAN interface.
Some wil need CAN, some RS485 (as I do), some RS232 ... all the interfaces can be easily added on the add-on module (and it is easy enough to make your own).
reaper7 last edited by
I only wrote, that we can still use esp32 CAN functionality with current m5stack hardware :)
gpio's 35/5 are available on m5stack header
and additional transceiver may be soldered, as You wrote, on the add-on module.
yes, the add-on function board will meet this need, The Can Board will come.
SR last edited by
High Speed CAN transceiver can be used by custom design, I checked it based on my proto board:
Andi last edited by
Hi. Thanks a lot for the feedback. Thats exactly what i was locking for. Need to add a can transceiver and used the pins 34 and 35 for the CAN connection. I would like to build a simple can logging monitor.
SR last edited by SR
I used this CAN lib, works in Basic CAN mode with SN65HVD230.
Even more due to the pin mux of the ESP32, you can also use different pins, e.g.
#define CAN_SPEED CAN_SPEED_250KBPS
#define CAN_TX GPIO_NUM_17 // TXD2
#define CAN_RX GPIO_NUM_16 // RXD2
Because I used TXD2 and RXD2, I'm currently considering to check also the RS232 MAX based TTL converter and in case it works, maybe I will put only a 4 or 6 pin grove connector into the M5Stack proto board with housing and place the tranceiver into an external plug: one connector would then allow either CAN or Serial :-)
jcsbanks last edited by jcsbanks
Another getting this for a CAN idea, after using CAN on other ESP32 modules.
I am going to see if I can squeeze an SN65HVD230 board inside the enclosure and run without a battery.