Tesla SDU _> S2000 dash cluster

Topics concerning the Tesla front and rear drive unit drop-in board
Post Reply
EVS2K
Posts: 6
Joined: Tue Feb 20, 2024 4:58 am
Been thanked: 1 time

Tesla SDU _> S2000 dash cluster

Post by EVS2K »

I’m at the point of integrating the Tesla SDU with the Honda S2000 electronics, specifically the dash cluster.
lheTEPg.jpg
I’d like to display speed (of course), amperage (on the tachometer), state of charge (fuel gauge) etc.

First step is converting the OpenInverter's RPM output to the S2000's Vehicle Speed Sensor. I haven't looked at what signal the OpenInverter board outputs but I expect it's a square wave based on the trigger wheel in the SDU (happy to be corrected).

The S2000 dash cluster accepts a square wave signal and counts the frequency. Surprisingly it doesn't seem to use a 0 origin but has an offset for about 100hz
image.png
So I assume the task is to read one frequency and convert to another. I'm looking at an Arduino board to do the conversion. And I have seen boards like the AD9833 to generate an output frequency.
s-l1600.jpg
Not sure how to read the input at this point.

If anyone has any input or direction it would be appreciated.
Attachments
HkQMIrC.jpg
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1025 times
Contact:

Re: Tesla SDU _> S2000 dash cluster

Post by johu »

Hi
Unfortunately the sdu board doesn't export the pwm signal so you will need something external to drive the cluster
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
EVS2K
Posts: 6
Joined: Tue Feb 20, 2024 4:58 am
Been thanked: 1 time

Re: Tesla SDU _> S2000 dash cluster

Post by EVS2K »

johu wrote: Fri Mar 01, 2024 6:44 am Unfortunately the sdu board doesn't export the pwm signal so you will need something external to drive the cluster
Really? How are others deriving a speed signal?
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1025 times
Contact:

Re: Tesla SDU _> S2000 dash cluster

Post by johu »

Over the CAN bus and then some Arduino converts it to variable frequency.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
EVS2K
Posts: 6
Joined: Tue Feb 20, 2024 4:58 am
Been thanked: 1 time

Re: Tesla SDU _> S2000 dash cluster

Post by EVS2K »

Ok. In that case I need to catch and interpret the canbus packets and input to the arduino. Be interested in any links to those that have already done this.
P.S.Mangelsdorf
Posts: 772
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 96 times
Been thanked: 96 times

Re: Tesla SDU _> S2000 dash cluster

Post by P.S.Mangelsdorf »

Take a look at EVTV's CANDue board, it has a well established library and it can send and receive CAN messages. Effectively it's a Arduino Due with two CAN channels.

On the SDU side you will need to configure the outgoing CAN messages via the web interface. On the Arduino side you'll need to tell it to receive those messages and interpret them into the signal the dash needs. You'll have to do some math in the code using the SDU gear ratio and your tire size to determine speed based on RPM.

If you're not married to the stock dash, Speedhut has a line of EV gauges and they tell you what messages you need to set the SDU to send. I like the set I bought, but did learn that there has to be something else on the Bus, or the SDU won't see any confirmation of its messages and thus stop sending them. The Speedhut gauges don't send any sort of confirmation (presumably to not disrupt OEM cars) and the SDU needs to see something else on the bus to keep sending messages.
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
EVS2K
Posts: 6
Joined: Tue Feb 20, 2024 4:58 am
Been thanked: 1 time

Re: Tesla SDU _> S2000 dash cluster

Post by EVS2K »

I just ordered some MPC2515s to play with.

I'll look into the CANDue board too.
arber333
Posts: 3265
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 80 times
Been thanked: 234 times
Contact:

Re: Tesla SDU _> S2000 dash cluster

Post by arber333 »

P.S.Mangelsdorf wrote: Fri Mar 01, 2024 1:14 pm Effectively it's a Arduino Due with two CAN channels.
There is also eeprom needed for effective DUE use, wich led me to design my own shield that goes over DUE board and has 2 CAN chips, uln2003 chip for outputs and two small relays for using stronger contactors.
Input power is protected by a diode and there are several pads for pwm transistors with 12V and 5V pullups.
Finally there are 3 analog inputs with resistor divider.

I may have some boards left for populate by hand if you want to build yourself. Or i can... PM me.
EVS2K
Posts: 6
Joined: Tue Feb 20, 2024 4:58 am
Been thanked: 1 time

Re: Tesla SDU _> S2000 dash cluster

Post by EVS2K »

arber333 wrote: Fri Mar 01, 2024 2:48 pm I may have some boards left for populate by hand if you want to build yourself. Or i can... PM me.
Cheers. I'll see where I get to with Arduino and get back to you.
Post Reply