Skip to content
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

Bug: Battery level is not show in PlayerBhaptic app #121

Open
walterleonardo opened this issue Jun 18, 2024 · 6 comments
Open

Bug: Battery level is not show in PlayerBhaptic app #121

walterleonardo opened this issue Jun 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@walterleonardo
Copy link

walterleonardo commented Jun 18, 2024

Details

Appear like 0 the battery level.

@walterleonardo walterleonardo added the sweep Assigns Sweep to an issue or pull request. label Jun 18, 2024
@walterleonardo
Copy link
Author

walterleonardo commented Jun 18, 2024

**** Failed to open the serial port /dev/tty.SLAB_USBtoUART ****
---- Opened the serial port /dev/tty.SLAB_USBtoUART ----
l 29 2019 1[    15][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000
[    52][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[    76][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   100][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   124][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   148][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   172][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   196][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   220][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   244][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   268][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   292][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   316][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   340][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   364][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   388][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[   412][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
[  1184][I][BLEDevice.cpp:577] getAdvertising(): create advertising
[  1208][I][task.hpp:49] Task(): creating ComponentUpdateTask: ADC Battery
[  1215][I][task.hpp:129] ComponentUpdateTask(): creating ComponentUpdateTask: ADC Battery
[  1226][I][task.hpp:72] begin(): Created task ADC Battery, result 1
[  3391][I][senseshift.cpp:21] postEvent(): [application] Event dispatched at 3391: connected (0x3ffc8164)
[  3784][I][BLEDevice.cpp:253] gapEventHandler(): ESP_GAP_BLE_AUTH_CMPL_EVT
[ 11227][I][senseshift.cpp:21] postEvent(): [application] Event dispatched at 11227: battery_level (0x3ffc818c)
[ 21226][I][senseshift.cpp:21] postEvent(): [application] Event dispatched at 21226: battery_level (0x3ffc818c)
[ 31226][I][senseshift.cpp:21] postEvent(): [application] Event dispatched at 31226: battery_level (0x3ffc818c)
---- Closed the serial port /dev/tty.SLAB_USBtoUART ----

This comment was marked as off-topic.

@walterleonardo
Copy link
Author

IMG_6995

@leon0399 leon0399 removed the sweep Assigns Sweep to an issue or pull request. label Jun 19, 2024
@leon0399 leon0399 changed the title Sweep: Battery level is not show in PlayerBhaptic app Battery level is not show in PlayerBhaptic app Jun 19, 2024
@leon0399 leon0399 added the bug Something isn't working label Jun 19, 2024
@leon0399 leon0399 changed the title Battery level is not show in PlayerBhaptic app Bug: Battery level is not show in PlayerBhaptic app Jun 19, 2024
@leon0399
Copy link
Member

@walterleonardo please share what hardware you use for battery management and how it is connected.

@walterleonardo
Copy link
Author

@leon0399
Copy link
Member

leon0399 commented Jun 21, 2024

Sorry for the inconvenience. Unfortunately, web-flashed firmware and Diagrams now use different ways to measure battery levels.
In web-flasher firmware configured to use analog pin 36 with voltage divider 37k and 100k ohms
The MAX1704* circuit in the diagram is missing in the 0.7.0 release candidates.

Unfortunately, until I re-implement this chip, you will either:

  1. use 0.6.0 and modify some code with PlatformIO IDE to use MAX1704* chip
  2. modify hardware to use a voltage divider

I can help you with the code if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants