I am aware but I am not stopping the motor or changing it's direction, I just keep it running in one direction.
So I enable the top left and bottom right side of the bridge giving me one direction and then I just pulse the enable PIN.
My motor is a Pittman MT14202C652-R2 which I am using on my thesis but it is old and there is no data I could find online and as is my thesis job to model and identificate this motor and then generalize a technique for others.
And as you advised that it could be due to the low pwm frequency, does it causes a significant loss in torque? How would the voltage at the motor leads look like at the osciloscope, if it is good how does it look like and the other way around ?
On monday I have acess to one oscilloscope and I can check it.
Another thing, this motor is rated at 30.3VDC, I am using 12V to 24V and it rotates at around 1600-2500 RPM, It has a generator that gives me 2V/1000RPM.
- I am using matlab and simulink to interface and program the arduino, the only problem is that the Analog write blocks I have available to use with arduino don't have the option to choose the pwm frequency but this is something I will have to research later, maybe I can somehow edit the source code of the block in order to use fast pwm and a low prescaler.
If someone has worked with arduino and simulink knows something about this send me something I would really appreciate.
This is my setup,
LEFT SIDE is what is running on the arduino - recieves the pwm value to output at the enable pin and sends the readings to calculate the current.
RIGHT SIDE is the host that runs on my computer, sends signal, reads current and plots it.
Thank you in advance.