digitaldanny / AudioEffectsGlove

A hand tracking glove that controls parameters of various audio effects.
1 stars 0 forks source link

Battery State of Charge Research #26

Closed digitaldanny closed 3 years ago

digitaldanny commented 3 years ago

Is your feature request related to a problem? Please describe. The user needs a way to gauge how much battery the glove has remaining. This research aims to find possible solutions to capturing charge remaining in a battery.

Describe the solution you'd like Research the following:

Describe alternatives you've considered N/A

Additional context N/A

digitaldanny commented 3 years ago

Power Gauging Methods

State of Charge Determination

State of Charge Notes:

digitaldanny commented 3 years ago

This YouTube video by EEVblog discusses the LM3914 Dot/Bar Display Driver IC. A solution based on this IC would be to make a circuit using several comparators and a voltage ladder that powers 5-10 LEDs. Each LED would indicate an additional 10-20% battery charge. Below are some comparisons between the microcontroller and LM3914-like approaches.

LCD and microcontroller

Pros:

Cons:

LEDs and LM3914-like circuit

Pros:

Cons:

digitaldanny commented 3 years ago

Showing a few LEDs won't look as nice as having an LCD output.

A possible solution to this would be to use an additional ADC pin on the microcontroller and an additional 8x1 analog mux to occasionally read the various voltage thresholds from the voltage ladder. This info could be used to find the battery percentage and update the LCD, but it also eliminates the issue of high CPU usage due to the ADC frequently capturing the current being drawn.

digitaldanny commented 3 years ago

A possible solution to this would be to use an additional ADC pin on the microcontroller and an additional 8x1 analog mux to occasionally read the various voltage thresholds from the voltage ladder. This info could be used to find the battery percentage and update the LCD, but it also eliminates the issue of high CPU usage due to the ADC frequently capturing the current being drawn.

At this point, I might as well just use 1 ADC pin on the microcontroller to read the battery voltage. This will give me a more accurate battery percentage than the 25% increments of using 4 comparators in a circuit, and it will also save PCB space.

digitaldanny commented 3 years ago

Reading 3.3V - 4.2V on 3.3V microcontroller