mackrackit,
No more confusion than before
. Actually, the way you described the voltage scaling makes more sense to me now. As far as the torch voltage is concerned, maybe I added confusion from the beginning by not stating what would be a good baseline hysteresis to go with. After trying to get my head around the scaling, I started looking at the numbers more, and in doing that, I think a resolution of 1 volt change at the torch would be more than ok. That being said, that's where I figured using a torch value ranging from 0 - 256 Vdc...
8 bit ADC
4 Vdc Vref
Vdc per ADC count : 4 / 256 = .015625
Torch Vdc scale : 1:64
Torch Vdc per ADC count : .015625 * 64 = 1 VdcEx: Torch Vdc = 115
ADC counts * Vdc per ADC count = ADC Vdc Now
115 * .015625 = 1.796875 Vdc
1.796875 * Torch Vdc scale = Torch Vdc
1.796875 * 64 = 115 Torch Vdc
So... for every 1 Vdc change at the torch, there will be a 1 count change at the ADC... correct?
If this is the case, coding for this arrangment should be way easier?
Am I making this easier or harder on myself? I think it's sinking in slowly but surely. Thanks for assisting me on my brain fryer!
Chris
Bookmarks