This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV8873SEVM: Communicating with raspberry pi

Part Number: DRV8873SEVM
Other Parts Discussed in Thread: DRV8873

Hi Team,

Our customer would like to ask your help on how to communicate and control the DRV8873SEVM using Raspberry Pi.

Regards,

Danilo

  • Hello Danilo,

    I would be happy to help out. Before going forward with the details on how to connect and operate with the Raspberry Pi, is your customer aware that the DRV8873SEVM has a micro USB port that allows control of the board with a GUI and a computer? I feel this would be an easier way to control the device. 

    All of the information needed to set the GUI up can be found here:

    www.ti.com/.../slvub68b.pdf

    If the purpose is to exclusively control it with an external Raspberry Pi I would be happy to go through the instructions, but perhaps they would be better served by the driver and a PCB rather than to use the EVM. Let me know if the GUI solution is appropriate or if they would prefer to use the Raspberry Pi and the EVM.

    Best,

    Pedro Arango Ramirez

  • Hi Pedro,

    Thank you for your response. We have received further inquiries from our customer as follows,

    I've made a small application to read encoder pulses using raspberry pi and I want to integrate my application with the EVM board.
    For your information my raspberry Pi can't recognize the USB DRV8873 EVM board.
    Seeing the DRV8873 EVM board it's using FTDI chip for USB interface.
    Tried with another USB with FTDI chip also they are working with raspberry.
    Do you have references on how to communicate the raspberry pi with the board using SPI communication.
    currently i build an application using qtcreator.
    Regards,
    Danilo
  • Hello Danilo,

    If USB interface is not working I would bypass it directly. Take away the resistors that connect the onboard MCU to the driver and then use connect the MSP430 pins directly to the necessary pins in the EVM depending on the application. This should solve any compatibility issues between the onboard MCU and the raspberry pi. I can't assist with the code of the raspberry pi beyond that. 

    Best,

    Pedro Arango Ramirez

  • Hi Pedro,

    According to our customer,

    Did you mean take away this resistors (see the picture attached IMG_20210730_001932.jpg).
    I don't want take away and change the resistors as the picture attached. 
    I made the dummy GUI with raspberry pi for serial communication. The USB interface is working now. ‎The DRV board USB interface founded.  port name "dev/ttyUSB0" (see attached file IMG_20210730_003216.jpg)

    Is any possibilities to read or write the data using USB UART‎ on EVM board?

    I want to control the DRV board using my GUI

    (see attached file‎ IMG_20210730_004026.jpg).
    Regards,
    Danilo
  • Hello Danilo,

    Unfortunately I am unfamiliar with how to do this, and I do not know any relevant resources that might help with this undertaking. My recommendation is to control the board with the already integrated GUI as it will be a sure fire way. 


    Best,

    Pedro Arango Ramirez

  • Hi Pedro,

    Here is the feedback of our customer,

    yes it would be easier using integrated GUI, but how can i integrate the integrated GUI with the encoders.
    My encoders has rs485 output and I use USB to rs485 converter.

    when I saw the board has USB interface, I assume it can be read or write the data through the USB interface, so I assume also the board can be integrating with raspberry.

    The dummy GUI mentioned before built in raspberry pi.
    It's used to read the encoder pulses and converted to the angle values
    that's one of the reason I want integrate my dummy GUI, so I can control the speed of the DC motor using the 8873SEVM board and measure the angle using one application.

    Regards,

    Danilo

  • Danilo,

    Is there a particular reason why the customer can't directly interface the raspberry pi MCU board with the DRV8873SEVM using the row of test points between the onboard MCU and DRV8873?  That is the whole reason those are there...to interface with other MCUs.  Most customers just build a ribbon cable to connect to external MCU.

    We don't have the GUI expertise in our team.  For that reason, we don't support other GUI development other than the one we provided.

    Regards,

    Ryan