Pages: 1 [2]   Go Down
Author Topic: inverting a pwm signal  (Read 5268 times)
0 Members and 1 Guest are viewing this topic.
Poole
Offline Offline
Jr. Member
**
Karma: 0
Posts: 89
I'm not a complete idiot. Some bits are missing
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No problem. Glad I could help.

Chris
Logged

Poole
Offline Offline
Jr. Member
**
Karma: 0
Posts: 89
I'm not a complete idiot. Some bits are missing
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I was wondering, I haven't had much experience driving DC motors. I gather that you are using PWM, but how are you controlling speed? is it done by simply increasing the duty cycle, or can it be done by changing the frequency of the pulse, like you would with a stepper motor?
Sorry if these are daft questions, but I really don't know anything about DC motors!

Chris
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, speed control is provided by changing duty cycle. It is proportional to voltage.

In order to understand effects of frequency over pwm here is a quote from the http://homepages.which.net/~paul.hills/SpeedControl/SpeedControllersBody.html

Quote
The frequency of the resulting PWM signal is dependant on the frequency of the ramp waveform. What frequency do we want? This is not a simple question. Some pros and cons are:

  •    Frequencies between 20Hz and 18kHz may produce audible screaming from the speed controller and motors - this may be an added attraction for your robot!
 
  •  RF interference emitted by the circuit will be worse the higher the switching frequency is.
 
  •  Each switching on and off of the speed controller MOSFETs results in a little power loss. Therefore the greater the time spent switching compared with the static on and off times, the greater will be the resulting 'switching loss' in the MOSFETs.
 
  •  The higher the switching frequency, the more stable is the current waveform in the motors. This waveform will be a spiky switching waveform at low frequencies, but at high frequencies the inductance of the motor will smooth this out to an average DC current level proportional to the PWM demand. This spikyness will cause greater power loss in the resistances of the wires, MOSFETs, and motor windings than a steady DC current waveform.

Logged

France
Offline Offline
Faraday Member
**
Karma: 36
Posts: 3435
There is an Arduino for that
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If using a software solution you should be aware that the two phases should not make the two halves of your bridge conducting at the same time.Otherwise you will blow up you motor drivers. The motor drivers usually have some security that avoid cross conduction of the 2 transistors of the same halve. Choose your bridge carefully.
Logged

Pages: 1 [2]   Go Up
Jump to: