Leaf Current Sensor instead of IVT-S [SOLVED]
Leaf Current Sensor instead of IVT-S
I was wondering whether we could use the current sensor of a leaf contactor box that is connected to the Leaf BMS?
The leaf inverter can measure the voltage for precharge so an IVT is not strictly necessary anymore.
Current measurement is needed for CCS and general limits but needs to be implemented via external current sensor, why not use the internal one (connected to Leaf BMS or directly to a VCU) or did I miss something?
The leaf inverter can measure the voltage for precharge so an IVT is not strictly necessary anymore.
Current measurement is needed for CCS and general limits but needs to be implemented via external current sensor, why not use the internal one (connected to Leaf BMS or directly to a VCU) or did I miss something?
- tom91
- Posts: 2425
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 209 times
- Been thanked: 578 times
Re: Leaf Current Sensor instead of IVT-S
Not possible with the Zombie as it is not coded in.
Do you have specs on what the leaf current sensor is?
If you are talking about CCS I would expect you to have a BMS and the BMS should be measuring the current and reporting it.
Do you have specs on what the leaf current sensor is?
If you are talking about CCS I would expect you to have a BMS and the BMS should be measuring the current and reporting it.
Re: Leaf Current Sensor instead of IVT-S
Ok thank you for the quick clarification.
The leaf current sensor is a normal hall sensor but with a small offset (0A => 3.25V, instead of expected 0A => 2.5V with normal 5V logic hall sensors).
So basically an ADC reading would suffice but the value needs to be mapped to CAN. This is option 1: connecting sensor directly to VCU and getting current values for things like CCS, monitoring, etc. from there.
But does the leaf BMS not output the current value via can? Then one could connect the current sensor to BMS as intended and rad the current from the
CAN bus which would lead to option 2: leaf BMS + current sensor replaces shunt.
Just a thought of mine, which came up when I connected a leaf conntactor box and saw the unused current sensor. If one of the options works, then Leaf Stack users could who also use BMS and leaf cells can omit the expensive IVT-S shunt completely.
The leaf current sensor is a normal hall sensor but with a small offset (0A => 3.25V, instead of expected 0A => 2.5V with normal 5V logic hall sensors).
So basically an ADC reading would suffice but the value needs to be mapped to CAN. This is option 1: connecting sensor directly to VCU and getting current values for things like CCS, monitoring, etc. from there.
But does the leaf BMS not output the current value via can? Then one could connect the current sensor to BMS as intended and rad the current from the
CAN bus which would lead to option 2: leaf BMS + current sensor replaces shunt.
Just a thought of mine, which came up when I connected a leaf conntactor box and saw the unused current sensor. If one of the options works, then Leaf Stack users could who also use BMS and leaf cells can omit the expensive IVT-S shunt completely.
- tom91
- Posts: 2425
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 209 times
- Been thanked: 578 times
Re: Leaf Current Sensor instead of IVT-S
... just like Damien done on his truck with the latest firmware release.
Re: Leaf Current Sensor instead of IVT-S
Right, but as far as I know the last release made use of the voltage value provided by leaf interver.
Is the current value of the junction box also used? I don't think so as it is connected to the BMS and is never mentioned anywhere, so I thought it might be worth talking about it
Is the current value of the junction box also used? I don't think so as it is connected to the BMS and is never mentioned anywhere, so I thought it might be worth talking about it
- tom91
- Posts: 2425
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 209 times
- Been thanked: 578 times
Re: Leaf Current Sensor instead of IVT-S
Really?
You watch any of the Damien youtube videos? The Leaf BMS is implemented in the Zombie release 2.20A.
also on the wiki https://openinverter.org/wiki/ZombieVerter_VCU
You watch any of the Damien youtube videos? The Leaf BMS is implemented in the Zombie release 2.20A.
also on the wiki https://openinverter.org/wiki/ZombieVerter_VCU
Re: Leaf Current Sensor instead of IVT-S
The BMS is i know.
But does it use the current sensor in the junction box? It may or may not I don't know that's why I asked. Sorry maybe I did't find the right words to express what I was trying to say...
The Leaf BMS is included but where is the information about the current sensor?
When reading the code I found that:
What made me think was the ShuntType 0 and isa sensor part. As the sensor originally used with the leaf battery is a hall sensor not a shunt ?
From the code I can't see where this hall sensor should be used?
To put it in other words: When using Leaf BMS with Zombieverter do I need to have the leaf junction box and current sensor connected to the BMS?
As I can't find an equivalent part in the source code and you mentioned Zombieverter doesn't use the current hall sensor.
-> wouldn't that be something good to add as it would make other current measurements obsolete just like the last FW made voltage sensing obsolete?
But does it use the current sensor in the junction box? It may or may not I don't know that's why I asked. Sorry maybe I did't find the right words to express what I was trying to say...
The Leaf BMS is included but where is the information about the current sensor?
When reading the code I found that:
Code: Select all
if (Param::GetInt(Param::ShuntType) == 0)//Only populate if no shunt is used
{
float BattCur = cur / 2;
float BattVoltage = udc / 2;
Param::SetFloat(Param::idc, BattCur);
if(BattVoltage < 450)Param::SetFloat(Param::udc2, BattVoltage);
if(BattVoltage > 200)Param::SetFloat(Param::udcsw, BattVoltage - 20); //Set for precharging based on actual voltage
float kw = (BattVoltage*BattCur)/1000;//get power from isa sensor and post to parameter database
Param::SetFloat(Param::power, kw);
}
What made me think was the ShuntType 0 and isa sensor part. As the sensor originally used with the leaf battery is a hall sensor not a shunt ?
From the code I can't see where this hall sensor should be used?
To put it in other words: When using Leaf BMS with Zombieverter do I need to have the leaf junction box and current sensor connected to the BMS?
As I can't find an equivalent part in the source code and you mentioned Zombieverter doesn't use the current hall sensor.
-> wouldn't that be something good to add as it would make other current measurements obsolete just like the last FW made voltage sensing obsolete?
- johu
- Site Admin
- Posts: 6757
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 383 times
- Been thanked: 1576 times
- Contact:
Re: Leaf Current Sensor instead of IVT-S
The LeafBMS has a current sensor connected to it. There is no separate junction box logic.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Leaf Current Sensor instead of IVT-S
Great. And does the BMS report the current values to the CAN Bus? If so I would like to add this information to Nissan Leaf Wiki pages, as I think that's something to consider.
- johu
- Site Admin
- Posts: 6757
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 383 times
- Been thanked: 1576 times
- Contact:
Re: Leaf Current Sensor instead of IVT-S [SOLVED]
Yes
The wiki links the info https://github.com/dalathegreat/leaf_can_bus_messages
The wiki links the info https://github.com/dalathegreat/leaf_can_bus_messages
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Leaf Current Sensor instead of IVT-S
Oh I missed that link ...
thanks for pointing me in that direction!
so this current value can be used for things like CCS by mapping the current value to the right message of lets say Foccci.
Thanks everything clear on my side now!
thanks for pointing me in that direction!
so this current value can be used for things like CCS by mapping the current value to the right message of lets say Foccci.
Thanks everything clear on my side now!
- tom91
- Posts: 2425
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 209 times
- Been thanked: 578 times
Re: Leaf Current Sensor instead of IVT-S
This is current reported from the BMS, So the code reads as follows
shuntype = 0 ->No shunt used so use the BMS info
Do not look to deep into names of variables and parameters. You are trying to draw conclusions without understand how the data is moved about. Keep in mind code evolves so naming conventions and reasoning gets lost/changes.