05-11-2023, 08:02 PM
I connected all of the pieces for the power feed to test them and had a hell of a time trying to figure out how to change a positive number to a negative number. The motor driver turns the motor in one direction with a positive number (0 - 255) and the reverse direction using a negative number (-0 to -255). Of course the ADC in the Nano only gives you a positive number from 0 - 1023. In the end it was very simple but I wasted most of the day trying to do it the wrong way.
Now I have a hardware problem where if I turn the speed down quickly something is causing the power supply to shut down. Using my clamp meter I was seeing, at most, less than three amps. The driver is capable of driving 13A continuously, 30A for about 10 seconds. My power supply is rated at 13A. I'll hook up the oscilloscope to it tomorrow and see if I can see anything strange going on. I really could use a current probe for my scope but man are they pricey!
Ed
Now I have a hardware problem where if I turn the speed down quickly something is causing the power supply to shut down. Using my clamp meter I was seeing, at most, less than three amps. The driver is capable of driving 13A continuously, 30A for about 10 seconds. My power supply is rated at 13A. I'll hook up the oscilloscope to it tomorrow and see if I can see anything strange going on. I really could use a current probe for my scope but man are they pricey!
Ed