fratello. Yes I saw that one but it isn't this one, this one had various calibration routines etc in the code. Notice the defines for xtal osc. I do remember the author for mine came from India.
Hank,
I'm getting old I just don't get this. I've modded the board to have the .47 (not.047 as i put above) in series to the ground line and put a 100k to the adc input as per the schematic from the link above. This uses a 16f876 and I've duplicated the adc input circuit. They are claiming up to 10amp and with 10mA resolution.



Thats a lot of wasted power!! And one big honking resistor! What you may need to do is supply a Vref for the ADC that is lower than Vcc and use a smaller shunt resistor. Or put an op-amp across a smaller shunt resistor to amplify the difference. You may need to drop the shunt down to 0.01 ohm in order to get a reasonable sized resistor. That would be a 1 watt resistor. If you drop Vref down to about 1V, then should be able to get 1 mV resolution. With a 0.01 ohm shut, that would give you about 100 mA per step. So you may still need to use an op-amp if you want better resolution.


Bookmarks