Hi to all,
I have made up a bench power supply and am using the PIC16F690 with LCD output to display voltage output which was relatively easy. I would also like to display the amount of amps that is being drawn.
What is the simplest way of reading the current being drawn using the ADC input on the PIC, have no idea where to start.
Would appreciate some help please.
Thank you.
Regards
Ted
How to input a current reading via ADC
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: How to input a current reading via ADC
Hi Ted,
The simplest way is to have a watty resistor with a very low resistance. The current flowing through the resistor is proportional to the voltage developed across the resistor.
V = I x R
I = V / R
You can then use an op amp to amplify the voltage to give you a nice reading you can use with a micro's analogue input.
Here are some simple circuits, 1B is how I might do things.
https://www.google.co.uk/search?q=curre ... TMn2QfM%3A
The simplest way is to have a watty resistor with a very low resistance. The current flowing through the resistor is proportional to the voltage developed across the resistor.
V = I x R
I = V / R
You can then use an op amp to amplify the voltage to give you a nice reading you can use with a micro's analogue input.
Here are some simple circuits, 1B is how I might do things.
https://www.google.co.uk/search?q=curre ... TMn2QfM%3A
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 79
- Joined: Sat Mar 14, 2015 7:52 am
- Has thanked: 46 times
- Been thanked: 26 times
- Contact:
Re: How to input a current reading via ADC
Thanks for the help Benj, will certainly use this method, will play around with it.
Much appreciated
Regards
Ted
Much appreciated
Regards
Ted