CANhack.de CAN-Interface RKS+CAN
Diesel technology, engine technology, vehicle diagnostics, repair & maintenance.

Motorsimulation eines AZQ Motors mit Polo Steuergeräten | Posts 24+

 
Go to page: Previous  1, 2, 3  Next
New Topic Reply 🔗 🖨 CANhack.de - Index » Vehicle-specific Hardware and Pin Assignments
Author Message
Clubsport



Joined: 01/20/2017
Posts: 4
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post25-04-2017, 7:21    Subject: Quote

Very cool work!!! icon_smile_thumb_up.gif


Translated on 03-07-2026, 15:19.
Back to top Profile PM
wernernue



Joined: 03/02/2016
Posts: 27
Karma: +10 / -0   Thank you, like it!
Location: Nürnberg

Premium Support

Post25-04-2017, 23:48    Subject: Onboard computer Quote

Thank you icon_smile.gif

The on-board computer is paying for itself now, because my son is driving more fuel-efficiently. icon_smile_thumb_up.gif
And the outside temperature provides an added safety margin when it gets frosty again.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
Dr4g0n



Joined: 06/10/2017
Posts: 4
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post11-06-2017, 19:22    Subject: Quote

Hi, where did you connect to the CAN bus? I'm connected to the radio connector and can't find some of the values. I have a Polo 9n3 without MFA. I'm using an MCP2515 with 8MHz and a speed of 100kbps for reading. Is the problem already somewhere there, or are there no outside temperature readings, etc., for me? I can read the engine speed. Thank you very much.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
wernernue



Joined: 03/02/2016
Posts: 27
Karma: +10 / -0   Thank you, like it!
Location: Nürnberg

Premium Support

Post12-06-2017, 8:12    Subject: Quote

Hello,
I'm connected to the vehicle's drive CAN bus at the speedometer with a data rate of 500 kbps.
"I'm also using the MCP2515 with an 8MHz clock and a library where you can specify the clock rate." But if you can read values, then it should work.
Unfortunately, I cannot specify which values are transmitted through the CAN gateway to the comfort bus (at the radio) and which are not.
Currently, I have only wired the drive control bus in my test setup.

Regards,
Werner.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post12-06-2017, 11:15    Subject: Quote

Not all CAN messages are available on every CAN bus. icon_idea.gif
It doesn't really make sense if the engine control unit were told which button was pressed on the radio. icon_wink.gif

Best regards, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Translated on 03-07-2026, 15:19.
Back to top Profile PM WWW
Dr4g0n



Joined: 06/10/2017
Posts: 4
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post12-06-2017, 20:28    Subject: Quote

Thank you very much.
I've wired everything up, and it's working perfectly.

I was aware that not everything is available to everyone.
Now it makes sense that the speed setting on the comfort bus is used to control the radio volume.

Is there a list available somewhere that details the data accessible via the CAN bus?

I am missing the following in the examples:

Speed (regarding comfort, engine load, turbo boost, oil pressure, etc.).

I have noticed two inconsistencies in the code examples.

1. ATmp of Value * 10
2. When the "On" position is selected, the light output is 16.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
irobles



Joined: 06/13/2017
Posts: 3
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post14-06-2017, 11:29    Subject: Quote

Hello, sorry but I don't speak German icon_sad.gif.

"I've started a new R&D project on CAN-BUS security, and I'd like to install a similar panel as the one shown in your photos. I understand you used equipment from a VW Polo. If it's not too much trouble, could you please provide the reference numbers for the ECUs and the speedometer?" I'm trying to find a full set on the Internet, but it's a nightmare icon_confused.gif.

Thank you very much for your time.

Best regards,

Igor.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
Dr4g0n



Joined: 06/10/2017
Posts: 4
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post10-07-2017, 20:29    Subject: Quote

My onboard computer is working properly now.
However, I'm in a bit of a "strange" situation.

The distance will be calculated using your formula, but what is that value?
It looks like the CM (presumably referring to a counter or memory) is being decremented, but the value resets to approximately 2048 each time.

Do you have any ideas about this?


Translated on 03-07-2026, 15:19.
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post10-07-2017, 20:49    Subject: Quote

@Dr4g0nViewing profile: Dr4g0n: Who are you referring to? In my car, the distance traveled is reported on the CAN bus in multiples of 10 meters, and the total mileage is reported in full kilometers.

Best regards, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Translated on 03-07-2026, 15:19.
Back to top Profile PM WWW
wernernue



Joined: 03/02/2016
Posts: 27
Karma: +10 / -0   Thank you, like it!
Location: Nürnberg

Premium Support

Post10-07-2017, 21:24    Subject: Quote

Yes, as far as I can tell from this quick estimate, it was dm, which is 0.1 meters.
I read the value every 15 seconds and add the difference to a variable.
And if the new value is smaller than the old value, meaning the counter restarts at zero, you need to add the maximum value to the new value *before* calculating the difference.

Best regards,
Werner.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
Dr4g0n



Joined: 06/10/2017
Posts: 4
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post10-07-2017, 21:37    Subject: Quote

With the formula from you, Wernernue.
text
CurrentStrecke = Byte_0x5A0_5 + (Byte_0x5A0_6 & 0x3) * 256;
It seems like the measurement is in centimeters, and the value resets to zero after reaching 2048. Since I'm traveling at approximately 200 km/h (55 m/s), I need to read the value more frequently.

I'm adding the difference to the previous value and storing it in a temporary variable. Once the value exceeds 100, the meter counter will increment by one.

"I'm getting an approximate 50% deviation. The car's speedometer shows 1 km, the phone shows 1.05 km, and the Arduino shows 0.5 km."


Translated on 03-07-2026, 15:19.
Back to top Profile PM
wernernue



Joined: 03/02/2016
Posts: 27
Karma: +10 / -0   Thank you, like it!
Location: Nürnberg

Premium Support

CAN-Diagnose likes this.
Post11-07-2017, 22:23    Subject: Quote

I should have checked first before writing here
Code:

  if (rxId==0x5A0) //0x5A0 Geschwindigkeit vom ABS
      {
      Byte_0x5A0_1=rxBuf[1];
      Byte_0x5A0_2=rxBuf[2];
      Byte_0x5A0_5=rxBuf[5];
      Byte_0x5A0_6=rxBuf[6];

      Kmh=(Byte_0x5A0_2*256+Byte_0x5A0_1)/152;
      CurrentStrecke=Byte_0x5A0_5 + (Byte_0x5A0_6 & B00000111)*256;

      }
.

Code:

      if (CurrentStrecke<LastStrecke) {Str=CurrentStrecke+0x0800-LastStrecke;} else {Str=CurrentStrecke-LastStrecke;}
      LastStrecke = CurrentStrecke;
      kms=kms + Str*0.20;  //kms in Dezimetern


So, those two bytes contain the distance traveled value.
And the distance is calculated every half-second using this formula:


icon_biggrin.gif


The mileage displayed on the built-in onboard computer is quite accurate, being about 4% lower, but since the speedometer tends to run slightly fast, the actual mileage is probably quite close.

I hope you manage to get that sorted out.

Regards,
Werner.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
WernerW



Joined: 10/23/2023
Posts: 2
Karma: +1 / -0   Thank you, like it!


Free account, no CAN development support

CAN-Diagnose likes this.
Post24-10-2023, 17:16    Subject: Water temperature display Quote

Cool post!
I also have a Polo instrument cluster on the table, specifically a Polo 6N0920. I'm trying to move the water temperature gauge. Do you have any idea how to do that?
I've managed to get the RPM and km/h indicators working.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
wernernue



Joined: 03/02/2016
Posts: 27
Karma: +10 / -0   Thank you, like it!
Location: Nürnberg

Premium Support

Post26-10-2023, 21:04    Subject: Water temperature display Quote

Hello Werner,

Yes, icon_biggrin.gif this project was fun.

According to the wiring diagram, this signal should originate from the temperature sensor G32, located in the lower left corner of the image, and connect to pin 22 of the 32-pin connector on the instrument cluster.

If I remember correctly, the coolant sensor has 4 connections, and it contains 2 sensors inside; the other one connects to the engine control unit.

Unfortunately, I can't quickly check right now whether the PIN is already assigned to my account. It's also possible, depending on the equipment, that the information is transmitted via the CAN bus, and the engine control unit generates the corresponding CAN signal.



Polo-Wassertemperatur.jpeg
 Description:
 
 File size:  203.19 KB
 Viewed:  230 times

Polo-Wassertemperatur.jpeg



Translated on 03-07-2026, 15:19.
Back to top Profile PM
WernerW



Joined: 10/23/2023
Posts: 2
Karma: +1 / -0   Thank you, like it!


Free account, no CAN development support

Post28-10-2023, 14:53    Subject: Quote

Thank you for your information.

For the KI Polo 6N0920, I use an Arduino Nano V3 and an MCP2515 for control. The RPM, ABS, and airbag data are received via the CAN bus. The Arduino determines the speed using square wave pulses. The fuel gauge is implemented using PWM (Pulse Width Modulation).

I'm just unable to get the coolant temperature display to work. The pin you mentioned is labeled with the low coolant warning indicator on my device.
With various resistance values connected to the mass terminal, no display was visible. Can the temperature data also be provided via the CAN bus? I once sent values to ID 0x288, byte 1, but unfortunately, there was no display.
Are there perhaps other IDs?

Best regards, Werner.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
Busschrauber



Joined: 05/21/2026
Posts: 3
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post22-05-2026, 20:10    Subject: Quote

Hi, great project.
I have a 2005 Polo with 54 horsepower, and I want to see the fuel consumption displayed.
Do I need the speed to calculate something, or is it enough to just display the consumption?
Thank you for your help.


Translated on 03-07-2026, 15:19.
Back to top Profile PM
New Topic Reply 🔗 🖨 CANhack.de - Index » Vehicle-specific Hardware and Pin Assignments
Go to page: Previous  1, 2, 3  Next
Similar articles and topics
Topic Forum
No new posts Concerns of a newcomer CAN Bus General
No new posts Steuerung eines Autos CAN Bus General
No new posts Simulation eines MFL (Steuerung RNS-E, BT) Interior / Comfort CAN
No new posts Polo 6R Vehicle-specific Hardware and Pin Assignments
Jump to:  
You cannot post new topics in this forum.