Hi, I recently purchased the DC UPS (some OEM with model: DC1018P) for my wifi router.
I would like to monitor this DC UPS with home assistant and ESP32
Interestingly, I found there are 2 ports on the DC UPS PCB for external interfacing.
1 port with SWD label which I believe it is for debugging purpose?
another port with 9 pin port without label. (it has marking from pin 1 to 9 in sequence start with R, G, 100, C75, W50, D25, KEY, 3V3, GND)
Does anyone could suggest any possible to monitor this DC UPS with serial communication to ESP32?
Ok, further to the invetigation, found that the 9 pin port is actually for external communication with the UPS.
It will be useful for others as belwo references.
R= main power supply unavailable to UPS. (signal is active low)
G= main power supply available to UPS. (signal is active low)
100= steady: battery is 100% and discharging, bliking: battery is charging and reach between 76%-99%. (signal is active low)
C75= steady: battery is 75% and discharging, blinking: battery is charging and reach between 51%-75%. (signal is active low)
W50= steady: battery is 50% and discharging, blinking: battery is charging and reach between 26%-50%. (signal is active low)
D25= steady: battery is 25% and discharging, blinking: battery is charging and reach between 0%-25%. (signal is active low)
KEY= Has pull up resistor to source (4.8V while UPS ON, 7V while UPS OFF). Make connection between KEY pin and GND pin for more than 3 sec for power ON or OFF the UPS.
3V3= it is actually 5V DC supply!! for external controller.
GND= ground
Hey @westwoon did you integrate this UPS to the Home Assistant? I spent a few days trying to read the device status via wemos d1 mini gpio’s, but no luck still…
Hi @busha , I found out the 3V3 pin is actually with 5V supply!! (the 3V3 marking is so misleading). All signal from the 9 pin port are with 5V. So we need 6 channel logic level shifter for R,G, 100, C75, W50, D25.
Further checking on the KEY pin, it is actually with pull up resistor to the source. However, the voltage measured is 4.8V while UPS ON, and 7V while UPS OFF.
wire jumper the KEY pin and GND pin for more than 3 sec to power ON or OFF the UPS.
Hey @westwoon ! It seems so that voltage may differ from UPS to UPS
I already finished integrating it to the HA, as well, and can confirm that on my device logic is 3.3v as marked on the PCB.