Hey Rasa,
To supply an external PWM signal, you'll need to isolate the MSP430F5529 pin from the EVM. IF you do not do this you run the risk of damaging the MSP430 by back-driving this pin while it's being pulled down. I would advise not trying to supply an external PWM signal while still using the Launchpad connections.
To run the BOOSTXL-DRV8323RH EVM independently from your Raspberry PI in SENSORED 1x PWM Mode, I would recommend running the following steps:
- Remove the BOOSTXL-DRV8323RH EVM from the MSP430F5529 Launchpad
- Populate R36, R37, and R38 resistors with 0 Ohms
- Connect your Hall Sensor leads from the motor to the J2 Header. Be sure to observe correct phase connections.
- Connect your motor to the J5 header. Be sure to observe phase connections.
- Connect your power supply to J1 Header. Be sure to observe polarity.
- Leave pin 13 of J4 header floating on the BOOSTXL-DRV8323RH EVM. This will configure the device for 1x PWM Mode.
- Connect a GPIO Pin from the Raspberry PI to the ENABLE Pin (pin 9) of J3 on the BOOSTXL-DRV8323RH EVM. This pin needs to be Logic-High in order to Enable the DRV8323RH device.
- Connect a GPIO Pin from the Raspberry PI to the INHC pin (pin 9) of J4 on BOOSTXL-DRV8323RH EVM. This pin controls the direction of the motor.
- Connect a GPIO Pin from the Raspberry PI to the INLC pin (pin 11) of J4 on the BOOSTXL-DRV8323RH EVM. This pin controls the BRAKE functionality and needs to be logic-high in order for the motor to start spinning.
- Connect a PWM Source from the Raspberry PI to the INHA pin (pin 1) of J4 on the BOOSTXL-DRV8323RH EVM. This pin controls the speed of the motor.
- Turn on your power supply.
To spin the motor, start by bringing the ENABLE pin logic-high, then bring the INLC pin logic-high. Finally apply your PWM signal to INHA and the motor should start spinning.