and what is the easier way to measure the current with the analogic ports of the 16f876?
and what is the easier way to measure the current with the analogic ports of the 16f876?
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Where is the problem ?
1. You must know the maximum current.
2. You can choose your shunt (don't forget the heat!!!!)
3. You use a OPAMP as an amplifier for the voltage to maximum 5V for maximum current trough the shunt. I use an LT1490 (rail-to-rail) for 5V-supply and good quality.
4. Measure the voltage !
(I use the lm385-2.5 as a reference. I measure the voltage of one port an the voltage of a port with the lm385 on it to calculate the correct voltage, because the supply-voltage may be incorrect or spread widely. The normal 7805 is worse, I use a 78M05CDT instead.)
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
can be the INA138 a good idea instead of the operational?it is a "High-Side Measurement Current Shunt Monitor, Current Output",it directly convert voltage to current
Bookmarks