-
Notifications
You must be signed in to change notification settings - Fork 61
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 Compatibility #4
Comments
For more information, I was currently looking at batteries similar to this one: 3.7V 2400mAh Polymer Li-po battery |
@xiongyihui I finally got the battery in and I am getting some weird behavior. If I plug the battery in without the USB plugged in, I don't get any power to the board at all even when I plug in the USB cable. If I have the USB cable in and the keyboard on, and then plug in the battery I can get it to stay on, but I don't have any indication that the battery is charging. Do you think this is an issue with the batteries compatibility? Is there any way I could go about debugging this issues? It is the battery linked above with the 3p JST 1.25mm connector. Thanks again for your help! |
Also when I have the keyboard on and then plug in the battery, printing |
When we plug the battery in without the USB plugged in, the keyboard is on power off mode. We can press the ON/OFF button at the back of keyboard to power on it. |
I tried that, when I have the battery plugged in and plug in the USB-C cable, the ON/OFF button does not do anything |
When USB is connected, quickly pressing the ON/OFF will reset the keyboard, long press (more than 3 seconds) will trigger the bootloader of the keyboard. To read battery level, we should use |
Hm, whenever I have the battery plugged in, I am getting no power at all. Pressing the ON/OFF or holding it doesn't do anything. I get not drive showing up on my computer or anything. The second I unplug the battery, the board begins to be powered like normal |
Be careful! Make sure the positive and negative terminals of a battery are correct. You can find |
Ah that was the issue, the JST connector was wired up backwards to the board! Now thatthis is working correctly, what is the proper way to mount the keyboard over USB with the battery connected? When I have the battery in, the board doesn't show up when I plug it into my computer |
nevermind, I believe this issue had something to do with the cable. I tried another one and it is working as intended! Thanks for helping me out! |
@xiongyihui I realized that the issue I was experiencing here was not just the cable I was using, it seems like the keyboard doesn't get recognized as a USB device when I have the battery plugged in and I use a USB-C to USB-C cable to plug into my computer's USB-C port. It works fine when I use a USB-C to USB-A and then plug it into a normal USB port. Is there any reason that this would be happening? I checked with several cables on several operating systems with the same result. |
Does the USB-C port support charging the computer? It may be an issue of USB-C power manager. |
Ah the USB-C port does support charging, that may be the issue. Also is there a way to calibrate the battery level indication? I have my keyboard plugged in the entire time and the battery level never goes above 6 or 7 when I add some print statements to the |
To calibrate the battery level, we can change the mapping between battery voltage and battery level at: python-keyboard/keyboard/model/m60.py Lines 31 to 55 in 017426a
|
Cool, that's what I was looking at. Is there a good way to calculate the battery limit? It looks like with a full battery charge my |
Also how was the |
For now I have just set the |
How is power handled on the m60 board to provide integration with the nRF52840 module? I am excited to get my prototype board and am trying to figure out what sort of battery is appropriate and if I need to use some form of buck/boost circuit or if that sort of logic is being built into the m60 circuit when providing the JST connection.
The text was updated successfully, but these errors were encountered: