Was there any thinking of getting rid of the old power (and being able to get rid of the old transceiver box altogether) and supplying power to the handset direct by way of a new means?
I have to thank you for asking this question, because it got me seriously thinking about it again.
I did a lot of searching/reading about li-ion battery charging components/circuits, how to deal with charging multiple cells that are connected in series (I need 3 cells in series to get to the operating voltage range of the handset), how to support external power to the project while simultaneously charging the batteries, then switch to battery power when external power is disconnected, etc.
Here's some of the info I was finding:
I was already starting to research components (TP4056 boards, DC-DC isolating converters, P-FETs, etc) and trying to come up with a plan to prototype. While I was searching for Li-Ion battery cell holders, I stumbled upon this:
LBB-3v2 3 x 18650 Lithium Battery Charger Board/Module 12V with Charge Protect
From what I understand so far, I think this provides exactly what I need! I can use the ~12V output of that board to power the rest of my project. It handles everything else about battery charging, switching between external and battery power, over-charge/over-discharge protection, and it even has some external LED indicator outputs that I can likely adapt to digital logic inputs to my MCU to be aware of when external power is connected, when the batteries are charging, etc.
I think all that's left for me to worry about is:
- Implement my own power on/off functionality.
- Detecting the handset PWR button press is easy (it's basically just a momentary switch that connects to ground when pressed)
- Detecting vehicle ignition is easy (~12V on a specific pin of the vehicle power supply connector for the phone). Combined with the battery board's external power indicator output, I should be able to implement the auto power on/off with ignition.
- Figure out how to properly use the different power modes of the MCU so I can put it into a low power mode while monitoring inputs for power-on.
- Figure out exactly how I'm going to power on/off the rest of the circuit. I think it may be as simple as running the ground of most of my circuit and the handset through a transistor so that I can use a digital output of the MCU to switch the rest of the circuit on/off? The entire circuit + handset draws well under the 1A current limit of a basic transistor, even when in a call and producing the loudest possible volume of sound.
- Figure out how to package everything inside the original transceiver.
- I'll probably try to fit everything except the Bluetooth module inside the aluminum transceiver case. At minimum, that's where the connectors for the external power, handset, and external microphone need to be.
- The Bluetooth module will need to go in the plastic "transportable cover" where original large NiCad battery goes. I hope that a wired connection between the Bluetooth module and the "main" board will not introduce any significant noise issues.
- Finally learn how to design a PCB so that I can build a main circuit board that positions all the connectors exactly where the original transceiver connectors are, with mounting holes positioned to reuse all the original mounting points.
I was briefly concerned that I wouldn't have enough I/O pins on my MCU to add support for all of this because I currently have only 2 unused pins. I'm already monitoring the handset PWR button with one pin, but I need 4 more:
- External power connected indicator input.
- Vehicle ignition on indicator input.
- Battery voltage analog input (so I can calculate/display/report approx. battery level).
- Output to control power on/off of the rest of the circuit.
But then I realized that I'll be freeing up 2 I/O pins for the UART communication with the transceiver that I won't need any more. I think I'll end up using every single pin on this MCU.