CAN Gateway: Monitoring Cars Wirelessly!

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 96

  • @AlexanderBelikov
    @AlexanderBelikov Рік тому +19

    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.

  • @KarlKristianMoeng
    @KarlKristianMoeng Рік тому +6

    Awesome stuff, looking forward to the follow up.

  • @substandard649
    @substandard649 Рік тому +6

    This is brilliant . I'm follow this project closely and looking forward to the gadget videos

  • @fredimachadonet
    @fredimachadonet Рік тому +9

    Nice content! I just ordered one CAN Shield to try on my Model 3. Thank you!

  • @electronics.unmessed
    @electronics.unmessed Рік тому +4

    Just joined! Great content that inspires my for my projects.

  • @gwaeron8630
    @gwaeron8630 Рік тому +7

    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.

  • @Minitia.R56
    @Minitia.R56 Рік тому +7

    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 Рік тому +1

      Best way is to make a dual harness spliced into a single.

    • @samimejri8079
      @samimejri8079 Рік тому

      @@sirseven3 a splitter will just let one OBD2 device work, the other will not get data!

    • @sirseven3
      @sirseven3 Рік тому

      @@samimejri8079 they have to be using different protocols. One using Bluetooth and the other using wifi

  • @mortenmoulder
    @mortenmoulder Рік тому +20

    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 Рік тому +2

      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 Рік тому

      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

  • @romaindemaison3127
    @romaindemaison3127 Рік тому +4

    I would love to see writting on the canbus, for example to open or close widnows, automatically change drive mode, and so on

    • @monneratrj
      @monneratrj 4 місяці тому

      That would be awesome too... be able to change parameters on the fly...

    • @qkb3128
      @qkb3128 4 місяці тому

      You gather those codes from the scan… an example would be you have connected ….you operate are the driver side window and view the corresponding action and then replay that action. It would put the window down. You Want to record both actions up and down. Just an example.

  • @FrankGraffagnino
    @FrankGraffagnino Рік тому +4

    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  Рік тому +1

      Yes absolutely - one less thing to fail when MQTT is the main communication channel for a project

  • @RandomTorok
    @RandomTorok Рік тому +1

    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  Рік тому

      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!

  • @ninjasploit
    @ninjasploit Рік тому +1

    Hey! Have you done any low-power GPS w/ cellular gadget? Would love something like that!

  • @NicksStuff
    @NicksStuff 26 днів тому

    Do you eventually bring the data to something like Home Assistant or rather a solution of your own making?

    • @MrDIYca
      @MrDIYca  26 днів тому

      I do both: mqtt forward and my own gadgets

  • @Bogdan2663
    @Bogdan2663 Місяць тому

    Hello! It is possible to start/stop the engine, turn on the heat and control windows with those modules?

  • @zyghom
    @zyghom Рік тому +4

    @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 Рік тому +1

      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  Рік тому +4

      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

  • @KillerShadow07
    @KillerShadow07 Рік тому

    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.

  • @mutthunaveen
    @mutthunaveen Рік тому

    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 🎉

  • @meyou4663
    @meyou4663 6 місяців тому

    Did i miss it or you didnt explain how you parse the dat from can bus to digits with real value meaning?

    • @MrDIYca
      @MrDIYca  6 місяців тому +1

      I just used a DBC file for my car to parse the CAN data

  • @ersincelebi5376
    @ersincelebi5376 Рік тому

    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?

  • @UnnamBhargavsaikarthikeyachowd
    @UnnamBhargavsaikarthikeyachowd 20 днів тому

    Is there a hardware schematic file for this,I am very curious

    • @MrDIYca
      @MrDIYca  20 днів тому

      Yes, it is on the git repo.

  • @tygovorst
    @tygovorst Рік тому

    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

  • @NeilLund
    @NeilLund Рік тому

    Is there already walk-through on how to create wireless CAN for my Voron printer by chance?

    • @MrDIYca
      @MrDIYca  Рік тому

      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 Рік тому

      ​​@@MrDIYcaYeah, Voron Design custom mods using Canbus has become the go to option included in some modern prepackaged printer DIY kits.

  • @michaelhamilton2376
    @michaelhamilton2376 8 місяців тому

    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  8 місяців тому

      Did you try this code? gitlab.com/MrDIYca/canabus/-/blob/main/esp32_shield/esp32_can_shield_sample_code.ino

    • @michaelhamilton2376
      @michaelhamilton2376 8 місяців тому

      @@MrDIYca - PRINT_CAN_FLAG is commented out in the code. Fixed that and now getting console messages.. on to the next step. Thanks.

  • @pstaramos
    @pstaramos 29 днів тому

    do you have a europe supplier for the shield?

    • @MrDIYca
      @MrDIYca  26 днів тому

      No, sorry. I ship from Ontario, Canada.

  • @muhammadm1237
    @muhammadm1237 Рік тому

    What application will be used to monitor and diagnose the car?

  • @abdelhameedhamdy
    @abdelhameedhamdy Рік тому

    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  Рік тому

      I would assume the OBD engine RPM is a good indicator

  • @XxNachilloxX
    @XxNachilloxX Рік тому

    Can it read the exterior lights status? Like fogs or something like that

    • @MrDIYca
      @MrDIYca  Рік тому

      on my Model 3 it does

  • @hshshejejdu971
    @hshshejejdu971 Рік тому

    How does it differ from elm 327 obd Bluetooth reader?

  • @mllarson
    @mllarson Рік тому +1

    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  Рік тому

      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 Рік тому

      @@MrDIYca Will do!

  • @cruxautoworks
    @cruxautoworks Рік тому

    Its possible to male a obd error eraser automatic with no bluethoo and wifi ?

  • @tonylamb3906
    @tonylamb3906 Рік тому

    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  Рік тому +1

      It is possible but not recommended. Doing so will result in the loss of access to the switch and LEDs, and inadequate heat dissipation.

  • @MikeMiner316
    @MikeMiner316 7 місяців тому

    is the ESP32 CAN Bus Shield soldered when delivered?

    • @MrDIYca
      @MrDIYca  7 місяців тому

      The shield comes unsoldered

    • @MikeMiner316
      @MikeMiner316 7 місяців тому

      @@MrDIYca can it be soldered?

    • @MrDIYca
      @MrDIYca  7 місяців тому

      I have an assembled bundle if you're interested - store.mrdiy.ca/p/esp32-can-bus-shield-bundle/

    • @MikeMiner316
      @MikeMiner316 7 місяців тому +1

      @@MrDIYca nice, thanks

  • @kobepower
    @kobepower 3 місяці тому

    what the point of this device, what are u doing by getting can msg from teh car im confused

    • @MrDIYca
      @MrDIYca  3 місяці тому

      check my latest videos for ideas

  • @AutoRevLife
    @AutoRevLife Рік тому +2

    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

  • @fullsendmarinedarwin7244
    @fullsendmarinedarwin7244 Рік тому +5

    I bought a CAN gateway but I haven't had time to use it yet :(

  • @briansbier
    @briansbier Рік тому

    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  Рік тому

      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!

  • @CrankyCoder
    @CrankyCoder Рік тому

    Where did you get the empty obd2 case/adapter?

    • @MrDIYca
      @MrDIYca  Рік тому

      s.click.aliexpress.com/e/_DdSsGWX

  • @crazysquirrel9425
    @crazysquirrel9425 Рік тому

    Things I want disabled:
    TPMS monitoring and light.
    Any GPS/WiFi/Similar

  • @Uc9uE3pKsS6uQ
    @Uc9uE3pKsS6uQ 11 місяців тому

    7:33 can not find

  • @generationalgamers8925
    @generationalgamers8925 10 місяців тому

    I just splice a wire off of the radio fuse or any that is not constant

    • @MrDIYca
      @MrDIYca  10 місяців тому

      that depends on the car really. Best way it to test it.

  • @franzs1
    @franzs1 Рік тому +3

    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  Рік тому +6

      Updated git with schematics

  • @hakimyusuf5370
    @hakimyusuf5370 Рік тому

    why i can not save this video to my playlist?

    • @MrDIYca
      @MrDIYca  Рік тому +1

      sorry, no idea why

  • @navjotsingh2457
    @navjotsingh2457 6 місяців тому +1

    cool

  • @cccbbb3161
    @cccbbb3161 Рік тому

    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  Рік тому

      The ESP32 CAN library has a lot of examples that can help you get started
      github.com/collin80/esp32_can/tree/master/examples

  • @hotelsystem
    @hotelsystem Рік тому

    Thank you for share, maybe make to KIA car?

  • @seethruhead7119
    @seethruhead7119 Рік тому

    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.

  • @darekmistrz4364
    @darekmistrz4364 Рік тому +2

    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

  • @emadibnalyaman8073
    @emadibnalyaman8073 Рік тому

    عمل اكثر من رائع، يا ريت تعمل هندسة عكسية لنظام التواصل بين سيارات تسلا.

  • @neeraj_prihar
    @neeraj_prihar Рік тому +1

    Buttery > Battery.

  • @lewiskelly14
    @lewiskelly14 Рік тому

    Misleading title

    • @MrDIYca
      @MrDIYca  Рік тому

      Sorry to read that, just curious, can you tell me what did you find misleading in the title?

    • @dennisestenson7820
      @dennisestenson7820 Місяць тому

      It's wired to the car but it's wireless over ESPnow.