Current consumed by an motor with PWM Signal in.

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
sygma22
Posts: 30
Joined: Tue May 27, 2008 1:47 pm
Location: FRANCE
Contact:

Current consumed by an motor with PWM Signal in.

Post by sygma22 » Thu Sep 10, 2009 7:52 am

reading of the current consumed by an engine crossed by a signal PWM:

Ex for has Pic18F7620 gold other 12Volts 9 Khz 50% Duty: how to use the function ADC.read or ADC.read.median….

Thank you d' avence for an answer.
My first interest is working with a PWM signal.

Motor : 24 Volts 4 or 5 A.

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Thu Sep 10, 2009 4:52 pm

You first need to convert the motor current to a voltage before the ADC can read it. The simplest way is to put a current sense resistor on the low side (referenced to ground) of the motor. Let's say you want to know when the motor current exceeds 5A. If you use a 0.5 ohm resistor, the voltage across it will be 2.5V (0.5x5) and you can measure this voltage using the ADC.

There are more efficient ways of doing this though. In the example given above, a lot of power, 12.5W (5x5x0.5) is wasted in the resistor. You want to keep the sense resistor value as small as possible - I like to keep at 0.01 ohm or less. Also, placing the resistor on the low side has disadvantages - it generally preferable to have the current sense resistor on the high side.

sygma22
Posts: 30
Joined: Tue May 27, 2008 1:47 pm
Location: FRANCE
Contact:

Thanks

Post by sygma22 » Thu Sep 10, 2009 8:58 pm

Thank you very much...

I will try with adc.readmedian and i will inform you the best choice.
My first interest is working with a PWM signal.

Motor : 24 Volts 4 or 5 A.

Post Reply