Roseandthistle
New Member
Hi all.
I'm working on an ammeter using Maxim's High side current monitor.
It seems to be a really slick chip. I've managed to calibrate the output with reference to a quaility ammeter.The readings I get are: 1.804vdc out with respect to .1804 Amps. The chip's power comes from the same power as the picaxe 28x2. 5vdc.
Now the issue:
I want to read the max4172 out to ADC0. and have the picaxe calculate and display the number on a serial lcd. Everything works, except I get a single digit i.e. (.2) on the lcd. I would like 4 digits i.e. (.1804).
This can't be that difficult. I've set the adcsetup 0, readadc10, word variable, 1023 bit, ect.
Any help is appreciated.
Thanks
I'm working on an ammeter using Maxim's High side current monitor.
It seems to be a really slick chip. I've managed to calibrate the output with reference to a quaility ammeter.The readings I get are: 1.804vdc out with respect to .1804 Amps. The chip's power comes from the same power as the picaxe 28x2. 5vdc.
Now the issue:
I want to read the max4172 out to ADC0. and have the picaxe calculate and display the number on a serial lcd. Everything works, except I get a single digit i.e. (.2) on the lcd. I would like 4 digits i.e. (.1804).
This can't be that difficult. I've set the adcsetup 0, readadc10, word variable, 1023 bit, ect.
Any help is appreciated.
Thanks
Attachments
-
333 bytes Views: 13