I am currently using a Teensy to control a 24V motor using a TB9051FTG driver. I’m using the USB 5V power as the VCC, Teensy GND pin for ground, and digital output pins for the PWM. The teensy is connected via usb to a computer that also connected via usb to electronic signal recording equipment. DC motor noise seems to be back-propagating through usb to my recording equipment, including some high voltage spikes.
What would be a good way to electrically isolate this setup? Maybe power the driver using the motor power using a 24V->5V converter, and connect to the teensy PWM signal using an opto-isolator?
I’m also curious how I could suppress some of this noise (without interfering with the PWM power output).