Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

reading an analog current signal into a pic micro

Status
Not open for further replies.

dmta

Member level 2
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.

untitled.JPG

Regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top