LeftieBiker
Moderator
Posts: 18845
Joined: Wed May 22, 2013 3:17 am
Delivery Date: 30 Apr 2018
Location: Upstate New York, US

Re: Controlling the Leaf Inverter on its own

Have you checked to make sure the transaxle isn't damaged, and that the parking pawl isn't engaged? I don't think that a working transmission would offer enough resistance to stall that motor.
Brilliant Silver 2021 Leaf SV40 W/ Pro Pilot & Protection
2009 Vectrix VX-1 W/18 Leaf modules, & 2 lithium E-bicycles.
BAFX OBDII Dongle
PLEASE don't PM me with Leaf questions. Just post in the topic that seems most appropriate.
ishdeshpa
Posts: 3
Joined: Wed Jul 07, 2021 5:00 pm
Delivery Date: 07 Jul 2021

Re: Controlling the Leaf Inverter on its own

We fixed it. The parking actuator was engaged, so we had to manually disengage it as we are not including the electric parking brake module in the car. Thanks for your help anyways!
LeftieBiker
Moderator
Posts: 18845
Joined: Wed May 22, 2013 3:17 am
Delivery Date: 30 Apr 2018
Location: Upstate New York, US

Re: Controlling the Leaf Inverter on its own

Looking at your website, I see this:
2.2 seconds to 60 mph
170 mph
100 miles on charge
I see this conceptual mistake in the electric bike forums a lot: you look at the capabilities of a drivetrain with various configurations, and think that they can be combined - added together, if you will. The reality is that when you are looking at high acceleration, high top speed, and high energy efficiency, you can only have ONE of those three things in a given configuration. Sometimes, with a lot of work, you can manage two of them - although only rarely. Here are the reasons:

* High top speeds combined with high acceleration are incompatible with motors like those used in the Leaf, because the low gearing required to get the acceleration boost will also lower the top speed. Over-revving the motor enough to get the lost speed back will likely get you a destroyed motor, so unless you start with a motor capable of both high torque AND ultra-high RPM, you have to choose between great acceleration and a high top speed.

* Both high acceleration and high top speed require enormous amounts of energy, both in discharge amperage and total amount of energy. A Leaf pack definitely won't provide you with either, and even a custom-built pack is going to have to be huge, with a very high C rate*, to provide enough power for both sub 3 second 0-60 and (especially) 170MPH top speed. Realistically, I think that you need a goal of maybe 120-130MPH, and to combine that with the acceleration you desire, you will need a two speed transmission, as Porsche uses in the Taycan. Since it looks like you are going with a small body, that will still require a battery pack with a VERY high energy density, and since packs like that tend to be not extremely safe...

* C rate is the discharge (or charge) rate, expressed as a multiple of the pack's capacity. So a 40kwh pack with a 2C discharge rate can produce 80kw of power...for less than 30 minutes before it's depleted.
Brilliant Silver 2021 Leaf SV40 W/ Pro Pilot & Protection
2009 Vectrix VX-1 W/18 Leaf modules, & 2 lithium E-bicycles.
BAFX OBDII Dongle
PLEASE don't PM me with Leaf questions. Just post in the topic that seems most appropriate.
User avatar
Dala
Forum Supporter
Posts: 422
Joined: Sun Oct 28, 2018 11:24 am
Delivery Date: 01 Jan 2015
Leaf Number: 316851
Location: Finland
Contact: Website

Re: Controlling the Leaf Inverter on its own

Speaking about controlling the LEAF inverter, I just got done with that part on my project car, using the Resolve-EV controller. Here are som videos on the current state of the build

https://www.youtube.com/watch?v=2bWuGUKpgUI
https://www.youtube.com/watch?v=EgJlZL-oidY
jharr300
Posts: 3
Joined: Sun Jan 16, 2022 3:35 pm
Delivery Date: 16 Jan 2020

Re: Controlling the Leaf Inverter on its own

I'm trying to control my leaf inverter on its own with an arduino.
I've read 'celeron55's page on the inverter protocol
http://productions.8dromeda.net/c55-lea ... tocol.html
I'm not experienced in coding, and can't fathom what number I'm supposed to put in for 1D4, byte 4
the page states '0x07 | (counter << 6) // Counter counts from 0 to 3'
I've no idea what that means. I assume its not as simple as cycling through 0,1,2,3 every 10ms?
Can some one tell me what should be in byte 4 for each of the four count steps please?
(and specify if thats in HEX or dec if there is no letter included to make it obvious!)
jharr300
Posts: 3
Joined: Sun Jan 16, 2022 3:35 pm
Delivery Date: 16 Jan 2020

Re: Controlling the Leaf Inverter on its own

I’ve been looking at ‘celeron55’s page on inverter protocol
http://productions.8dromeda.net/c55-lea ... tocol.html
Its very informative, but not being very experienced in coding, I don’t understand the line on 1D4 byte 4:
0x07 | (counter << 6) // Counter counts from 0 to 3
Can someone simply say what the values (in HEX) need to be that are cycled through?
I’m assuming its not as simple as 0x00, 0x01, 0x02, 0x03?
Any help would be much appreciated.
goldbrick
Posts: 1732
Joined: Tue Aug 01, 2017 3:33 pm
Delivery Date: 01 Aug 2017
Leaf Number: 311806
Location: Boulder, CO

Re: Controlling the Leaf Inverter on its own

It looks like YY is a byte and the 'counter' is shifted left by 6 bits. So the field would increment bits 7 and 6 as a 2 bit counter (0,1,2,3,0,1,....)

In other words, 0x07, 0x47, 0x87, 0xC7, 0x07.....

in binary, the bytes would look like this:

0000.0111
0100.0111
1000.0111
1100.0111

etc.
jharr300
Posts: 3
Joined: Sun Jan 16, 2022 3:35 pm
Delivery Date: 16 Jan 2020

Re: Controlling the Leaf Inverter on its own

Fab, thanks goldbrick.
Got my Leaf motor spinning with an Arduino and that info! :D
Ajsweet
Posts: 1
Joined: Fri Feb 25, 2022 3:00 am
Delivery Date: 25 Feb 2022

Re: Controlling the Leaf Inverter on its own

jharr300 wrote: Wed Feb 02, 2022 2:58 pm Fab, thanks goldbrick.
Got my Leaf motor spinning with an Arduino and that info! :D
Hi Jharr300,

Why did you have to change the code?

what (exactly) did you change it to?

outFrame.data.bytes[4] = 0x07 | (counter_1d4 << 6);
//outFrame.data.bytes[4] = 0x02 | (counter_1d4 << 6);

counter_1d4++;
if(counter_1d4 >= 4)
counter_1d4 = 0;
shuma89
Posts: 22
Joined: Mon Nov 15, 2021 9:19 am
Delivery Date: 07 Aug 1989

Re: Controlling the Leaf Inverter on its own

Hello.
I want to make electric mercedes w202 c180 m/t 1999 year.
I want to put nissan leaf gen 1 motor rear with its differential in the place of the mercedes differential. And inverter will be nearly in luggage place with nissan's onboard charger.
Can anybody help me to know how to control nissan's inverter with arduino or some cheap controler board.

Return to “LEAF CANBus”