Nice project idea. I studied a lot of about CAN but never tried anything in person. And this instrument cluster seems like good starting point so you don't brick your car... :)
All automotive technical information should be open source! When you buy a car, the manufacturer should supply all technical information so you can work on your own car that you paid for! Period!
@@voltlog We just voted on the "Right To Repair" which requires auto manufacturers to give up proprietary technical information so independent repair shops can service our vehicles. Of course, car dealers and manufacturers are against it. It's all about money! massrighttorepair.org/
@@voltlog why security risks? When you make it opensource, other security research experts can have a go with it. Now its security by obscurity, and thats a bad practice.
@@marcelhh2101 I am not a security expert so I can't say what the correct approach is but where would you draw the line as to what is disclosed and what not? Who is gonna take the blame once hackers gain access and override the controls of your car because of information that was published as open-source by the manufacturer? I support the right to repair but I think the consequences of opening everything could be serious.
@@marcelhh2101 Working for company that produces automotive ECUs I would say that what you propose it’s not feasible from different perspectives. First its like VoltLog mentioned, there are a lot security reasons for that will be never open source, one example will be related with key or imobilizer of your car, excluding form this discission about milleage. I’m thinking that you will be not happy If one guy will sole your car because he researched open source software of your car. Second, software its tested by manufacturer of the ECU, OEM and also by a third party company hired by OEM to test security of their product. Third reason its that starting with these year EU introduced a more comprehensive set of regulations for cybersecurity for automotive manufactures.
Very cool project. There's an in depth YT series on the CAN bus with Pete on Sparkfun's channel from around a year ago. I watched it, but TBH I didn't understand most of it. I haven't done a project with CAN so it was difficult to contextualize the depth he went into. From a high level abstract perspective, I get the impression CAN is kinda like I2C but more robust, faster, and capable of communication over much longer distances?
I try to look at things differently, at least when I'm just starting out with something new. I don't need to know all the inner details to get something working: I need to know it's a differential bus so I will need two wires and a special hw driver and there is some protocol for signaling but that is taking care by the CAN interface implementation inside the microcontroller. Next I need to know that each message has a CAN ID and some data bytes. The rest is pretty much not important in this early stage.
@@voltlog I get lost really fast when I do that kind of approach. Even when I manage to pull off a task, if I don't intuitively ground my thought process I will forget everything I should have learned. It's kinda why I explore a lot, I'm mostly trying to fit pieces together to build on intuitively later. ...Probably means I'm just dumb, but I don't care. In the Nintendo GnW project, there are two cool chips they used that have part numbers with datasheets. If you need a single cell lithium controller that can charge and handle powering the circuit from USB, the BQ24072 from TI is what they used. The circuit looks pretty simple, and the datasheet, at first glance looks good. They also used a little PMOS switch to cut off power to the LCD controller and flash chip. It's a Toshiba part number SSM6J412TU and comes in a little 6 pin SMD. It's capable of decent loads, but the real kicker is that it works with logic levels all the way down to 1.5volts. It's the first time I've seen a power FET that works that low. I haven't needed anything like that or gone looking, but I will have the circuit block documented soon. I was working on it in kicad earlier today. Good luck with the CAN bus buddy :-) -Jake
Thank you for the information! Hoping for some guidance. I am interested in updating the window/mirror adjustment switch in my vehicle to that of a newer year model. My question is how do I decode the data from the current switch module and match it to the new one? This upgrade is common in Russia and is done by changing resistance in the new switch, I believe. However, it is difficult to get in contact with them so I would love to create my own. Thank you so much!
I ordered one of this adapter immediately after your video :-) I received a reengineered PCB (also with a GD32 instead of STM32, but that's not the point) ...there is no more a "boot" jumper or, maybe, it is simply unpopulated, I have to check thoroughly. Wondering if anyone knows this new board.
If you ordered the one I showed and yet received something else I would recommend you open a dispute for that order and request a refund. Show an image of what you received, you will get the refund 100%.
@@voltlog Sure, thank you, it's gone exactly this way and I considered this option but so far the item is working, it's a little more compact, the cpu is a little more powerful (on paper) althought electrically equivalent and the seller declares it compatible with candlelight ...I'm going to flash it and see if this bricks it, then I decide about dispute :-)
If I had to guess, I would say it would work, those G32's pretty much run the same code without any major issues. I would be unhappy if I didn't have the boot jumper to be able to easily flash different firmware. If it's just unpopulated it's still okay.
The usb - can adaptor you are using looks like a different model to the those you have linked to? Will the adaptors in the link work with SavvyCAN and Candlelight firmware?
@@voltlog The module you show in overlay at 0:50 is different to the one you are using at 6:32 (2 screw terminals vs 4 screw terminals and some minor pcb differences) do they both use the same microcontroller and work with the firmware and software you link to? As far as I can tell first is CANdo clone and second is CANable clone?
@@vincepatti8978 I use the Canable clone with 4 terminals, however the outer ones are GND and 5V which you wouldn't use anyway. I've added a second link to canable specific dongle however I suspect the two are identical and they will work with the same firmware.
It can be very similar although message IDs can be different and can bus architecture can be different depending on the platform but the same rules apply.