Leaf Invertor DC connections
- jerrykco
- Posts: 146
- Joined: Thu Dec 12, 2019 5:32 pm
- Location: United States, Colorado
- Has thanked: 49 times
- Been thanked: 22 times
- Contact:
Leaf Invertor DC connections
What is the correct polarity for the DC HV connections to the invertor.
Jerry Kauffman
jerryk48 at gmail dot com
jerryk48 at gmail dot com
- celeron55
- Posts: 803
- Joined: Thu Jul 04, 2019 3:04 pm
- Location: Finland
- Has thanked: 38 times
- Been thanked: 135 times
- Contact:
Re: Leaf Invertor DC connections
You can always use multimeter diode check.
One polarity will show a diode forward voltage of 0.3 to 1.2V depending on the inverter. This is the reverse polarity and will be a short circuit if you connect the battery this way.
The other polarity will show open circuit after a second of charging the capacitor first. This is the correct polarity for connecting the inverter to a battery.
Measure both ways, make sure you can see both cases and mark accordingly.
That having been said, on the leaf gen2 inverter positive is the one closer to the side, farther from the cooling port. But you don't need to ask.
One polarity will show a diode forward voltage of 0.3 to 1.2V depending on the inverter. This is the reverse polarity and will be a short circuit if you connect the battery this way.
The other polarity will show open circuit after a second of charging the capacitor first. This is the correct polarity for connecting the inverter to a battery.
Measure both ways, make sure you can see both cases and mark accordingly.
That having been said, on the leaf gen2 inverter positive is the one closer to the side, farther from the cooling port. But you don't need to ask.
- jerrykco
- Posts: 146
- Joined: Thu Dec 12, 2019 5:32 pm
- Location: United States, Colorado
- Has thanked: 49 times
- Been thanked: 22 times
- Contact:
Re: Leaf Invertor DC connections

Thanks Celeron55!celeron55 wrote: ↑Mon Mar 23, 2020 3:57 am You can always use multimeter diode check.
One polarity will show a diode forward voltage of 0.3 to 1.2V depending on the inverter. This is the reverse polarity and will be a short circuit if you connect the battery this way.
The other polarity will show open circuit after a second of charging the capacitor first. This is the correct polarity for connecting the inverter to a battery.
Measure both ways, make sure you can see both cases and mark accordingly.
That having been said, on the leaf gen2 inverter positive is the one closer to the side, farther from the cooling port. But you don't need to ask.
When I took electronics in the Army's Signal Core school after being drafted during the Vietnam war in 1969 for 9 months, this test wasn't part of anything I learned. After the war I pursued a career in Software Development and later Project management. Thanks for the remedial education. I love learning new stuff. I will test it tonight!
Jerry Kauffman
jerryk48 at gmail dot com
jerryk48 at gmail dot com
- clanger9
- Posts: 203
- Joined: Mon Oct 28, 2019 7:41 am
- Location: Chester, UK
- Been thanked: 1 time
- Contact:
Re: Leaf Invertor DC connections
On the course, Damien taught us how to check with a bulb & battery.
A picture might help - hopefully I've got this right!
A picture might help - hopefully I've got this right!
-
- Posts: 209
- Joined: Fri Jan 04, 2019 8:42 am
- Location: United Kingdom
- Has thanked: 71 times
- Been thanked: 3 times
Re: Leaf Invertor DC connections
Image taken from different site
- Attachments
-
- leaf polarity 1.png (188.03 KiB) Viewed 8563 times
-
- Posts: 260
- Joined: Sat Jan 12, 2019 12:39 am
- Location: UK
- Been thanked: 1 time
Re: Leaf Invertor DC connections
I can vouch for this being correct. I put similar markings on mine.
-
- Posts: 863
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 518 times
- Been thanked: 50 times
- Contact:
- jerrykco
- Posts: 146
- Joined: Thu Dec 12, 2019 5:32 pm
- Location: United States, Colorado
- Has thanked: 49 times
- Been thanked: 22 times
- Contact:
Sequence of Starting up the Inverter with HV
Happily and correctly because of your help clanger9 , zippy500, and celeron55, I connected HV to the Leaf Inverter and nothing blew up.
My question is what is the sequence to bring the HV on line with the v3 Controller (I'm and flipping relay switches by hand). I noticed that I can get two different sets of errors, depending on the sequence I try.
If I turn on the Battery after I start the the inverter, I get PRECHARGE-STOP.
If I turn on the Battery before the the powering up the v3 controller then I get LOWRESAMP-DISPLAY.
Searching both errors I did the following.
(LOWRESAMP). Verified that the twisted pair wiring seems correct. Tried to measure EX but I don't know what I need to measure it. (to ground or to !EX?) and am I looking for a dc voltage or a signal? (I don't have a scope).
(PRECHARGE). Verified the R values of R40=509Ω, R41=9.98KΩ, R42=3.31KΩ, R44=3.30KΩ.
And help or advice would be appreciated!
My question is what is the sequence to bring the HV on line with the v3 Controller (I'm and flipping relay switches by hand). I noticed that I can get two different sets of errors, depending on the sequence I try.
If I turn on the Battery after I start the the inverter, I get PRECHARGE-STOP.
If I turn on the Battery before the the powering up the v3 controller then I get LOWRESAMP-DISPLAY.
Searching both errors I did the following.
(LOWRESAMP). Verified that the twisted pair wiring seems correct. Tried to measure EX but I don't know what I need to measure it. (to ground or to !EX?) and am I looking for a dc voltage or a signal? (I don't have a scope).
(PRECHARGE). Verified the R values of R40=509Ω, R41=9.98KΩ, R42=3.31KΩ, R44=3.30KΩ.
And help or advice would be appreciated!
Jerry Kauffman
jerryk48 at gmail dot com
jerryk48 at gmail dot com
-
- Posts: 656
- Joined: Sat Oct 05, 2019 6:50 pm
- Location: Northern California, USA
- Been thanked: 2 times
- Contact:
Re: Leaf Invertor DC connections
LOWRESAMP comes from a bad resolver signal. https://openinverter.org/wiki/Errors
I'm not familiar with resolvers but maybe you could scope the sine and cosine pins? That ought to give a nice signal of some sort assuming you have the resolver connected. Maybe someone with a Leaf motor could chime in?
Precharge error occurs if udc is less than udcsw after 5 seconds.
Do you have a precharge resistor?
I'm not familiar with resolvers but maybe you could scope the sine and cosine pins? That ought to give a nice signal of some sort assuming you have the resolver connected. Maybe someone with a Leaf motor could chime in?
Precharge error occurs if udc is less than udcsw after 5 seconds.
Do you have a precharge resistor?
- johu
- Site Admin
- Posts: 6640
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 347 times
- Been thanked: 1501 times
- Contact:
Re: Leaf Invertor DC connections
!EX = GND so yet can scope EX to ground. You should see a 4.4kHz sine with 9V peak-peak amplitude.
But sometimes I get lowresamp in my car, I think the detection might need some work
But sometimes I get lowresamp in my car, I think the detection might need some work
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Leaf Invertor DC connections
Exactly from time to time I have the same error on beginning - lowresamp, but then if I push throttle, car goes without any problems.
- jerrykco
- Posts: 146
- Joined: Thu Dec 12, 2019 5:32 pm
- Location: United States, Colorado
- Has thanked: 49 times
- Been thanked: 22 times
- Contact:
Re: Leaf Invertor DC connections
Thanks, Johannes!
I have a cheap USB digital scope I can use to test this tonight.
BUT... I still would like to know the proper sequence to power on the INVERTER and connect the HV BATTERY.
1. Power the Inverter and connect to the WiFi Web Interface
2. Connect the BATTERY in Pre-Charge mode (using 100 Ohm Resister)
3. Wait 10 Seconds (and using a Volt Meter measure the DC Voltage into the inverter)
4. Connect the Main Contactor (bypassing the 100 Ohm resister)
5. Apply 12V DC to the Start line
6. Start Manual mode via WiFi
ETC......
This is what I have been doing. But should I have connected the HV DC Battery before ever applying the 12V to power up the Inverter?
Jerry Kauffman
jerryk48 at gmail dot com
jerryk48 at gmail dot com
-
- Posts: 656
- Joined: Sat Oct 05, 2019 6:50 pm
- Location: Northern California, USA
- Been thanked: 2 times
- Contact:
Re: Leaf Invertor DC connections
Step 5 is not necessary if you're starting via the wifi.
You should connect HV first, else you will get the precharge error.
Or if you like you can just change udcsw to avoid the error - set it to 0 or something.
Then connect in any order you like. I believe HV connection is not problematic as long as you let it precharge first?
You should connect HV first, else you will get the precharge error.
Or if you like you can just change udcsw to avoid the error - set it to 0 or something.
Then connect in any order you like. I believe HV connection is not problematic as long as you let it precharge first?
- jerrykco
- Posts: 146
- Joined: Thu Dec 12, 2019 5:32 pm
- Location: United States, Colorado
- Has thanked: 49 times
- Been thanked: 22 times
- Contact:
Re: Leaf Invertor DC connections
Yes, I always pre-charge first.,
Thanks for the help Isaac96!
Jerry Kauffman
jerryk48 at gmail dot com
jerryk48 at gmail dot com
- jerrykco
- Posts: 146
- Joined: Thu Dec 12, 2019 5:32 pm
- Location: United States, Colorado
- Has thanked: 49 times
- Been thanked: 22 times
- Contact:
Re: Leaf Invertor DC connections
I think it's my resolver wiring.
EX Signal looks good.
Jerry Kauffman
jerryk48 at gmail dot com
jerryk48 at gmail dot com
- johu
- Site Admin
- Posts: 6640
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 347 times
- Been thanked: 1501 times
- Contact:
Re: Leaf Invertor DC connections
Yes looks fine to me. What do you get on the sin/cos return lines? Be aware amplitude will change here as you turn the shaft.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- johu
- Site Admin
- Posts: 6640
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 347 times
- Been thanked: 1501 times
- Contact:
Re: Leaf Invertor DC connections
Just checked the resolver code:
So it records the minimum and maximum amplitude of the the sin signal. But if the motor is stationary (which it usually is after startup) and happens to be in a position where the sin-amplitude is low, it will assert the LORESAMP warning for no reason. Gotta work on that...
Code: Select all
int sin = adc_read_injected(ADC1, sinChan);
int cos = adc_read_injected(ADC1, cosChan);
minSin = MIN(sin, minSin);
maxSin = MAX(sin, maxSin);
//Wait for signal to reach usable amplitude
if ((maxSin - minSin) > MIN_RES_AMP)
{
if (invert)
return SineCore::Atan2(-sin, -cos);
return SineCore::Atan2(sin, cos);
}
else
{
if (0 == startupDelay)
{
ErrorMessage::Post(ERR_LORESAMP);
}
return 0;
}
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- jerrykco
- Posts: 146
- Joined: Thu Dec 12, 2019 5:32 pm
- Location: United States, Colorado
- Has thanked: 49 times
- Been thanked: 22 times
- Contact:
Re: Leaf Invertor DC connections
I'll check that tonight and let you know.
Jerry Kauffman
jerryk48 at gmail dot com
jerryk48 at gmail dot com