Skip to main content
Graduate
October 24, 2022
Question

Can I send data via CAN bus by reading data from USB using STM32?

  • October 24, 2022
  • 3 replies
  • 1211 views

I have a GPS module and I use it by connecting it to my computer via USB.

I also want a CAN bus output. 

Can I use the STM32F730R8T6 processor?

How can I introduce the information from the USB to the STM32 processor? Which pins should I use?

After doing this I also need to get a CAN bus output.

Can you help me?

    This topic has been closed for replies.

    3 replies

    Graduate
    October 24, 2022

    First, get familiar with USB CDC or HID class - both are supported by CubeMX, choose the one which suits you best.

    Graduate II
    October 24, 2022

    You can see if this video will get you started https://www.youtube.com/watch?v=oe5JmYYAZy0

    It shows how to set the STM32 as a Custom HID device and also use CAN bus.

    Graduate II
    October 25, 2022

    STM32F730R8T6 is a bit overkill but yes,

    MIND the extra transceiver needed : almost everyone forgets they need the canbus transceiver IC when starting with canbus