Previous in Forum: Unjamming Tanker in Suez Canal   Next in Forum: Is Nio the New Tesla
Close
Close
Close
17 comments
Rate Comments: Nested
Member

Join Date: Mar 2021
Posts: 7

How to Measure the Current of a Normal 12 V DC Motor?

03/30/2021 2:35 AM

I would like to know if there is a way to measure the current of a normal 12V dc motor.

I am using a DRV8838 DC Motor Driver and a Arduino Nano.

I want to use it to stop the motor once a specific current draw or load is reached, if the motor is about to stall.

I’m fairly new in all of this, so if possible a simple explanation would be nice.

__________________
Work hard and be free!
Register to Reply
Pathfinder Tags: current sensing dc motor DRV8838
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#1

Re: How to measure the current of a normal 12v dc motor?

03/30/2021 4:34 AM

__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply Score 1 for Good Answer
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#5
In reply to #1

Re: How to measure the current of a normal 12v dc motor?

03/30/2021 5:36 AM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#11
In reply to #5

Re: How to measure the current of a normal 12v dc motor?

03/30/2021 3:51 PM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Guru

Join Date: Oct 2006
Location: 44.56024"N 15.307971E
Posts: 8277
Good Answers: 270
#2

Re: How to measure the current of a normal 12v dc motor?

03/30/2021 4:36 AM

"NORMAL" leaves a lot of room for speculation.???

Here is a link to some experts on the Arduino:

There are lots of people there that can help you design the system you are working on.

https://www.etechnophiles.com/category/projects/electronics/arduino/

__________________
"A man never stands so tall as when he stoops to help a child." "Never argue with a stupid person.They will drag you down to their level and beat you with experience" "To create an apple pie from scratch, first you must create a universe"
Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#3

Re: How to Measure the Current of a Normal 12 V DC Motor?

03/30/2021 5:04 AM

<...if the motor is about to stall...> then it is undersized.

Google "current trips".

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#4

Re: How to Measure the Current of a Normal 12 V DC Motor?

03/30/2021 5:34 AM

The easy way to measure current is to measure voltage across a series resistor.

Choose the resistor to be as large as possible given that you don't want it to take too much power from the motor. It needs to be large because it needs a very large capacitor in parallel with it to smooth out the wrinkles caused by the motor "gulping" current. The RC constant of the parallel combination needs to be greater than the length of the longest expected gulps.

Feed the voltages from "top" and "bottom" of the resistor into a differential amplifier, and, feed the output of the amp into a comparator. Set the other input to the comparator at the voltage which matches the trip current required. Use the output of the comparator to control the enable pin on the driver.

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply
Member

Join Date: Mar 2021
Posts: 7
#6

Re: How to Measure the Current of a Normal 12 V DC Motor?

03/30/2021 5:36 AM

There, all

Can I put a very low ohm resistor in series with the motor power feed and measure the voltage drop across it? So that I can calculate the current through the voltage and the resistance.

__________________
Work hard and be free!
Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#7
In reply to #6

Re: How to Measure the Current of a Normal 12 V DC Motor?

03/30/2021 5:43 AM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#8
In reply to #6

Re: How to Measure the Current of a Normal 12 V DC Motor?

03/30/2021 6:34 AM

<...Can I...> CR4 is not a permission-giving entity.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Guru

Join Date: Jul 2016
Posts: 1367
Good Answers: 105
#12
In reply to #6

Re: How to Measure the Current of a Normal 12 V DC Motor?

03/31/2021 12:16 AM

Yes, look up dc motor shunt, which is a very low resistance that is calibrated to produce a millivolt signal. This is a very old technology, but will require isolation from your dc motor voltage. You may find that a Hall Effect transducer may be economic, if it comes with an output that connects directly to your controller, as Redfred notes in Thread #10.

Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#9

Re: How to Measure the Current of a Normal 12 V DC Motor?

03/30/2021 7:07 AM

Consider the value of adding a temperature sensor and a trip circuit into the setup.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#10

Re: How to Measure the Current of a Normal 12 V DC Motor?

03/30/2021 11:19 AM

Yes, there are multiple easy ways (for me) to measure the current draw of a DC motor.

First, I think a quick refresher on DC motors is merited. Many brushless DC motors have self contained circuitry and sensors to handle commutation switching.

The two most popular methods to measure DC current use either a Hall effect sensor or a fixed current shunt (resistance) and ancillary circuitry to measure the differential voltage.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply Score 1 for Good Answer
Guru

Join Date: May 2018
Location: Under the spreading Bunya Trees, South Burnett, Queensland, Australia
Posts: 807
Good Answers: 65
#13

Re: How to Measure the Current of a Normal 12 V DC Motor?

03/31/2021 4:34 AM

It is possible to buy a shunt resistance, available from 2 to a hundred amps, and a meter readout that gives both voltage and current displays and some even have a voltage output related to the current which can be used as an input to the package.

I have used a Picaxe chip to do the same thing to control the current in a welder.

__________________
Hare today, goon tomorrow!
Register to Reply
Power-User
United States - Member - Member

Join Date: Dec 2006
Location: La Grande, Oregon U.S.A.
Posts: 468
Good Answers: 23
#14

Re: How to Measure the Current of a Normal 12 V DC Motor?

04/01/2021 11:31 PM

If you are trying to avoid motor stall you could monitor motor speed by looking at the back EMF. Use your pwm signal to look at the motor voltage while the drive is off. A simple comparator circuit would let you shut the motor down when it's speed falls below a set threshold.

__________________
Don't hit at all if it is honorably possible to avoid hitting; but never hit soft! - Theodore Roosevelt
Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#15

Re: How to Measure the Current of a Normal 12 V DC Motor?

04/05/2021 5:31 PM

PWM-based motor controllers often have built-in overcurrent protection.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Power-User
United States - Member - Member

Join Date: Dec 2006
Location: La Grande, Oregon U.S.A.
Posts: 468
Good Answers: 23
#16
In reply to #15

Re: How to Measure the Current of a Normal 12 V DC Motor?

04/05/2021 6:42 PM

The DRV8838, which is used here, has overcurrent protection set at 1.8 A, not adjustable. The old LM298 had overcurrent protection that you could set with external resistors.

You could also use the overcurrent sense pins to measure the motor current since they are the ground for the h-bridge.

__________________
Don't hit at all if it is honorably possible to avoid hitting; but never hit soft! - Theodore Roosevelt
Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#17
In reply to #16

Re: How to Measure the Current of a Normal 12 V DC Motor?

04/06/2021 4:36 AM

All the Original Poster has to do is determine at what current the trip should happen, and design accordingly. It's not something the forum can do, frankly.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Register to Reply 17 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Amberlia (1); HiTekRedNek (1); LG_Dave (2); PWSlack (5); Randall (1); redfred (1); rwilliams (1); SolarEagle (4); Stef (1)

Previous in Forum: Unjamming Tanker in Suez Canal   Next in Forum: Is Nio the New Tesla

Advertisement