DIY Electric Car Forums banner

Tesla 10Kw Open Source Charger Controller

1 reading
130K views 645 replies 35 participants last post by  Kevin Sharpe  
#1 ·
So I've had a first look at the Tesla Gen 2 10Kw charger. Now , making one of these work as is with CAN messages is near on impossible due to the level of integration of the charger and the car. So I decided to have a look inside. Seems it uses 3 x 3.5kw modules linked back to a central logic board. Each modules connects to the logic pcb with 8 wires.

So far i have identified GND , +12v , +5v and a 500k canbus. Two lines seems to carry analog signals and one seems to be open circuit. Attached see some CAN captures from this internal network. I may be wrong but I bet it will be easier to work out these messages and get the individual charger modules to wake up.

So plan is to design a little breakout board so I can monitor the signals on a live car during the charge process and log the CAN messages.

Stay tuned:)
 

Attachments

#106 ·
Basic Tesla charger question: Does the Tesla DC fast charge(and possible other DC fast charge protocols) go through the charger? If so, can it be enabled as well as the AC charging functions?
In general, no. I don't have in-depth knowledge of the Tesla super charger but how fast charging tends to work is that the car has contactors that connect the car's battery straight to the DC fast charger itself. The fast charger then has all the charger goodies in it and handles the current and voltage limiting outside the car. The car reads voltage and current itself and sends commands to the external charger about what it would like to do. In an emergency the car always has the option to open its contactors. So, the on-board charger really isn't involved in all this but the battery management system most certainly is. Now, that all holds for CHAdeMO which I do know about. But, I can't imagine the super charger is any different.
 
#107 ·
I suspect from the wiring diagrams and the complexity of the charger logic board that the charger handles the Supercharging control. One question for Colin : now can I tell the frequency of a message in Savvycan? going to attempt to write a simple program to get the charger to ramp up to 2A and stay there.
 
#119 ·
Uploaded 3phase_command_msgs_22kw.csv the github. We did a capture in my friends car today running from a 22kw 3 phase public evse. Car has dual chargers. Interesting thing is the command messages are identical for each power module. Should be very easy to run at full power.

Another finding today is the charger will work down to less than 150v and current increases with decreasing voltage for the same setpoint.
 
#120 ·
Damien, did you command 150V?

Otherwise the charger is just hitting the constant current as defined in the control message.

how ever one of the parameters that get sent to the charger will contain the AC current limit.

Can you ask your friend if you can monitor the charger when you plug in the wall adapter charger, should be limited to 13Amp ac.
 
#127 ·
Well, it'd probably be most efficient to use one of the timer/counter pins (TIOA or TIOB pins). They can count pules and such for you which makes it a lot easier - just let the hardware figure out the pilot duty cycle for you.

Otherwise any digital pin could work but you'd have to very quickly check the state of the pin several times per second. Or, integrate it into an analog signal and then read that signal with one of the analog pins.

So, I guess that's three options. Doing TC mode with a TIOA/B pin is a bit more complicated in software but not so bad. Probably the easiest in software option is to turn the PWM pilot signal into an analog signal but that's more hardware for you to put on the board.

Oh, and congrats on getting it to work! Before you know it you'll have the whole car running on custom logic boards. Autopilot next, right!?
 
#123 ·
#124 ·
Thanks to Tom's software and a few tweaks we can now turn the charger on and off , set a setpoint voltage and current. When the battery hits the voltage setpoint the charger ramps the current down to maintain the voltage. I suspect there is lots more functionality in here but basically : we got this thing:)
 
#128 ·
Not had a chance as yet to determine the minimum voltage point. Didn't receive any messages back from the charger and didn't have a chance to investigate. Colin, I made a few mods to your charger dbc file and had it working very well with voltages and current and then of course forgot to save it! Will re do it asap. The autopilot logic board is a few weeks away:)

I might do a live stream in the shed with the charger so people can make requests.
 
#134 ·
#136 ·
PCBs ordered for the V1 charger logic board. Also updated the design files over on Github with a few tweaks. Nothing major just tightening up the mounting hole positions and putting in a few headers for critical signals : https://github.com/damienmaguire/Tesla-Charger
 

Attachments