Page 1 of 1
Motor temp via can
Posted: Tue May 30, 2023 6:10 am
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
Re: Motor temp via can
Posted: Tue May 30, 2023 6:32 am
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?
Re: Motor temp via can
Posted: Wed May 31, 2023 4:37 pm
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 (2.92 KiB) Viewed 1379 times

- TempSpots.PNG (4.74 KiB) Viewed 1379 times
Re: Motor temp via can
Posted: Wed May 31, 2023 5:02 pm
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?
Re: Motor temp via can
Posted: Wed May 31, 2023 6:50 pm
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

Re: Motor temp via can
Posted: Wed May 31, 2023 6:52 pm
by Pete9008
Nice - need to look at the code to see how you managed that

Re: Motor temp via can
Posted: Wed May 31, 2023 8:30 pm
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.
Re: Motor temp via can
Posted: Wed May 31, 2023 8:40 pm
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
Re: Motor temp via can
Posted: Wed May 31, 2023 9:06 pm
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.
Re: Motor temp via can
Posted: Thu Jun 01, 2023 12:44 pm
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.