🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Stack with CAN

    PRODUCTS
    7
    14
    40.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • m5stackM
      m5stack
      last edited by

      no CAN now! we changed the design.

      1 Reply Last reply Reply Quote 0
      • reaper7R
        reaper7
        last edited by reaper7

        why no?

        we have CAN library:
        for esp-idf:
        https://github.com/ThomasBarth/ESP32-CAN-Driver
        for arduino:
        https://github.com/nhatuan84/arduino-esp32-can-demo

        more info:
        http://www.iotsharing.com/2017/09/how-to-use-arduino-esp32-can-interface.html
        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

        MY GITHUB: https://github.com/reaper7/

        loborisL 1 Reply Last reply Reply Quote 1
        • loborisL
          loboris @reaper7
          last edited by

          @reaper7 在 M5Stack with CAN 中说:

          why no?

          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).

          1 Reply Last reply Reply Quote 0
          • reaper7R
            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.

            MY GITHUB: https://github.com/reaper7/

            1 Reply Last reply Reply Quote 0
            • m5stackM
              m5stack
              last edited by

              yes, the add-on function board will meet this need, The Can Board will come.

              1 Reply Last reply Reply Quote 1
              • S
                SR
                last edited by

                High Speed CAN transceiver can be used by custom design, I checked it based on my proto board:
                http://forum.m5stack.com/topic/59/diy-mini-proto-board

                1 Reply Last reply Reply Quote 1
                • A
                  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.

                  1 Reply Last reply Reply Quote 0
                  • m5stackM
                    m5stack
                    last edited by

                    nice

                    1 Reply Last reply Reply Quote 0
                    • S
                      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 :-)

                      1 Reply Last reply Reply Quote 2
                      • J
                        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.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post