Page 1 of 1

MPH through CAN from tesla SDU to speedhut dials

Posted: Tue Jul 11, 2023 1:44 pm
by Kitlacey
Hi all,

I'm wanting to send CAN messages, using the web interface, to some speedhut gauges to show MPH. I've been told I can use the 'speed' section of can messages but I don't know where to start.

Why tyres are 185 65R15s (it's a vw camper).

Please give answers for the 4 boxers on the web interface.

Thanks

Re: MPH through CAN from tesla SDU to speedhut dials

Posted: Tue Jul 11, 2023 2:08 pm
by Bigpie
Do you know the Can ID the gauges expect to see the speed message on and the format of the message?

Re: MPH through CAN from tesla SDU to speedhut dials

Posted: Tue Jul 11, 2023 2:58 pm
by tom91
https://openinverter.org/wiki/CAN_communication

Towards the bottom section "Mapping Values through the web interface"

This again is open inverter so there is no variable road speed gain at the moment. So you need to bake this into how you setup the RPM / Speed (motor) to convert it to a vehicle speed value.

Did Zero-EV/Fellten stop selling Tesla Drive units?

Re: MPH through CAN from tesla SDU to speedhut dials

Posted: Fri Jul 14, 2023 10:53 am
by johu
Yes, say the display expects road speed in mph as an integer and the speed to mph ratio were 100 (1000 rpm equals 10 mph) then you'd enter 0.01 as the gain factor. Since 5.27.R the gain can be more or less float so that is now possible.
don't be surprised that after setting it up the gain will show as 0. That's because the print routine is still limited to 5 binary digits (and thus roughly 1.5 decimal digits)

Re: MPH through CAN from tesla SDU to speedhut dials

Posted: Mon Jul 17, 2023 7:43 am
by Kitlacey
Bigpie wrote: Tue Jul 11, 2023 2:08 pm Do you know the Can ID the gauges expect to see the speed message on and the format of the message?
Not sure,

I used to have

CAN ID 599
Position 0
Bits 16
Gain 10

This was under a parameter titled 'roadspeed'

Re: MPH through CAN from tesla SDU to speedhut dials

Posted: Mon Jul 17, 2023 7:24 pm
by johu
And what was "roadspeedgain" ?

Re: MPH through CAN from tesla SDU to speedhut dials

Posted: Sun Aug 06, 2023 7:14 pm
by Kitlacey
johu wrote: Mon Jul 17, 2023 7:24 pm And what was "roadspeedgain" ?
Sorry, I didn't have a setting for roadspeedgain

Re: MPH through CAN from tesla SDU to speedhut dials

Posted: Sun Aug 06, 2023 7:37 pm
by tom91
Upload your .JSON for the Zero-EV firmware it is in there for sure.

Line 10 "roadspeedgain"