I'm a programmer and I've only started messing with hardware half a year ago, mainly with the Raspberry Pi. I now want to drive a brushless DC motor using my Raspberry pi. To do this, I've bought this BLDC motor driver (it's still on its way) which comes with the following diagram:
From this image I understand that I need to provide 5 different inputs to the driver (SV
, COM
, F/R
, EN
and BRK
). And here's where I think I get into trouble, for two reasons:
- the
SV
requires an analog input, but as far as I know the Raspi doesn't have an analog GPIO pin. - All these inputs require 5V, while the Raspi GPIO pins only supply 3.3V
So first question; am I correct in these problems?
I guess I can overcome these problems as follows:
- I could use either PWM or a DAC as described here for the analog input, but since I want the motor to always run at top speed, I guess a simpler solution would be to always power the
SV
with 5V. Am I correct in this? - To power the other ports with 5V I could use opto-couplers in combination with the 5V powered GPIO pin to supply 5V to the other 4 ports.
So I created the following drawing:
Using the above diagram I guess I can power all those 5 connections on the motor driver with 5V and I can turn them on and off programatically using the regular 3.3V GPIO pins.
But since I'm really a beginner: does this make sense? Do you think this will work? Won't it damage anything?
All tips are welcome!