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

NodeMCU V3 + MCP2515 + Data on Webpage

 
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Author Message
Ulli13



Joined: 10/08/2012
Posts: 27
Karma: +19 / -0   Thank you, like it!
Location: Senden
2018 Audi A4 Avant
CAN Support

CAN-Diagnose and postmann likes this.
Post15-05-2018, 18:24    Subject: NodeMCU V3 + MCP2515 + Data on Webpage Quote

Hello hackers,

I managed to connect an ESP8266 WiFi module to my Motorcan Audi A4 B8 using an MCP2515.
I retrieve measurement data from the engine control unit and data from the CAN bus there.
The ESP8266 creates an access point named "Audi" without a password.
When you connect to the Wi-Fi and access the IP address 192.168.4.1,
A webpage is being built, and the data is being periodically transferred (every 100 milliseconds per value) to the table.
Transferring that data to the website took me days icon_sad.gif, but it's running stably now.
Unfortunately, the feedback from the buttons doesn't always work.
I have also defined maximum values for a few parameters (boost pressure, moment, differential pressure, consumption).
You can reset it using the "Reset max" button.
The "Led D3" button allows you to turn the output D3 on and off on the ESP8266.
You can obtain the ignition status from ID 0x3c0, and for example, use it to activate a relay.
The values displayed on the webpage are currently just example values, representing where the settings are located within the ESP8266.

Best regards,
Ulli



You are not permitted to view these file(s), please log in or register for extended rights or status updates.

Audi A4 B9 Bj 2018
Back to top Profile PM Email Garage
jozper



Joined: 01/05/2022
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post14-01-2022, 1:58    Subject: NodeMCU V3 + MCP2515 + Data on Webpage Quote

Hello Uli,
I think your project is great, and I'd like to do something similar for my car. I would like to ask about the hardware setup: how is the NodeMCU connected to the CAN module, please?

And are the data you're showing accurate? "How did you know how to calculate them? Sometimes there are complex formulas involved."

Best regards, Josef.
Back to top Profile PM
postmann
CAN-Profi
CAN-Profi


Joined: 05/23/2013
Posts: 142
Karma: +63 / -0   Thank you, like it!


CAN Support

Post25-01-2022, 22:55    Subject: NodeMCU V3 + MCP2515 + Data on Webpage Quote

Great project! I've done something similar for a Smart car. However, I'm using an ESP32 because it already has CAN functionality built-in.

What exactly do you mean when you say that the feedback from your button doesn't always work?
Back to top Profile PM
jozper



Joined: 01/05/2022
Posts: 2
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post28-04-2022, 13:36    Subject: NodeMCU V3 + MCP2515 + Data on Webpage Quote

I would like to do the same thing, so I would like to ask if you are connected to the CAN bus via the OBD port, meaning either behind the gateway or directly to the CAN bus, meaning before the gateway? In your communication, are there any requests, and is it connected to the OBD port, correct?
I would like to know when the DPF filter regenerates and the distance traveled after the regeneration. Please provide documentation that describes addresses, bytes, and bits.

Thank you for any help.
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



Post28-04-2022, 13:40    Subject: NodeMCU V3 + MCP2515 + Data on Webpage Quote

jozper wrote:
I would like to do the same thing, so I would like to ask if you are connected to the CAN bus via the OBD port, meaning either behind the gateway or directly to the CAN bus, meaning before the gateway? In your communication, are there any requests, and is it connected to the OBD port, correct?
I would like to know when the DPF filter regenerates and the distance traveled after the regeneration. Please provide documentation that describes addresses, bytes, and bits.

Thank you very much for any help
.

No, it must be connected to the CAN bus.
Quote:
Motorcan Audi A4 B8
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface
Back to top Profile PM WWW
New Topic Reply 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Similar articles and topics
Topic Forum
No new posts RCD 320 : CAN Simulation mit AVR und MCP2515 CAN Bus General
No new posts µC + 2x MCP2515 for filtering Microcontrollers and Electronics, Programming
No new posts Arduino BlackBox mit MCP2515 Microcontrollers and Electronics, Programming
No new posts Arduino mit MCP2515 als Steuerung Microcontrollers and Electronics, Programming
Jump to:  
You cannot post new topics in this forum.