Page 2 of 6

Re: Tesla Model 3 Charger

Posted: Fri Jul 19, 2019 4:42 pm
by Jack Bauer

Re: Tesla Model 3 Charger

Posted: Fri Jul 19, 2019 5:18 pm
by tom91
Some very good progress Damien, hats off.
Very janky setup as usual, might want to make a bit more permanent rectification setup.

You tried changing some values in 0x22A to see if you can request less current?

Re: Tesla Model 3 Charger

Posted: Sat Jul 20, 2019 7:24 am
by Jack Bauer
Thanks Tom. Lots more testing to do. Regards ipc can here is a copy of a comment on the above video that seems to shed some light :

Inter Process Communication (IPC) can use the CAN protocol over a half duplex single ended bus, without the usual Transceivers (that are used to convert to a differential bus topology for noise immunity and low EMI), by simply hardware OR'ing the TX lines onto a single data line. Used over short distances with system of a common ground it allows all the usual CAN goodness (built in checksums, automatic bus arbitration and multi-drop architecture) without the additional parts count for the full CAN physical layer. As Automotive spec micro-processors now pretty much all include multiple CAN nodes in hardware, it makes sense to use that rather than alternative IPC options (classic UART, SPI, I2C etc)


See here: https://www.mikrocontroller.net/attachm ... AP2921.pdf

Re: Tesla Model 3 Charger

Posted: Sun Jul 21, 2019 7:31 pm
by Jack Bauer
Message 0x22a on ipc can at 10ms intervals. Byte 1 , bit 2 is dcdc enable. set it to one and the dcdc wakes up. set it to 0 and it shutsdown. Released a first cut at a pcs controller on github. Just a modification to the existing gen3 charger controller.
https://github.com/damienmaguire/Tesla-Model-3-Charger

Re: Tesla Model 3 Charger

Posted: Wed Jul 24, 2019 9:53 am
by Jack Bauer
Just ordered some prototype boards from these guys : https://jlcpcb.com/
We'll see what they turn out like. If any one on here has a PCS and wants to play along let me know and I'll ship you a controller for free.

Re: Tesla Model 3 Charger

Posted: Thu Jul 25, 2019 5:31 am
by Teknomadix
Jack Bauer wrote: Wed Jul 24, 2019 9:53 am If any one on here has a PCS and wants to play along let me know and I'll ship you a controller for free.
Yes! Have a 3 PCS, Would love to play along! Don't mind paying shipping either.

Re: Tesla Model 3 Charger

Posted: Thu Jul 25, 2019 7:05 am
by Jack Bauer
I'll ping you once I get the controllers built. Will be nice to have someone else helping out.

Re: Tesla Model 3 Charger

Posted: Thu Jul 25, 2019 12:12 pm
by Jack Bauer
Need a little help on some can decoding. I had been looking for a message from the pcs with the 12v system voltage. None seemed to show itself. Then I observed message 0x424 pop up when the dcdc enable bit in 0x22a is sent. Here are a few samples of 0x424 with various 12v voltages applied. Anyone want to guess how the 12v is encoded here?

12v applied : 2b 80 2d 0d 01 00 00 a0
13v applied : 2b 80 4a 35 01 bc 0b a0
14v applies : 2b 80 65 5d 01 bc 0b a0
15v applied : 2b 80 7f 7d 01 bc 0b a0

Re: Tesla Model 3 Charger

Posted: Fri Jul 26, 2019 9:29 am
by celeron55
It might simply be a 10 to 20 V range mapped into 0...0xffff just to squeeze more resolution out of two bytes, as anything below 10V is a dead battery anyways.

Re: Tesla Model 3 Charger

Posted: Fri Jul 26, 2019 10:55 am
by tom91
Byte 2 LSB Byte 3 MSB scaling 0.0001 offset 11.613

Just from the rought data you shared. Quite a nice linear line in excel when plotted.

Re: Tesla Model 3 Charger

Posted: Fri Jul 26, 2019 2:32 pm
by DeeFulls
I think doing byte 4 MSB, byte 3 LSB, with a similar 0.0001 scaling might be a little closer. I would guess that its then either:

1) a roughly 11.7V offset (11.66?) or
2) a 12V offset and then maybe some flag (byte 6 or 7? both?) about whether or not its added or subtracted
Jack Bauer wrote: Wed Jul 24, 2019 9:53 am If any one on here has a PCS and wants to play along let me know and I'll ship you a controller for free.
I may have access to a PCS in the coming weeks, I'd love to help if I do end up getting my hands on it.

Re: Tesla Model 3 Charger

Posted: Fri Jul 26, 2019 5:32 pm
by Jack Bauer
Thanks guys:) As 0x424 only appears when the dcdc is starting or started I can't get many samples as I'm not properly starting the dcdc as yet due to not having a bench battery pack yet.

Here are 3 dcdc startup attempts with a fixed 12v : https://github.com/damienmaguire/Tesla- ... tempts.csv
and 3 with varying voltage : https://github.com/damienmaguire/Tesla- ... von_dc.csv

Re: Tesla Model 3 Charger

Posted: Wed Jul 31, 2019 3:18 pm
by Jack Bauer
Blank pcbs have arrived for the pcs controller:)

Re: Tesla Model 3 Charger

Posted: Sat Aug 03, 2019 1:25 pm
by Jack Bauer
PCS Controller working perfectly:) Also my first oven reflow pcb so double happy. Now for some software....

Re: Tesla Model 3 Charger

Posted: Fri Oct 11, 2019 5:12 pm
by jon volk
What are the physical dimensions of this unit? The Tesla unit, not the controller. :)

Re: Tesla Model 3 Charger

Posted: Fri Oct 11, 2019 6:00 pm
by Jack Bauer
Not sure. Will measure it and report back. Not much larger than a Gen 2 charger.

Re: Tesla Model 3 Charger

Posted: Thu Jan 30, 2020 1:11 pm
by muehlpower
Are there any News? Availability?

Re: Tesla Model 3 Charger

Posted: Fri Jan 31, 2020 7:44 am
by Jack Bauer
Currently being installed in the BMW E46 Touring project by our vehicle integration team :lol:

Re: Tesla Model 3 Charger

Posted: Mon Feb 03, 2020 3:37 pm
by ScythianNite
weird question, but does the Tesla 3 charger seem to have the BMS for the model 3 batteries integrated? or is that another system in the 3?

Re: Tesla Model 3 Charger

Posted: Tue Feb 04, 2020 10:12 pm
by muehlpower
Does anyone have any idea where to get the right connectors? I made a drawing with tape measure accuracy. If anyone is interested!

Re: Tesla Model 3 Charger

Posted: Tue Mar 03, 2020 9:49 pm
by arturk
Damien, Are you planning to share controller's software the on GitHub?
I have one of those chargers and would love to play with it.

Re: Tesla Model 3 Charger

Posted: Tue Mar 03, 2020 10:58 pm
by Kevin Sharpe
arturk wrote: Tue Mar 03, 2020 9:49 pm Damien, Are you planning to share controller's software the on GitHub?
no, he's planning on retiring to Lanzarote on the proceeds from his closed source Tesla parts empire ;)

Watch the Tesla Battery hacking project which includes all components in the penthouse;

viewtopic.php?f=10&t=577

Re: Tesla Model 3 Charger

Posted: Tue Mar 03, 2020 11:03 pm
by Kevin Sharpe
ScythianNite wrote: Mon Feb 03, 2020 3:37 pm weird question, but does the Tesla 3 charger seem to have the BMS for the model 3 batteries integrated?
No

Re: Tesla Model 3 Charger

Posted: Wed Mar 04, 2020 12:41 am
by arturk
Kevin Sharpe wrote: Tue Mar 03, 2020 10:58 pm no, he's planning on retiring to Lanzarote on the proceeds from his closed source Tesla parts empire ;)
Funny ;)
Kevin Sharpe wrote: Tue Mar 03, 2020 10:58 pm Watch the Tesla Battery hacking project which includes all components in the penthouse;
viewtopic.php?f=10&t=577
This one is very interesting but seems to be focusing on BMS currently.

I was referring to "Tesla-Model-3-Charger" project on GitHub
https://github.com/damienmaguire/Tesla-Model-3-Charger
since Damien reported recently it was being installed in " BMW E46 Touring"
Jack Bauer wrote: Fri Jan 31, 2020 7:44 am Currently being installed in the BMW E46 Touring project by our vehicle integration team :lol:
I have this Model 3 PCS and would love to use it on my project but did not find software on GitHub :(
Is this on hold? Not ready?

Re: Tesla Model 3 Charger

Posted: Wed Mar 04, 2020 7:34 am
by Jack Bauer
The reason for no software on github is I have not written any as yet. Reason for that is in order to do further testing I need HVDC,AC, cooling and 12v applied and the easiest way to do that is install it in a car which is still a work in progress. Last bench testing saw the dcdc waking up. It's not forgotten but I'm just one guy:)