-
Notifications
You must be signed in to change notification settings - Fork 6
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
Battery draining very quickly #6
Comments
The code in the repository is okay and all builds that I heard of are working fine so far. |
Interesting. I'd guess that using the aforementioned System OFF state could potentially save even more energy, but perhaps not working together with the matrix scanning. Maybe I'll get a chance to test it sometime. I don't think there is an electrical fault as I have the problems with both sides, but maybe I have to doublecheck the components I used. |
Yeah, I just also read further down the thread and yes you are right this might save even more energy but would most likely need some sort of persistence handling, though the matrix scanning should be fine as this is also just based on a GPIO interrupt. |
Another theory: Is it maybe due to the different types of the MCP1640 that exist? https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP1640-Family-Data-Sheet-DS20002234E.pdf I seem to have used a MCP1640D, but maybe a MCP1640 or MCP1640C would have been better suited? |
Yes, this is indeed possible. I am using MCP1640C in my keyboard myself |
That indeed did the trick. I switch to a MCP1640C and am getting a sleep-current of ~0.1mA, instead of ~2.5mA before that! I'll see how this performs and perhaps try to implement the System OFF state if I am still dissatisfied. |
I am trying to use the interphase keyboard, but having issues with the batterylife being only a couple of days. I have compiled the code myself becauseI have built the PCBs inverted (to be easily able to access the components).
In the code, I am not seeing a line which puts the device in a very low power mode, like for example the redox does it: https://github.com/mattdibi/redox-w-firmware/blob/master/redox-w-keyboard-basic/main.c#L138
Is that perhaps missing from the code pushed here?
The text was updated successfully, but these errors were encountered: