Some DC motor drivers have a current output. To help find one we need to know the rated voltage and stall current of your motor.Place a shunt (low value resistor) in series with the motor. The voltage dropped by the resistor is proportional to motor current (see Ohm's law). Depending on the setup, amplification of the output may be necessary.Use a current sensor .
I want to give the periodic voltage to the dc motor
What are you using to drive the motor? A transistor? Relay? H-bridge? Part number or link to the driver?What is the stall current of your motor?
If you are talking about PWM, you may not be able to measure the pulsating current without heavy filtering.
I'm using L293D shield and the stall current is 11.96 A
That's ten times the absolute maximum peak current that the L293D can handle.Leo..
so what should I do?
hi is there any way to measure the current of the dc motor, actually I want to give the periodic voltage to the dc motor and I need the periodic values of the current which flow in the motor
If you mean you are using PWM to drive the motor, you may find the current is varying much lessthan you think, motors are inductive, smoothing out the current waveform.
No, I don't mean that at all.I mean the current is varying less than you might think if you thought it followed the voltage waveform.You might not need to work about timing the reads to match the PWM.