norbert-walter/esp32-nmea2000-obp60

Undervoltage detection and shutdown preventing driving board from USB

Closed this issue · 0 comments

float actVoltage = (float(analogRead(OBP_ANALOG0)) * 3.3 / 4096 + 0.17) * 20; // V = 1/20 * Vin

See also https://www.segeln-forum.de/thread/73307-multifunktionsdisplay-diy/?postID=2700436#post2700436 and following complaints.

Maybe don't initiate shutdown when USB is in use.