Leaf Gen1 Charger Upgrade

Nissan Leaf/e-NV200 drive stack topics
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

New project : (Can someone please update the Damien's task list thread) Replace the busted 3.3kw charger in my wife's 2011 Leaf with a 10kw Tesla Gen2. It is valentine's day after all and I could probably buy 2 or 3 Tesla charger for the price of a silly 3.3kw leaf version. This enterprise will hinge around CAN messages. Updates as they happen:)
I'm going to need a hacksaw
JaniK
Posts: 391
Joined: Sun Aug 25, 2019 12:39 pm
Location: Finland
Has thanked: 49 times
Been thanked: 10 times

Re: Leaf Gen1 Charger Upgrade

Post by JaniK »

Do you think a 6,6kw Leaf charger would be accepted by the Leaf without modification? Just asking because it has many times been on my mind for my daily driver.
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
MattsAwesomeStuff
Posts: 897
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 290 times
Been thanked: 177 times

Re: Leaf Gen1 Charger Upgrade

Post by MattsAwesomeStuff »

Jack Bauer wrote: Fri Feb 14, 2020 5:09 pmIt is valentine's day after all
She only married you like, a year ago. She knew exactly what she was in for. :D
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

I have no idea if the 6.6kw would be a fit. Probably not in the Gen1 I would guess.

So first up I found a source of some CAN dbc files for the Leaf : https://github.com/damienmaguire/leaf_can_bus_messages

Probably pointless asking but does anyone know the messages specific to the charger?
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

The main problem is the car is in limp mode (limited to 30mph) with the dtc as in the picture. My mains need now is to get it out of limp.
Attachments
2020-02-14 15.36.41.png
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

So turns out a gen 1 leaf charging port is smarter then me. Who knew. Our Nissan friends decided to add a 2k7 resistor between ground and proximity and measure that to ensure someone like me hasnt been messing with the wiring. Oh and of course wrap it in tape to keep the wet in. Oh no! the resistance of the wet has pulled the proximity line out of spec! SHUTDOWN! SHE'S GONNA BLOW!!!
Attachments
2020-02-16 11.33.13.jpg
I'm going to need a hacksaw
JaniK
Posts: 391
Joined: Sun Aug 25, 2019 12:39 pm
Location: Finland
Has thanked: 49 times
Been thanked: 10 times

Re: Leaf Gen1 Charger Upgrade

Post by JaniK »

So did you dry it and get it working now?
Thats good to know.. no more pressure washing engine bay...
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

Yes. Up and running. So in order to work out the messages required to replace the charger I'll need a CAN "man in the middle" board. Looking around the web there seem to be quite a few but of course none actually available for sale and naturally none opensource. Oh well. Guess I'll just give up....

...yeah right! Time to fire up Designspark:)
I'm going to need a hacksaw
zippy500
Posts: 182
Joined: Fri Jan 04, 2019 8:42 am
Location: United Kingdom
Has thanked: 31 times
Been thanked: 3 times

Re: Leaf Gen1 Charger Upgrade

Post by zippy500 »

Be good if someone could make a interface board to use the charger standalone, I'm sure there a lot of unused leaf chargers sitting on peoples garage floors
rgjones
Posts: 5
Joined: Sun Feb 16, 2020 5:47 pm
Location: United States

Re: Leaf Gen1 Charger Upgrade

Post by rgjones »

Id like to volunteer to help with FW on a MITM board. Have worked on proprietary version using TI EK123 processor which worked great, but would love to see a small formfactor, low cost opensrc board that runs off 12V automotive.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

Thanks for that. Plan is to use an STM32F105 as it is dual canbus and plenty fast.
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

So after a week of unsuccessfully trying to contact several people who claim to sell a can "man in the middle" board, I have thrown together a quick design based on an STM32F105. Uses an Ampseal 8 pin connector. One problem I have is I can't seem to identify the BOOT1 pin on the '105. Any ideas?

https://github.com/damienmaguire/CAN-BU ... The-Middle

Now just need to get some software up and running. This could also be used for Leaf battery swaps:)
I'm going to need a hacksaw
kiwifiat
Posts: 99
Joined: Sat Dec 22, 2018 9:39 pm
Location: Vancouver, Canada
Been thanked: 10 times

Re: Leaf Gen1 Charger Upgrade

Post by kiwifiat »

Jack Bauer wrote: Sun Feb 23, 2020 4:00 pm One problem I have is I can't seem to identify the BOOT1 pin on the '105. Any ideas?
Maybe section 14.3.2 of AN2606 is your problem:

"14.3.2 Bootloader unavailability on STM32F105xx/STM32F107xx devices
with a date code below 937
Description
The bootloader cannot be used if the USART1_RX (PA10), USART2_RX (PD6, remapped),
CAN2_Rx (PB5, remapped), OTG_FS_DM (PA11), and/or OTG_FS_DP (PA12) pin(s) are
held low or left floating during the bootloader activation phase.
The bootloader cannot be connected through CAN2 (remapped), DFU (OTG FS in Device
mode), USART1 or USART2 (remapped).
On 64-pin packages, the USART2_RX signal remapped PD6 pin is not available and it is
internally grounded. In this case, the bootloader cannot be used at all.
Workaround
For 64-pin packages
None. The bootloader cannot be used. "

It would seem from the datasheet neither 64 or 100 pin variants have boot1.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

Great thanks. Wasn't sure if I was missing something.
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

Mitm board based on stm32f105 is in production.
Attachments
Produce_DanZhi.SMT_Snapshot.Top.2707872A_Y26.SMT020022922309.png
I'm going to need a hacksaw
User avatar
Bigpie
Posts: 1594
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 303 times

Re: Leaf Gen1 Charger Upgrade

Post by Bigpie »

Damn it. This gives me an idea for another project, now I'm thinking my car doesn't have automatic headlights. Are any of the stm32 io pins on the breakout pins?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

There are 2 leds and usart one is on a header. Take a look at the schematic on github.
I'm going to need a hacksaw
User avatar
Bigpie
Posts: 1594
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 303 times

Re: Leaf Gen1 Charger Upgrade

Post by Bigpie »

I'm copying the schematic into Kicad so I can learn a little and try and add some more io pins to the PCB design. I don't have a Windows machine for DesignSpark and Kicad seems to be a well used alternative.

Anyway, it's probably me and not you doing it wrong, but R7 on the schematic and pbc doesn't seem to be connected to Boot 1 pin. I've very little experience with stm32 but I thought to write to it BOOT1 needs to be pulled to gnd and BOOT0 to 3.3v
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

Yeah I'd love to learn Kicad. Would you mind sharing when done? The STM32F105 doesnt have a boot1 pin hence the non connection. I forgot to delete it!
I'm going to need a hacksaw
User avatar
Bigpie
Posts: 1594
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 303 times

Re: Leaf Gen1 Charger Upgrade

Post by Bigpie »

Don't mind at all, I was hoping to post it for feedback as the few simple boards I've designed I've used EasyEDA online :D

I'm miss reading BOOT1 is PB2, will delete.

Would you be able to export PDFs of the other board layers? I want to try and get exactly the same layout to begin with. EDIT NM, opened the gerber files from your repo.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
Bigpie
Posts: 1594
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 303 times

Re: Leaf Gen1 Charger Upgrade

Post by Bigpie »

I've got the schematic into Kicad now, I've not got round to the PCB yet but I've pushed to my repo if it's any use https://github.com/jamiejones85/CAN-BUS ... The-Middle
Attachments
MITM_V1.pdf
(122.29 KiB) Downloaded 141 times
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

Thank you:)
I'm going to need a hacksaw
User avatar
Bigpie
Posts: 1594
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 303 times

Re: Leaf Gen1 Charger Upgrade

Post by Bigpie »

Would anyone mind having a look over my Kicad port of JB's MITM board? Any feedback or improvements would be great. New to this :D
Attachments
CAN_MITM_V1_Kicad.png
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Leaf Gen1 Charger Upgrade

Post by Jack Bauer »

I would move X1 down closer to the load caps c2 and C3. Also try not to have right angles on tracks. Lovely work:)
I'm going to need a hacksaw
User avatar
Bigpie
Posts: 1594
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 303 times

Re: Leaf Gen1 Charger Upgrade

Post by Bigpie »

Thanks :)

I'll make the changes, I might also change the ampseal so I can breakout more of the IO pints.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Post Reply