How to make software voltage divider?

Ok. I try it. It seems a good solution.

Thanks for all :slight_smile: