I was reading an article on the prospects of using electric vehicle batteries to help smooth out grid demand, especially in California. That got me thinking.
For this to work, the car charger would have to control somehow if it was providing power to, or asking for power from the battery in the car. How does this happen? I’m not asking how the electronics talk to each other, I mean how do we control which way the electricity goes.
My first thought is the electricity would flow towards the side with lower resistance (or voltage or something like that, I’m no electrical engineer.) But then I thought about my wireless headphones. They are an example of one battery charging another and the charging cradle will happily drain its battery down to a very low state in order to charge up the actual headphones. Perhaps the wireless headphone thing is a bit of smoke and mirrors and the battery in the charging cradle is actually “stronger” even when it says it is nearly depleted…
Anyway, how do we control which way the electricity flows?
In: 0
These are active electronics not passive devices. The electricity isn’t going to follow its normal rules and flow according to resistance because there are active electronics in there changing the paths available.
The actual implementation in the car charger is going to be complicated but a [Boost Converter](https://upload.wikimedia.org/wikipedia/commons/thumb/3/39/Boost_conventions.svg/2880px-Boost_conventions.svg.png) should cover similar points for you.
A boost converter takes a lower DC voltage and bumps it up to a higher voltage. Normally current won’t flow from low to high voltage only from high to low so there’s some trickery required here. That switch in the bottom center is a transistor and is controlled by a tiny processor which uses it to charge up the inductor then opens up forcing the inductor to ram its current into the capacitor raising the voltage, then it closes again to repeat. It does this tens of thousands to millions of times per second to get just the right voltage on the output
If I want to be able to bump up the voltage from a 3.7V battery to charge a phone at 5V but also receive 5V and bump it down then slap a [buck converter](https://upload.wikimedia.org/wikipedia/commons/thumb/5/52/Buck_operating.svg/1280px-Buck_operating.svg.png) pointing the otherway and put a switch in front of each one
Now with two fairly simple circuits you can take 5V in and buck it down to charge a 3.7V battery or take 3.7V in and boost it up to charge a phone at 5V
There would need to be communication to the processor controlling these two circuits so it knows what you want it to do, but it is able to achieve it.
Doing it with car chargers likely involves fancier inverter circuits as they’re going from AC to DC or DC to AC, but the core concept of “use inductors and transistors to make electrons do what *you* want” remains the same as is critical for basically everything you use that isn’t a toaster
Latest Answers