Hi Jeno,
Following up on this thread to see if you have any further questions or clarifications? In the meantime, I will mark my last response as "TI Thinks Resolved" but please let us know if there are additional questions.
Thank you! Best Regards…
Deepak,
I see two problems.
1) The LM339 common mode range does not include VCC+ 2) The comparators need an offset of about 15mV added. So 0mV input is off and 30mV is on.
High voltage (>6V) comparators with rail to rail (or VCC+) common mode range…