Inverter building using Wiseguys Power board and the Nano drive board


Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2857
Posted: 01:44am 14 Sep 2025      

You may be able to use a digital out/open collector pin to switch the range via another resistor in the lower leg of the divider and have the best of both worlds.

When the ADC value exceeds a suitable limit set the pin low.
When the ADC value falls below a limit determined the ratio of the two ranges set the pin high.

Your software could then either adjust the display to suit the range, or for maximum resolution on the low range, just change the trace colour to show when it is on the high range.