-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detecting external power #5
Comments
For anyone else looking into this issue: I read the English-language translation of the manual #1 and found:
And translating the correcsponding text in the new manual (v1.2):
With the diagram: This made me realise I had not read the schematic correctly, there are clearly two pads labelled: Whilst I have not yet tested this, it looks like shorting these two pads will enable the detect feature! |
It works! |
Can you please explain how you accomplished this? I see the two pads, but due to lack of experience, i want to be sure before potentially destroying my UPS. Did you simply solder the two pads together? Thanks! |
Sure, happy to help. TLDR;Yes, just solder the two pads together. ExplanationThe effect of that is to make an electrical connection between As for your other question, it is worth being explicit about which pin number system we are using. The battery capacity is obtained by communicating with the fuel gague on the UPSLite via the I2C protocol (a pair of pins). Specifically it uses I2C1 which is located on pins with BCM numbers 2 & 3. Thats the 3rd and 5th pins if you are looking at the physical header. So no, BCM4 (AKA physical pin 7) is not used in communicating with the fuel gague. It needs to be configured as a simple GPIO, an input. |
The schematic seems to indicate
Vin
is connected toGPIO7
.Inspecting the pogo pins it looks like something is connected to
GPIO4
or header pin number 7. So I assume this is what is meant?However when I read this pin as an input I don't seem to get anything corresponding to Vin.
Can I detect the presence of external power with the UPSLite?
The text was updated successfully, but these errors were encountered: