reading an analog current signal into a pic micro

Status
Not open for further replies.

dmta

Member level 2
Joined
Mar 25, 2013
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Earth
Visit site
Activity points
1,650
Hi all,

I have 2 H bridges that are powering two DC motors. The total current going into the motors (5A) is being measured by an INA193. I want to read in the average current (RMS would be better) going into the motors. For this I am low pass filtering the current output using two LPFs in series. I am using the attached circuit but the values are not quite stable. What can I do to solve this?

I am also open to doing some calculation in the micro which is a PIC18f4431 run at 10MIPs. The problem is that the process slows down when I try to average the values using the code. I am also running a motor speed PID loop inside the micro.



Regards
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…