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.

Operational amplifier gain stage and PIC ADC input

Status
Not open for further replies.

flore

Newbie
Joined
Apr 19, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
hi everyone,
I am trying to make one DC current meter like in the schematic attached.
My problem is when the load is the DC motor, the A/D result is random.

Any idea how to avoid this?

 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
14,859
Helped
4,854
Reputation
9,726
Reaction score
4,640
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
126,485
The load current from a DC motor probably is random ! It depends on the mechanical motor load, friction, inductance of the motor windings and commutator position.

The only way to get an AVERAGE reading is to use an averaging filter. You can do this in software by taking many readings and mathematically finding their mean or you can use an RC filter to average the voltage itself.

You are using very high gain in the amplifier which is not helping the situation.

Be careful with your circuit, if you are using positive and negative supplies to the op-amp you should protect the PIC from possible negative voltages at its ADC pin.

Brian.
 

flore

Newbie
Joined
Apr 19, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
thank you for your response.

I try both solutions:
- averaging in software with 100 samples per second, did not help;
- RC filter solve the problem but with high values (R=10k C=10uF)

The problem was the DC motor used for testing.
Anyway the gain of the amplifier is not so high, R3 is 10K.


florentin.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top