Motor temp via can

Introduction and miscellaneous that we haven't created categories for, yet
Post Reply
FFMan
Posts: 319
Joined: Mon Jul 25, 2022 7:59 pm
Location: Bicester, Oxfordshire
Has thanked: 8 times
Been thanked: 46 times

Motor temp via can

Post by FFMan »

I'm using my V1c board in a Prius inverter to drive the Outlander rear motor. I've wired one of the motor temp sensors to the ampseal with a pull-up resistor as recommended by Bigpie.

On the inverter web page i have set the temp type to Outlander front and it displays what looks like a plausible value. I'd like to get get this sent via can, but neither Temp-HS or Temp-motor match the value shown in the GUI. Temp-hs seems to hover around 80 even at idle and temp-motor show is a consistent -40.

thanks
E46 touring
Phev rear motor, OEM inverter cabin heater and charger
BMW 9kwh & 12kwh packs
User avatar
johu
Site Admin
Posts: 5769
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1010 times
Contact:

Re: Motor temp via can

Post by johu »

More context!
What is the output of "can print" (in Custom Command)
How are you decoding and what is the raw value on the CAN bus?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
FFMan
Posts: 319
Joined: Mon Jul 25, 2022 7:59 pm
Location: Bicester, Oxfordshire
Has thanked: 8 times
Been thanked: 46 times

Re: Motor temp via can

Post by FFMan »

thanks for the reply.

The question was not so much about can, as to how to elicit the correct value i think. You can see in the first picture the sensor setup and a plausible value along side it. However the can set up offers temp-hs and temp-motor but neither value corresponds to the plausible value. Just wondering how i get that value mapped to a can message as it looks usable ?

TempSetup.PNG
TempSetup.PNG (2.92 KiB) Viewed 538 times
TempSpots.PNG
TempSpots.PNG (4.74 KiB) Viewed 538 times
E46 touring
Phev rear motor, OEM inverter cabin heater and charger
BMW 9kwh & 12kwh packs
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

Re: Motor temp via can

Post by Pete9008 »

You may need this to sort out the heatsink temperature viewtopic.php?p=56996#p56996

The motor temperature looks like a wiring problem as it's stuck at the minimum (equivalent 0V to ADC input).

Edit - That's interesting - didn't realise that you could combine multiple values into a single CAN message like that - nice feature!

Edit2 - Or can you? think it might just send out two separate messages on that CAN ID, one for each parameter?
User avatar
johu
Site Admin
Posts: 5769
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1010 times
Contact:

Re: Motor temp via can

Post by johu »

Pete9008 wrote: Wed May 31, 2023 5:02 pm

Edit2 - Or can you? think it might just send out two separate messages on that CAN ID, one for each parameter?


Nope, combined :)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

Re: Motor temp via can

Post by Pete9008 »

Nice - need to look at the code to see how you managed that :D
arber333
Posts: 3261
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 80 times
Been thanked: 232 times
Contact:

Re: Motor temp via can

Post by arber333 »

Hm... i am planning to make a simple CAN based temp module with several DS18B20 sensors on the module.
https://www.analog.com/media/en/technic ... s18b20.pdf

I would like to make the module speak CAN and it would be really good if inverter would be able to understand those sensors or messages.
May i suggest a kind of Outlander report? A single byte report with [deg centigrade] + 40.
User avatar
johu
Site Admin
Posts: 5769
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1010 times
Contact:

Re: Motor temp via can

Post by johu »

You want the inverter to receive temperature via CAN?
Could be added as a new sensor type CAN that stops updating tmphs/m from the ADC and the user is then responsible to map correctly to tmphs and/or tmpm
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3261
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 80 times
Been thanked: 232 times
Contact:

Re: Motor temp via can

Post by arber333 »

johu wrote: Wed May 31, 2023 8:40 pm You want the inverter to receive temperature via CAN?
Could be added as a new sensor type CAN that stops updating tmphs/m from the ADC and the user is then responsible to map correctly to tmphs and/or tmpm
Well ability to report CAN temp would be good in case of a DCDC, AC compressor, heater or charger. All of those from Outlander hybrid are reporting its temperature in one byte or another. Even inverter is reporting on the motor and IGBT temperatures.
My idea is to standardize the way temperature is reported, or recognised via CAN.
Then make a pic18F based module with DS18B20 single wire sensors and CAN transciever.

But! That should be done in a failsafe way. This means if one does not make the correct mapping of the CAN byte for temp then inverter PWM should not run.
FFMan
Posts: 319
Joined: Mon Jul 25, 2022 7:59 pm
Location: Bicester, Oxfordshire
Has thanked: 8 times
Been thanked: 46 times

Re: Motor temp via can

Post by FFMan »

Pete9008 wrote: Wed May 31, 2023 5:02 pm

Edit - That's interesting - didn't realise that you could combine multiple values into a single CAN message like that - nice feature!

lol - never occurred to me you couldn't, which is why the 10 message limit didn't seem too much of a hardship.
E46 touring
Phev rear motor, OEM inverter cabin heater and charger
BMW 9kwh & 12kwh packs
Post Reply