DIY Bluetooth + CAN Bus Gauges! MotorvateDIY Garage Ep.39

Тәжірибелік нұсқаулар және стиль

DIY Bluetooth Gauges + CAN Bus Gauges! MotorvateDIY Garage Ep.39
In this episode of Motorvate's DIY garage, we will give you an update on something we have been working on for a while... Bluetooth Gauges with iPhone app!! (and a little more... keep reading)
It is reassuring when we can monitor critical engine stats with a quick glance. BUT if you have ever installed any type of engine sensor, it is not quick or easy to get the the wires through the firewall and into the interior. Often the dash needs to be partly removed and you hope there isn't water leak where the cable passes though the firewall.
Last year on the G37, we installed a fuel pressure sensor, engine oil pressure sensor, manual transmission oil temperature sensor and a differential oil temperature sensor for data logging project. (Details in a future episode)
For the fuel and engine oil pressure sensors, it required most of the trim to be removed below the windshield as well as the glove box and some interior trim. About 4 hours later we had the sensors installed and were ready to put the car back together....
This got us thinking... Wouldn't it be nice to have a wireless sensor? Maybe something like Bluetooth? Then, there is no need to worry about getting a cable from the engine to the interior.
Sooooo....
We are now testing the prototype version of the Bluetooth Sensor Server. This will support up to 8 sensors and send the data out to the Bluetooth network.
Then we got thinking about the car's CAN bus... Since there is so much data being broadcast on the car's network, wouldn't it be nice to display some of it in a gauge format? So we added that.
A while ago, a good friend from California (Hey Eugene!!) asked about an air/fuel gauge.
Since that isn't on the CAN bus, we simply added the OBD request to get the current air/fuel ratio.
The end result is that we now have a module that connects to an 8 input Bluetooth Sensor Server, the car's CAN bus network AND can request any OBD data. PLUS the option to record everything to an SD card, for later analysis.
We have more testing to do, but so far things are working very well.
So to wrap up.... As you know, this channel is all about Doing It Yourself.
The plan is to create DIY kits that you can assemble for your own G37.
That's all for now!
Thanks,
Frank @ motorvate

Пікірлер: 65

  • @deancm3759
    @deancm37592 жыл бұрын

    Nice work Frank!

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    Thanks for the comment. It was easier than I expected :)

  • @gsxellence
    @gsxellence2 жыл бұрын

    Frank has done it again 😃

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    Thanks for your kind words!

  • @gsxellence

    @gsxellence

    2 жыл бұрын

    @@MotorvateDIY keep them coming 😌

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    Will do! In the next few days I hope to have an other update video. MUCH progress has been made and it has a much nicer look and added functionality.

  • @ndk2k4
    @ndk2k42 жыл бұрын

    Awesome progress on this thing

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    Thanks... I don't want to jynx myself, but most of this went together better than expected. My biggest worry was if receiving the bluetooth data and CAN bus data was going to use too much processing power on the micro-controller... BUT it seems good!

  • @scy5
    @scy5 Жыл бұрын

    Subbed! I’ve been putting a lot of time into researching the feasibility of doing a VHR swap in my R34. After watching a lot of your videos, I think your future products will be an asset to the swap

  • @MotorvateDIY

    @MotorvateDIY

    Жыл бұрын

    Thanks for subbing Matt! As timer permits I am also working on "CAN bus converters" that should make it easy for engine swaps like int the 350/G35 VQ35DE to VQ37VHR.

  • @Gfunkbus76
    @Gfunkbus762 жыл бұрын

    Great looking work! Thanks for sharing! I was concerned about lag on wireless but looks like the gauges are pretty responsive!

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    Hey Gavin! In this video the BLE server is only sending data at 9600 bits/second and uses a 128 sample moving window average to reduce gauge flutter. (up 1 digit, down 1 digit, up 1 digit...) The BLE data rate can easily go up to 38,400 bits/second and a RC low pass filter could be added so the MWA could be reduced. BUT as I see it, if a gauge updates 4-8 times per second, it looks instant :)

  • @jezraelflecha1633
    @jezraelflecha1633 Жыл бұрын

    Hello. I love watching problem solving at it's best. I'm in the middle of a SBC 400 swap into my 1955 plymouth. With that swap, I plan on using the Holley Sniper EFI and changing my dash to an aluminum dash (deleting all the old gauges and nobs). They have a separate digital dash/cluster that is over $2000. I would LOVE to have a 12-14 inch screen as my dash/cluster but that is a whole lot of money. If you could make something that just reaches the canbus, the market could be huge for carb to EFI guys like me.

  • @MotorvateDIY

    @MotorvateDIY

    Жыл бұрын

    Thanks for the comment. At this time, I don't have the resources to research what would need to be done, BUT I will add it to my "to be investigated" list :)

  • @Grey-Troll
    @Grey-Troll3 ай бұрын

    That's pretty freakin sweet dude... Been looking around extensively for a all-in-one display or at least modular display, specifically a rectangular one, that displays tire pressure, coolant temp, and oil pressure. Those awesome TPMS systems don't exist with those additional features (too bad, because those are perfect for replacing the compass etc. display above the rear-view in older SUVs). Pretty much ALL of the oil/coolant gauges out there are those ugly as sin giant round things that can't really be modified for a somewhat factory/integrated look that I very much prefer. If your car doesn't have TPMS from the factory Ill bet a 433mhz receiver on your server and aftermarket valve stems would get you that data fairly easily..

  • @MotorvateDIY

    @MotorvateDIY

    2 ай бұрын

    Thanks. My biggest challenge is making an enclosure for it and finding a good place to attach it in the car.

  • @slabua
    @slabuaАй бұрын

    Secret stuff

  • @silverwinterstorm69
    @silverwinterstorm692 жыл бұрын

    Awesome sauce. Wondering as to the outputs... This would be perfect for my HUD build.

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    The wonderful thing about programming a micro controller is that you can convert the data to almost anything :) Tell me more about your HUD set up and let see what we can do :)

  • @silverwinterstorm69

    @silverwinterstorm69

    2 жыл бұрын

    Sorry just read your reply. So far the hud input in HDMI. Next iteration will be a sdiy build using a possible pico projector, with teleprompter as my screen. Plan on fully integration with turns, headlights, obd readout. Basically a raspberry pi in current iteration. I'll load a vid of this build if you like. And next to come. I would love to integrate yours into mine. Complete with infinite focus...

  • @silverwinterstorm69

    @silverwinterstorm69

    2 жыл бұрын

    Granted with just select gauges in driving mode.

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    I'd love to see a video of your set up!

  • @anthonymonge7815
    @anthonymonge7815 Жыл бұрын

    I am currently researching CAN Bus security (or really the lack thereof). This is a good vid that has helped me in the breakdown of CAN Bus signals to Bluetooth.

  • @MotorvateDIY

    @MotorvateDIY

    Жыл бұрын

    Keep in mind that the Bluetooth sensor signals are custom developed by me and have nothing to do with the CAN bus signals. Good luck on your research!

  • @anthonymonge7815

    @anthonymonge7815

    Жыл бұрын

    @@MotorvateDIY thanks! Do you have a repo for your software/firmware or is it proprietary?

  • @MotorvateDIY

    @MotorvateDIY

    Жыл бұрын

    Good question... I have spent $1,200 in purchasing used ECUs/BCMs/IPDMs/TCMs, etc and have about 2,000 hours reverse engineering the Nissan/Infiniti CAN bus and about 500 hours in product development. The initial plan was to start a business and sell these gauges, but I haven't committed to that just yet. I need to look into liability, international taxes and verify I can sell these in the US. (US import laws may prohibit it) Part of me would like to get a small return for my time and the other part is thinking of giving it all away. Until I figure out what I want to do, I will hold onto everything.

  • @anthonymonge7815

    @anthonymonge7815

    Жыл бұрын

    @@MotorvateDIY I can fully respect that. The work I am doing now is for my PhD. I keep it close to the vest because others may try and beat me to it and then I have to find another option. Already happened once. I should be done in about a year. I will reach out when done and show what was discovered. It is more on security of the CAN Bus (which has crappy security now).

  • @MotorvateDIY

    @MotorvateDIY

    Жыл бұрын

    Thanks for your understanding! If you are looking at automotive security, you might want to also look at RTL_433 with a $40 "software defined radio" With this, I can get the tire pressures and unique TPMS IDs of the cars that drive by my house...plus my neighbours weather station temp/humidity and much more.

  • @independentsoul7396
    @independentsoul73962 жыл бұрын

    so way back in the Maxima days there was a mod to keep the fog lights on when the high beams were used. is there a similar mod of that type that you may know of for the G? i'm installing some switchback fog lights and assume i'm gonna have issues with the color flip when i use the high beams.

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    I remember that.... I had a (wonderful!!) 1995 Maxima and many people did that mod. However, for the G the BCM (body control module) receives the headlight and fog light requests and won't allow high beams and fog lights to be on at the same time. I am not familiar with "switchback fog lights" so I don't think I will be much help. You could post this on myg37.com, they have some very knowledgeable people there that are happy to answer questions. Good luck!

  • @billmorris3603
    @billmorris36032 жыл бұрын

    Hey frank! Love the work! What is your process for reverse engineering the CAN bus? Are you on the lookout for specific bits of code or just throw darts at the board and hope one hits?

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    Thanks! A year ago, I didn't know anything about the data on my car's CAN bus, and since there are over 2,000 messages per second, I needed to develop a strategy. In the spring, I will put together a video showing how to get started, things to look for. The short version is to record the CAN bus data and go for a drive. Most of the time I will write a script of how to drive/what to do and then follow that. For example it might be something like: 1/2 throttle acceleration up to 50 KPH, turn right, stop, back up, accelerate up to 70 KPH, brake, turn left, come to a stop. Then I use a program that will plot the data in a graph, and try to find items that follow the driving pattern. Things like vehicle speed, throttle position brake lights, and turn signals are usually easy to find. However, all you have now is the raw data. It need to be converted to the real values. For example, often the vehicle speed on the CAN bus is the actual speed x 100. Why? This prevents the micro controller from needing to do floating point math, witch takes more time than integer math. You also need to understand bits, bytes, and binary/hexadecimal number systems. As for the program I use, I really like SavvyCan. It is free and you can find it on GitHub.

  • @zigarten
    @zigarten2 жыл бұрын

    Hey, off-topic, where'd you get that phone holder?

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    It is from Amazon: www.amazon.ca/Holder-Release-Installation-Compatible-withiPhone/dp/B09LQCNXJ5/ref=sr_1_8

  • @wilbertwilson9387
    @wilbertwilson93872 жыл бұрын

    Great Work. I am interested in how the differential temp sensor was done. I hear some noise in my G35 rear-end, changed bearing still have noise. Want to know if it's heating up.

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    I'm going to add a section to motorvate.ca that will show how to do this. Until them, I used an early 2000s Sentra engine coolant sensor from a scrap yard and a threaded adapter to fit it into the drain plug of the diff. This plugs into the Bluetooth server and sends out the temp. Give me a few weeks to get the page up. I will post a short video when it is done.

  • @AutoRevLife
    @AutoRevLife10 ай бұрын

    Could you also read and log data like RPM, speed, or mpg?

  • @MotorvateDIY

    @MotorvateDIY

    10 ай бұрын

    Yes! The ability to data log onto a micro SD card has been built in from the the start. It currently logs 31 items from engine oil pressure & temp, coolant temp, individual wheel speed, vehicle speed, RPM, corning g force, engine HP & torque, AWD torque, and many more. I could use the "fuel flow rate" and calculate MPG, but it really isn't important to me... plus the car already has that display.

  • @tki4019tki
    @tki4019tki6 ай бұрын

    I've been looking for this type of device to monitor: Engine Oil Temp, Engine Oil Pressure, Trans Temp without the large round gauges on my 5.9 Cummins. How far are you along on producing a completed device? The diesel truck guys will love this device!

  • @MotorvateDIY

    @MotorvateDIY

    6 ай бұрын

    Unfortunately, since most of the data is from the vehicle's network (CAN bus) it is vehicle specific. This only works on Infiniti G37, Q40, Q50, Nissan 370z and other Nissan / Infiniti models from 2010 to about 2017. Now, the Bluetooth gauges should work on everything, as long as there is a way to install the sensors on the 5.9 Cummins and transmission. There may be a way to get the data off the truck's network (if it has one) , but I don't have access to one and would take many, many hours to reverse engineer.

  • @tki4019tki

    @tki4019tki

    6 ай бұрын

    Thank you for the reply. There are sensors the 06 Ram network. They show up on my phone app, Torque using a obd2 Blutooth sevice and a digital dash. This year model has a oil pressure switch and a trans temp sensor on the valve body. I was looking for a device that would accept sensor inputs, oil pressure and trans temp taken at the torque converter. I mounted an oil P gauge on the steering column and have considered mounting a trans temp gauge beside it. It would be so much cleaner install to have a DD that accepted these inputs. My race car standalone ecu and tcu accept inputs with calibration maps. These open the door for innovation. I see a need for this product in the HD truck market. We spent alot of money improving the gauges.

  • @MotorvateDIY

    @MotorvateDIY

    6 ай бұрын

    I see your point. Let me do some research into the RAM CAN bus network(s) to understand them better. The same hardware can be used to display anything that is on the CAN bus or that can be requested via an OBD mode $01 (live data) request.

  • @josecastillo2536
    @josecastillo25362 жыл бұрын

    Very cool! Just curious, are you able to get live TPMS data for each tire with this?

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    I think so... but I have more testing to do. I will have an update video in the next few weeks.

  • @RoyMay24

    @RoyMay24

    2 жыл бұрын

    TPMS sensors don't constantly transmit data. The pressures are stored in persistent memory unless specific conditions are met, such as a decrease in pressure. But yes, you can read tpms data

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    Correct, but in the case of the G37, the tire pressures are updated every 13.5 to 65.8 seconds when the car is in motion. When stationary, they are updated every 10 hours. So the displayed tire pressures are as "real time" as possible.

  • @davi5music521
    @davi5music521 Жыл бұрын

    Any project website? How you filter data?

  • @MotorvateDIY

    @MotorvateDIY

    Жыл бұрын

    No website, but you can see the progress on my Facebook page: Frank Motorvate. As for filtering data, there isn't any. The ESP32 is fast enough to process all ~1200 CAN frames per second.

  • @gjsxnobody7534
    @gjsxnobody7534 Жыл бұрын

    Any guidance on how to reverse engineer the CANbus data?

  • @MotorvateDIY

    @MotorvateDIY

    Жыл бұрын

    Oh boy.... that's a tough question to answer. As I see it, you need to know a little about a lot of things to reverse engineer the CAN bus. For example, you need a wiring diagram to know how many modules are on the CAN bus. You also need to know what each module does, so you have a rough idea of what inputs it needs to do its job. You also need to understand hex and binary number systems. In the fall, I do plan on doing an "Intro to CAN bus reverse engineering" episode to share what I have learned and to give tips to recognize different types of signals. I hope you can wait until then!

  • @dasburninator
    @dasburninator5 ай бұрын

    Have a github repo with this documented at all?

  • @MotorvateDIY

    @MotorvateDIY

    4 ай бұрын

    It is on my list of things to do, but hasn't happened yet. However, it is based on the ESP32 BLE client example.

  • @Forged407
    @Forged4072 жыл бұрын

    Hey frank

  • @MotorvateDIY

    @MotorvateDIY

    2 жыл бұрын

    Hey Tommy!

  • @stevecarlisle3323
    @stevecarlisle332310 ай бұрын

    Its a video about what CAN be done, not HOW to go about doing it.

  • @MotorvateDIY

    @MotorvateDIY

    10 ай бұрын

    That's correct. Are you asking for a video on HOW?

  • @jcprice1234

    @jcprice1234

    8 ай бұрын

    @@MotorvateDIY I don't know if they are but I would love one with a parts list and sample code - I'm inspired to do a project 😂

  • @MotorvateDIY

    @MotorvateDIY

    8 ай бұрын

    If you are looking for really good LCD gauge examples and sample code, have a look here: www.youtube.com/@VolosProjects This guy does fantastic work!

Келесі