Realdash communication with esp32

817 is great optocoupler for auto. In my CAN-controller used PC847 (4x817 in a single package)

Will get that one then.

Just not sure why I do not see the RealDash blinker light up when I trigger the input with 3.3 volts

start looking for the cause with the CAN monitor in RealDash. Does it receive your BT data?

When I do a reset on the EN button of my ESP32, I see action in Arduino IDE Monitor window.
Then in Realdash I see 00001001 : 00 00 00 00 00 00 00 00
But when I trigger the ESP32 input with 3.3 Volt I do not see it on IDE Monitor and also nothing on CAN Monitor.
So looks like ESP32 does not get a proper Trigger from my 3.3 volt.
Also must mention that I am using a ESP32 - Wroom unit.
It does not have all the pins as per your picture,
But I trigger the points as they are marked on the WROOM unit

Also when I use the RealDash CAN Monitor to SEND a frame, it show on my phone (RD screen) but I do not see it on the Arduino IDE Monitor

On RD, must I enable the Configuration Frame, because on default it is not enabled

Configuration Frame - disabled

adapter (CAN/LIN) → Realdash CAN → BT → select bt

AND… are you sure that frames are being transmitted?
try to forcefully transmit not 0, but 1, assigning them to variables before sending forcefully.
if you see ones in the CAN monitor, then you need to figure out how to read the voltage on your PINs.

Okay scrap the previous posts… I can see now something happening on the CAN Monitor, was thinking I need to see it on the IDE Monitor as well,

BUT, I put 3.3 volt on my first input for R Turn… then I see the CAN Monitor has 8 frames after the 00001001:
When I trigger pin 15 the first changes from 00 to 01
When I trigger my second input the second 00 changes to 01
When I trigger the third input the third 00 changes to 01
Same with the 4th input, the 4th 00 changes to 01
But I do not see it on the dash yet

so my code works for you. congratulations.

everything else is realdash setup. and check the XML again and whether you specified the “inputs” correctly and whether you have the show/hide gauges set up correctly.
good luck…

Fantastic work and thank you very much.
The .xml file that you send me, do I have to modify it with something ?
I am using the DEFAULT Dash from the Free Galary and when it boot up it does show Left \Right and High Beam lights so I assume the Dash should work
At least I have a stable BT connection so far.
Now the scratch even deeper lol

no skin will work just like that.
you need to configure it, OR you need to edit the XML to standard TargetID.

Now you are talking high level stuff to me that have no clue of programming.
Guess I have to learn more about how these things all talk together.

on the contrary. you already have everything you need from programming. you need to figure out realdash.

<?xml version="1.0" encoding="utf-8"?>
<!-- RealDash CAN XML description file, version 2 Requires RealDash version 1.5.8 or newer -->
<RealDashCAN version="2">
  <frames>
  
    <frame id="0x1001">
	  <value targetId="160" offset="0" length="1" conversion="V" rangeMin="0" rangeMax="1"></value>
	  <value targetId="161" offset="1" length="1" conversion="V" rangeMin="0" rangeMax="1"></value>
	  <value name="Woody data: LO beam" offset="2" length="1" conversion="V" rangeMin="0" rangeMax="1"></value>
	  <value name="Woody data: HI beam" offset="3" length="1" conversion="V" rangeMin="0" rangeMax="1"></value>
	</frame>
  </frames>
</RealDashCAN>

This xml should work with default skin. but only turn left and right.

So the skin is the default dash layout that is in RD

Thank you again.
At least I have indicators working on my dash.
Now for fuel gauge that has a 240 ohm resistance at Empty
and 33 ohms when full.
And maybe the alternator light

Sorry, buddy. You asked for help with the program - I gave it to you. Do all the circuitry yourself.
All analog measurements on pins 25,32-36,39.
Use “analogReadMilliVolts(pin)” function.
Here’s something to help you calculate resistances.

https://www.falstad.com/circuit/

Again thank you for the help.
Like you said the rest is up to me yo try and figure it out.
Really appreciate the help and guidance.
All these new concepts and how each piece connects to each other are getting a little clearer by the day.

1 Like

Slowly getting to understand hoe these puzzle pieces fit together.
From the XML file received I noticed that when I trigger the LEFT indicator , the Right one blink on RD
Then I found the Target iD list and saw these numbers 160 and 161 are the indicators left and right.
So all I had to do was to change them around in the Xml file.
Now they trigger and show correctly.
Also found on the TargetiD list that High Beam is number 157.
Added that to the Xml file and now the High beam light works on RD.
Still a long way of writing my own code, but at least I can now see what some of the functions do and modify them to suite

1 Like