CAN Gateway: Monitoring Cars Wirelessly!

  Рет қаралды 125,794

MrDIY

MrDIY

Күн бұрын

Introducing a Wireless ESPNow CAN Bus Gateway running ESP32.
10 PCBs for $5 USD at www.pcbway.com
Grab the CAN Shield: store.mrdiy.ca/p/esp32-can-bu...
Source Code
===========
■ Tesla - gitlab.com/MrDIYca/canabus/-/...
■ OBDII - gitlab.com/MrDIYca/canabus/-/...
Shopping Links:
=============
■ Tesla OBDII Wire Adapter
- Amazon - geni.us/AsDPDz
- AliExpress - s.click.aliexpress.com/e/_DCL...
■ ESP32 DevKit
- Amazon - amzn.to/41Gmqdm
- AliExpress - s.click.aliexpress.com/e/_Ddz...
Connect & Support:
================
Become a Member: / @mrdiyca
Follow on X: x.com/MrDIYca
Music - The Mask by Oleksii Bezsalov
00:00 Intro
00:17 The Gateway
00:55 OBDII
04:56 Tesla
05:50 Sponsor
06:20 Two Car Setup
06:46 ESPNow IDs
07:11 Gadgets
07:29 Outro
DISCLAIMER: links found in the description box of my videos may be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you to use my links/codes, it's just one more way to support me and my work. Much of the information contained is based on personal knowledge and experience. It is the responsibility of the viewer to independently verify all information.

Пікірлер: 86
@AlexanderBelikov
@AlexanderBelikov 11 ай бұрын
I checked all 16 pins with a oscilloscope and found that pin 8 gets +5v when ignition is on in my Mazda. This is even more convenient than analog reading.
@brainimplants
@brainimplants 11 ай бұрын
That's pretty snazzy. You have really put in work, it shows.
@fredimachadonet
@fredimachadonet 11 ай бұрын
Nice content! I just ordered one CAN Shield to try on my Model 3. Thank you!
@substandard649
@substandard649 11 ай бұрын
This is brilliant . I'm follow this project closely and looking forward to the gadget videos
@KarlKristianMoeng
@KarlKristianMoeng 11 ай бұрын
Awesome stuff, looking forward to the follow up.
@electronics.unmessed
@electronics.unmessed 11 ай бұрын
Just joined! Great content that inspires my for my projects.
@gwaeron8630
@gwaeron8630 11 ай бұрын
Very interesting. Subbed to follow what you do next. I've always wanted to do more with the OBDII port but ended up selling my P3 vent gauge because using more than one device was glitchy and I loved my Navdy HUD. Dashcams should have the ability of recording signals and braking etc. Lukas make them but again more than one device and becomes glitchy.
@mortenmoulder
@mortenmoulder 11 ай бұрын
Man, if this could post directly to MQTT instead of ESP-NOW, that would be nice. Then I can drive around in my Tesla and essentially get a cheaper and more versatile version of the S3XY buttons. Maybe since it's using an ESP32, it could connect to your phone, and since your phone always has internet, that could be the gateway.
@Pipe0481
@Pipe0481 10 ай бұрын
Good news is that this would be simple, just rewrite the code to use Bluetooth instead of esp now and you can then use your phone with it
@darekmistrz4364
@darekmistrz4364 10 ай бұрын
Just make sure it's secure. Leaving your Chinese made, security scarce, WIFI+Bluetooth enabled microcontroller connected directly to CAN network of your car is overall not a great security practice
@Minitia.R56
@Minitia.R56 11 ай бұрын
This is amazing! You are making me get back to the Arduino game! I have been looking for a way to have two OBD2 gadgets (one for diagnostics and the the other for my connected insurance) to the same car!
@sirseven3
@sirseven3 11 ай бұрын
Best way is to make a dual harness spliced into a single.
@samimejri8079
@samimejri8079 11 ай бұрын
@@sirseven3 a splitter will just let one OBD2 device work, the other will not get data!
@sirseven3
@sirseven3 11 ай бұрын
@@samimejri8079 they have to be using different protocols. One using Bluetooth and the other using wifi
@fuckthisksksjjksdfjd
@fuckthisksksjjksdfjd 11 ай бұрын
What I would love is a esp32 with lorawan so I could use it to control my HVAC, windows, stop and start car and such. Should have much better range then those off the shelf units. Only issue is making the transmitter small enough for the key chain.
@romaindemaison3127
@romaindemaison3127 10 ай бұрын
I would love to see writting on the canbus, for example to open or close widnows, automatically change drive mode, and so on
@KillerShadow07
@KillerShadow07 11 ай бұрын
Hmm if you integrate an attiny into the hw to monitor the voltage you could maybe cut of the power to the esp32 if the car is off and lower the consumption even more as the attiny consumes even less.
@emadibnalyaman8073
@emadibnalyaman8073 11 ай бұрын
عمل اكثر من رائع، يا ريت تعمل هندسة عكسية لنظام التواصل بين سيارات تسلا.
@FrankGraffagnino
@FrankGraffagnino 11 ай бұрын
very cool... i think it would be cool to have an alternative firmware here that publishes directly to your MQTT broker and skips the ESPnow middleware. Thanks for sharing!
@MrDIYca
@MrDIYca 11 ай бұрын
Yes absolutely - one less thing to fail when MQTT is the main communication channel for a project
@AutoRevLife
@AutoRevLife 11 ай бұрын
To build this, do I need to purchase the dev board from Amazon? And if I buy the can shield from your store will it include a wiring diagram? And do the dev board and your can shield go together? I'm an IT guy with some coding experience, so I get some of the stuff you are saying but I want to make sure I am getting it right
@ninjasploit
@ninjasploit 11 ай бұрын
Hey! Have you done any low-power GPS w/ cellular gadget? Would love something like that!
@ersincelebi5376
@ersincelebi5376 10 ай бұрын
Hi Can you tell us which hardware you prefer for USB to CAN protocol analyzer and can you explain how to use savvycan with a video?
@navjotsingh2457
@navjotsingh2457 Күн бұрын
cool
@tygovorst
@tygovorst 8 ай бұрын
Do you have a sample code for the little screen you had in the Tesla? I would like to make something similar for my scooter but I am having trouble
@muhammadm1237
@muhammadm1237 11 ай бұрын
What application will be used to monitor and diagnose the car?
@mllarson
@mllarson 11 ай бұрын
Picked this up along with the esp32 from you a couple of weeks back. I found a cheap ODB2 cable and spliced that onto the little plug you include with the kit. I copied your simple example from your web site (the one that logs the CAN messages over the serial console). It works but I get an exception every few seconds and the esp32 reboots. Have you had issues like that before? I have never used an esp32 before and am not sure if I set everything up right in the Arduino IDE.
@MrDIYca
@MrDIYca 11 ай бұрын
The reboot issue could have a few causes. Could you shoot me an email? It'd be easier to discuss details and help you out. Just reply to the order confirmation email
@mllarson
@mllarson 11 ай бұрын
@@MrDIYca Will do!
@sathesbe
@sathesbe 10 ай бұрын
Is there any OBD device directly can connect with a mobile hotspot and internet and i can access the car data anywhere from the world from an app? ... thanks
@user-br7cs4gu2r
@user-br7cs4gu2r 5 ай бұрын
Its possible to male a obd error eraser automatic with no bluethoo and wifi ?
@deeznuts-lj2lv
@deeznuts-lj2lv 11 ай бұрын
I have your module and could not get it to work, tried it on multiple cars. It simply will not receive any data. I purchased a $10 CAN BUS module from Amazon and connected it to an ESP32 and using ESPNOW, send the data over to M5 Core2 (ESP32 with a battery and display in a nice little package) and now it works great. The great thing about this setup is that the ESP32+CANBUS is powered on when the car is running, and I have the display that shows real-time data, and could log to SD card. I was inspired by your device, but disappointed that it doesn’t work.
@MrDIYca
@MrDIYca 11 ай бұрын
Sorry to hear my shield didn't work for you, but happy to see your ESPNow solution. Please reach out by email (reply to the order confirmation) so I can make it right
@cameltoast
@cameltoast 11 ай бұрын
Do you have any more details on what module?
@hotelsystem
@hotelsystem 11 ай бұрын
Thank you for share, maybe make to KIA car?
@mutthunaveen
@mutthunaveen 11 ай бұрын
He is Business man bro.... Any business man does what ever to keep his business in a leadership position across competition. I see professionalism and ethics in the content they publish 🎉
@BlondieSL
@BlondieSL 9 ай бұрын
Nice projects! I have a question for you. At the point around 6:30 where you talk about using just random numbers for the MESH_ID, since that is hard coded, is there not a way to obtain the VIN number or some other unique ID number from the OBD2 or Tesla ports? I know that the VIN can be obtained as my OBD2 scanner/analyzer is able to pick it up. As VIN numbers are unique, their format also indicates the manufacturer and even the model of the vehicle. i.e. Honda CRV. If you are able to capture the VIN, you could use that instead of a hard-coded number. ????
@MrDIYca
@MrDIYca 9 ай бұрын
It is doable but highly dependent on the CAN bus decoding and not all CAN buses have access to the VIN. Since this video, I changed the hard-coded value to use the MAC address of the ESP32 instead.
@crazysquirrel9425
@crazysquirrel9425 11 ай бұрын
Things I want disabled: TPMS monitoring and light. Any GPS/WiFi/Similar
@zyghom
@zyghom 11 ай бұрын
@3:50 - You don't want to say 6mA is what ESP32 consumes during the deep sleep, right? it is 1000 times less, unless your board has tons of other circuits there ;-) You can achieve this i.e. by turning ON/OFF the LDO (that converts 12V to 3.3V) - this LDO will consume around 5-20uA depends on which one you use. Still: hundreds of times less than 6mA in mode: "I am doing nothing" ;-)
@EdHayes3
@EdHayes3 11 ай бұрын
Ya, get rid of that ESP32 dev board LDO. It's consuming 99% of that 6ma. Seems like you have a switching regulator on the board you made. Lots of options to think about for quiescent current and fixing it. Good luck!
@MrDIYca
@MrDIYca 11 ай бұрын
thanks for the feedback! Oh, the 6mA can totally be lowered, but let's be real, I'd rather focus on making the gadgets than diving into power optimization. I went down that road for another project, and man it was like weeks of dry desert of mathematics, slopes, and datasheets - definitely not the fun kind of adventure. 6mA would drain the battery in 9 months - good enough for now
@RandomTorok
@RandomTorok 9 ай бұрын
I've ordered the Sheild, a couple of the dev kits. Wondering where I get the OBDB plug. I have a 2016 Kia Soul EV (Electric). Because it's an older vehicle it doesn't have the fancy app that newer EVs have. I want to build a monitor that will monitor that battery charging and let me know when the vehicle is fully charged.
@MrDIYca
@MrDIYca 9 ай бұрын
I'm not sure if there's a dedicated OBDII adapter for your EV. Try looking on Kia Soul forums for help. You can always connect directly to the CAN bus if you know where it is - just be super careful and check your local laws. Online forums are great for DIY projects like this. Thank you for your order and support!
@seethruhead7119
@seethruhead7119 11 ай бұрын
Maybe it would be better to do all decoding of can messages on the gateway. Then send decoded events across to the gadgets. I was thinking of using this for my car. I would decode messages on the gateway and turn them into events I want widgets to respond to. For isntance if i hold my traction control button for 10 seconds I would send a "TRACTION_CONTROL_FULL_DISABLE" event out of the gateway. Any widget would listen to that event and do something like disconnect a relay. Then only the devices attached to the gateway needs to understand CAN. Also I was thinking gadgets could also publish events of their own and be listened to by any other gadget. Like a widget places in my console could be connected to a momentary button that when i press it, it sends an event "LINE_LOCK_ENABLED" which would be listened to by a gadget in my engine bay attached to a solenoid for line lock function.
@franzsembdner8373
@franzsembdner8373 11 ай бұрын
hey, nice project I found your code on git, but it would be nice if your shield (gerber files/schematics) is also open source. Do you plan to publish it in the near future?
@MrDIYca
@MrDIYca 11 ай бұрын
Updated git with schematics
@tonylamb3906
@tonylamb3906 5 ай бұрын
Hi, I have got to of the CAN boards from you. is there any reason it would be bad to have the boards facing each other so the component free backs are facing out instead of the way you show in your other video on were all components are on the outside of the sandwich?
@MrDIYca
@MrDIYca 5 ай бұрын
It is possible but not recommended. Doing so will result in the loss of access to the switch and LEDs, and inadequate heat dissipation.
@NeilLund
@NeilLund 11 ай бұрын
Is there already walk-through on how to create wireless CAN for my Voron printer by chance?
@MrDIYca
@MrDIYca 11 ай бұрын
No, I'm not aware of any. You may want to check the forums. I didn't know some 3D printers use CAN as well, intersting
@NeilLund
@NeilLund 9 ай бұрын
​​@@MrDIYcaYeah, Voron Design custom mods using Canbus has become the go to option included in some modern prepackaged printer DIY kits.
@abdelhameedhamdy
@abdelhameedhamdy 7 ай бұрын
So, in case of if we need to detect engine ignition status, we can read the power voltage if it is more than e.g. 13.5 V else ignition is OFF, right ? IS there another way to read the ignition status from the car using OBD PID codes ?
@MrDIYca
@MrDIYca 7 ай бұрын
I would assume the OBD engine RPM is a good indicator
@fullsendmarinedarwin7244
@fullsendmarinedarwin7244 11 ай бұрын
I bought a CAN gateway but I haven't had time to use it yet :(
@XxNachilloxX
@XxNachilloxX 10 ай бұрын
Can it read the exterior lights status? Like fogs or something like that
@MrDIYca
@MrDIYca 10 ай бұрын
on my Model 3 it does
@generationalgamers8925
@generationalgamers8925 3 ай бұрын
I just splice a wire off of the radio fuse or any that is not constant
@MrDIYca
@MrDIYca 3 ай бұрын
that depends on the car really. Best way it to test it.
@CrankyCoder
@CrankyCoder 11 ай бұрын
Where did you get the empty obd2 case/adapter?
@MrDIYca
@MrDIYca 11 ай бұрын
s.click.aliexpress.com/e/_DdSsGWX
@hshshejejdu971
@hshshejejdu971 10 ай бұрын
How does it differ from elm 327 obd Bluetooth reader?
@MrDIYca
@MrDIYca 10 ай бұрын
OBDII vs CAN
@michaelhamilton2376
@michaelhamilton2376 Ай бұрын
Got the new generation board a couple weeks ago and assembled it all. Programmed the gateway code from your online programmer and it boots up fine. But no messages being shown in the log interface. I can see CAN transactions with a scope on the bus wires. It’s not a Tesla. Ideas for debugging steps ??
@MrDIYca
@MrDIYca Ай бұрын
Did you try this code? gitlab.com/MrDIYca/canabus/-/blob/main/esp32_shield/esp32_can_shield_sample_code.ino
@michaelhamilton2376
@michaelhamilton2376 Ай бұрын
@@MrDIYca - PRINT_CAN_FLAG is commented out in the code. Fixed that and now getting console messages.. on to the next step. Thanks.
@MikeMiner316
@MikeMiner316 Ай бұрын
is the ESP32 CAN Bus Shield soldered when delivered?
@MrDIYca
@MrDIYca Ай бұрын
The shield comes unsoldered
@MikeMiner316
@MikeMiner316 Ай бұрын
@@MrDIYca can it be soldered?
@MrDIYca
@MrDIYca Ай бұрын
I have an assembled bundle if you're interested - store.mrdiy.ca/p/esp32-can-bus-shield-bundle/
@MikeMiner316
@MikeMiner316 Ай бұрын
@@MrDIYca nice, thanks
@briansbier
@briansbier 11 ай бұрын
What do i need to learn in order to start playing with this stuff? I know javascript but 0 knowledge in all this
@MrDIYca
@MrDIYca 11 ай бұрын
I would start with learning about microcontrollers like ESP32/ESP8266. You can get a dev kit ( like amzn.to/3OITBI7) and play with it! I am sure you will find your way. You are already ahead by knowing js!
@Uc9uE3pKsS6uQ
@Uc9uE3pKsS6uQ 4 ай бұрын
7:33 can not find
@hakimyusuf5370
@hakimyusuf5370 6 ай бұрын
why i can not save this video to my playlist?
@MrDIYca
@MrDIYca 6 ай бұрын
sorry, no idea why
@cccbbb3161
@cccbbb3161 8 ай бұрын
HELP PLEASE! Who can help me? Where can I find simple programs, compatible with this board, to experiment with CANbus step by step? Many thanks! (Initialize if necessary, write a simple message, receive a simple message...
@MrDIYca
@MrDIYca 8 ай бұрын
The ESP32 CAN library has a lot of examples that can help you get started github.com/collin80/esp32_can/tree/master/examples
@darekmistrz4364
@darekmistrz4364 10 ай бұрын
Just make sure it's secure. Leaving your Chinese made, security scarce, WIFI+Bluetooth enabled microcontroller connected directly to CAN network of your car is overall not a great security practice
@neeraj.prihar
@neeraj.prihar 10 ай бұрын
Buttery > Battery.
@whatapp524
@whatapp524 11 ай бұрын
Hello
@lewiskelly14
@lewiskelly14 11 ай бұрын
Misleading title
@MrDIYca
@MrDIYca 11 ай бұрын
Sorry to read that, just curious, can you tell me what did you find misleading in the title?
CAN vs OBD2: What is the Difference?
5:57
MrDIY
Рет қаралды 4,8 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 26 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 21 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 6 МЛН
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 552 М.
How to hack your car | Part 1 - The basics of the CAN bus
16:57
Adam Varga
Рет қаралды 288 М.
Massive AliExpress Haul - Arduino & Electronics Edition (2024)
16:58
Risto Innovates
Рет қаралды 3,2 М.
SavvyCAN with ESP32 Running ESP32RET
4:28
MrDIY
Рет қаралды 10 М.
I Hacked Into My Own Car
20:29
Steve Mould
Рет қаралды 2,7 МЛН
You’ve Never Seen WiFi Like This
20:43
Data Slayer
Рет қаралды 620 М.
Как CanHacker , но дешевле от CDEBYTE
5:19
3D Zona
Рет қаралды 2,8 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
The ULTIMATE Raspberry Pi 5 NAS
32:14
Jeff Geerling
Рет қаралды 1,7 МЛН
😱Хакер взломал зашифрованный ноутбук.
0:54
Последний Оплот Безопасности
Рет қаралды 729 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 1,8 МЛН
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 7 МЛН
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 50 МЛН