Тёмный

DIY EV Part 4 - Reading the CAN Bus part 4 - Controlling the Dash. 

Ali Bro
Подписаться 4,9 тыс.
Просмотров 23 тыс.
50% 1

Please check out the links below.
They are affiliate links so I will receive a few cents if you make a purchase but you won't pay any extra.
Thank you for your support.
In this video I cut the Dash CAN Bus cables so that I can connect directly to it. This means I don't have the ECU firing data continuously causing conflicts.
I can also confirm what is analogue and so won't need CAN signals to control.
Go here for more info www.landyzone....
and here (you may need to sign up to see this)
www.bimmerforu...
The CANHacker software is available here.
www.mictronics...
Copy and paste the URL above, click on Archive, scroll down and click on USB-CAN Bus Interface. Click on Canhacker v2.00.01 to download it.
NOTE! If the link comes up as "Forbidden" try copying and pasting the URL into your browser or Google mictronics. Or just try refreshing the screen might work.
The sketch for it is here
github.com/aut...
Libraries and connection diagrams for it are here
github.com/aut....
github.com/aut....
After installing the libraries you may have to edit the canhacker.h file to match the clock speed of your MCP2515 adapter. Mine is an 8Mhz adapter and the default is 16Mhz.
If you bought a Nano from eBay you may need to select Nano then select ATmega328P(Old Bootloader) to get the sketch to upload.
If you get nothing on the CANHacker software
1. Double check you are using the correct CANbus speed for your car.
2. Check the baud rate of the Serial port is correct.
3. Check in the settings that "Listen Only" is UNTICKED.
Hardware Links
Arduino Uno
Ebay.co.uk ebay.us/pGWsxa
Ebay.com ebay.us/t4UoXS
Amazon.co.uk amzn.to/3xmldbR
Amazon.com amzn.to/3hwY2EY
MCP2515 8Mhz CAN Module
Ebay.co.uk ebay.us/WvDFnR
Ebay.com ebay.us/BIFEXF
Amazon.com amzn.to/3ys5Q1L
Amazon.co.uk amzn.to/3dM9tIa
Uni-T Clamp meter
Amazon.co.uk amzn.to/3h7ttWy
eBay.co.uk ebay.us/dt6YTz
Amazon.com amzn.to/3xPYdlC
Ebay.com ebay.us/BhPrqF
Aliexpress s.click.aliexp...
Cheap Ebike Controller
ebay.co.uk ebay.us/8dPcJm
Amazon.co.uk amzn.to/3zZMoec
Amazon.com amzn.to/2UrJxKP
ebay.com ebay.us/WXDo9m
Aliexpress s.click.aliexp...
Battery building Supplies
Cell Holders 10S ebay.us/POV3ap
Cell Holders 5S ebay.us/SZVatA
Solid Nickel strip 8mm x .15mm ebay.us/2iHNTL
Solid Nickel Strip 10mm x 0.15mm ebay.us/UZMSvA
18650 Cells
If you are looking for 18650 cells to build a battery pack here is where I buy mine. I have always used LiitoKala cells and found them to be good quality.
Note the Name brand cells are copies, they are NOT genuine but do have similar properties to the original and are still excellent batteries.
Panasonic Look alike s.click.aliexp...
Samsung Look alike s.click.aliexp...
LG Look alike s.click.aliexp...
LiitoKala 3400mAh 20A max s.click.aliexp...
LiitoKala 3000mAh 35A max s.click.aliexp...
LiitoKala 3500mAh 35A max s.click.aliexp...
Also note LiitoKala have several shops on Aliexpress with slightly different names but the products are all the same.
Smart BMS (Bluetooth)
Aliexpress s.click.aliexp...
Amazon.co.uk amzn.to/3h799pu
Amazon.com amzn.to/3dvLXyW
eBay.com ebay.us/YOJtbD
eBay.co.uk ebay.us/PQVsBa
Bafang BBS01, BBS02, BBSHD Mid Drive Kit
Amazon.co.uk amzn.to/3y6XWdZ
Amazon.com amzn.to/3w51RXl
eBay.com ebay.us/39OXlW
eBay.co.uk ebay.us/ElYb7K
KT Sine Wave Controller/Kit
eBay UK ebay.us/kGcnVC
eBay.com ebay.us/asy5lJ
Amazon UK amzn.to/2SdaoJU
Amazon.com amzn.to/3gWCdQd
Aliexpress s.click.aliexp...

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 85   
@kafamagore5399
@kafamagore5399 3 года назад
Hello. Does ford focus 2000 has can bus wiring? Thanks.
@alibro7512
@alibro7512 3 года назад
I don't know but if it does then probably engine bay and dash only. It may not even have CAN at the ODB2 port but a quick Google should tell you more.
@fuzzs8970
@fuzzs8970 3 года назад
Hello. Thanks for sharing your work. Hope to hear from your work soon. Any progress most welcome.
@benriefourie115
@benriefourie115 4 месяца назад
Gr8 work sir. Quick question. How does the speedo vs odo work? Will the odo keep ticking when you write speed to the cluster? My idea is to build a transceiver with 2x MCP2515 and a Ardiuno. Receiving all messages and sending them to the cluster. Then I modify the speedo signal as I want to change my tire size and have my odo correct.
@alibro7512
@alibro7512 4 месяца назад
Not sure about the odo TBH but a better way to go is an Arduino Due with SavvyCAN and two transceivers. The Due already has two CAN ports but needs the transcievers to communicate with the outside world and Savvycan was designed to work with it.
@Toturials
@Toturials 3 года назад
Hi, Thanks it is nice video.i have a question can i connect through OBD2 Plus (Pin14 canL pin 6 CanH)?will it work for mitsubishi 2009
@alibro7512
@alibro7512 3 года назад
I don't know about the Mitsubishi, you would need to confirm CAN is available at the OBD2 port as it isn't in my 04 LandRover but is in my 2012 Merc. If available it is probably locked and needs a command to unlock it.
@martynasetminas7845
@martynasetminas7845 4 года назад
Hi, I am struggling with this. How did you figure out what can messages you need to send to make those lights go out? When you disconnected the dash the only remaining Can ID's were 613, 615, 618. But when you are sending Can you use ID 1F8. What 1F8 stands for then and how did you figure that out? Thanks
@alibro7512
@alibro7512 4 года назад
Have you watched all four videos? The first three explain how I got to this stage.
@alibro7512
@alibro7512 4 года назад
Also check here www.landyzone.co.uk/land-rover/freelander-ev.360880/ and here www.bimmerforums.com/forum/showthread.php?1887229-E46-Can-bus-project but you may need a login to see it.
@martynasetminas7845
@martynasetminas7845 4 года назад
@@alibro7512 Thanks I watched all of them again I had missunderstood how it works. I thought you were modifying messages that you were receiving from your dash. Your instructions were super helpful and I was able to receive and send messages with canhacker. Did you get that code written to send multiple can messages at once? Would you mind sharing? Thanks
@alibro7512
@alibro7512 4 года назад
@@martynasetminas7845 Great, I'm glad to hear it was helpful. I've moved on to the next stage of the project and have removed the engine from this car so for now this part is on hold. As soon as I have more figured out I will share it but that could be 6 months or more from now. I'm not known for my speed in projects like this. 😋
@taezath1695
@taezath1695 Год назад
Hi, I finally connected it to the Canhacker with UNO via OBD and can see the CAN bus messages, but after a second, the messages seem to stop sending. Do you have any idea ?
@alibro7512
@alibro7512 Год назад
I made this video a couple of years ago and had some issues similar to yours at the time. I think the software is a bit flaky but also ensure the cables are properly twisted and playing around with the settings might help. Also make sure to confirm the resistance across the CAN wires is correct. You should have two 120 ohm resistors in parallel so ensure all power is off and measure the resistance and it should be around 60 ohm
@taezath1695
@taezath1695 Год назад
@@alibro7512 Thank you for your suggestion
@nhutdominh7624
@nhutdominh7624 4 месяца назад
Your video is very helpful. I have a question that how many ohm resistors should I install in my MCP2515. Thanks!
@alibro7512
@alibro7512 4 месяца назад
All CAN networks need to have two 120 ohm resistors, one at either end. If you are connecting to an existing working network it will already have them so you don't need any.
@nhutdominh7624
@nhutdominh7624 4 месяца назад
@@alibro7512 it seems my problem is the OBD II port, after going through all your videos and reading the comments I saw you mentioned using another library, I wonder if I can get Any instructions from you? I feel very grateful for that!
@alibro7512
@alibro7512 4 месяца назад
@@nhutdominh7624 Sorry I made this video 3 years ago and haven't looked at it the OBDII connection again since. My EV project is connected directly to the CAN wires in the loom.
@joseRoberto-vl8es
@joseRoberto-vl8es 3 года назад
Hello good morning, I performed the assembly and tried to connect via CAN BUS on my honda accord but I couldn't read anything. So I ask you this code that you left the link I don't need to modify anything correct? Just copy and paste and change the oscillator crystal frequency to 8MHZ? Hugs and thanks for the excellent vi=deo!
@alibro7512
@alibro7512 3 года назад
Hi This should work if you are connected directly to the CAN bus wires. It probably won't if connected to the obd2 port
@kirchann
@kirchann 2 года назад
Yea, great. I try to repeat this.. reciver works sometimes. but tranciever never. Today solded connection between arduino uno & mcp2515
@alibro7512
@alibro7512 2 года назад
I have found this software to be a bit flakey and prone to freezing. I found a better system and will be making a video about it soon.
@johnnodge4327
@johnnodge4327 4 года назад
Good work Ali. You should find all ABS ECU functions continue to work, as long as the ABS and Ipack can communicate. To make e oil pressure and no charge light go out, you simply need disconnect the connections from the engine, which of course will happen when the engine isn't there.;) The temperature gauge is an interesting one, but it could be down to the way the gauge is programmed. The gauge is graduated so it only reacts to large swings in engine temperature. Due to this, you might find the code window for partial needle movements are small. Keep up the good work.
@alibro7512
@alibro7512 4 года назад
Hi John Thanks for the comment, I Tried driving the car with the ECU disconnected and the only warning lights were TC and HDC so hopefully it will be fairly simple to put them out and if it's as simple as disconnecting the sensors for Oil pressure and Charge lights then the warning lights shouldn't be an issue at all. I may have another go at controlling the temp gauge before removing the engine but I don't think it will be a major issue.
@111chicane
@111chicane Год назад
​@@alibro7512Hi, Ali! Or should I call you CAN Guru? :) I was wondering if you can help me out with my project. I need to sniff the BMW's K-CAN network to determine when the car is in Ignition. I need someone to write the code for a PIC18 micro or any other similar microcontroller with built-in CAN interface. This, of course, is a paid gig. I don't expect you to do it for free. Please let me know if you're interested in that, or maybe know someone who might be. Thank you!
@alibro7512
@alibro7512 Год назад
@@111chicane lol, unfortunately my coding is worse than my CAN knowledge so I don't think I'd be much help. Chatgpt and Bard on the other hand are pretty clever at doing exactly what you need. It might take a couple of goes getting them to get it right but that's what I would do.
@CASHSEC
@CASHSEC 2 года назад
Well done Ali. You have achieved your aims so far and by now I expect your car has the electric motor in it. The Temp gauge and fuel guage may have analogue to digital converters some where to cover the full range of the guages. This has been a really brilliant strategy group get you where you want to be. Respect!!
@fotoamgamgfoto3695
@fotoamgamgfoto3695 Год назад
Hi! I have an electric motorbike where battery can be only used charge/discharge if it gets CAN communication. Which would be the best way to capture signals from charger and replay toMOCK it with Arduino?
@alibro7512
@alibro7512 Год назад
Have you tried using a setup similar to mine? It may not be the best but is probably the cheapest.
@fotoamgamgfoto3695
@fotoamgamgfoto3695 Год назад
​@@alibro7512 I will try to build it, just not was able to connect to the signals yet as no extension cable.... it uses "M25 ebike plug" which is a bit expensive and has about 9 pins.... I am not sure what other pins to set to what value for the stock charger to think it is connected to the bike battery... I located the CANH and CANL from controller manual and know the + and - and which pin to ground to force battery to listen to can bus..... So next try would be to try the stock charger CAN pins will it say something or not without a Y cable to the battery... then if there are packets replay it with arduino to the battery..... I have no better idea yet...
@wkl3968
@wkl3968 3 года назад
When disconnect from car can system. Do u need to add 120ohm to the can hi and low?
@alibro7512
@alibro7512 3 года назад
I tried it with and without a resistor and it worked both ways. If not in the car you need 120ohm both ends.
@frundlemud
@frundlemud Год назад
excellent. keep going. ta
@jaykor9970
@jaykor9970 3 года назад
hello bro. well watching your video. It really helps me to do my project. anyway, can I clear 'DTC' with CANHACKER program?? If it is possible please note me. thank you~
@alibro7512
@alibro7512 3 года назад
Hi I guess the answer could be yes if you know exactly what messages to sent to the car but who knows what they are? I suspect it would be easier to use Torque with a Bluetooth Dongle.
@jaykor9970
@jaykor9970 3 года назад
@@alibro7512thank you for your super fast reply!!! I prepared all the library and software... the only thing that is left is to find out what code to send . It seems to be well known the PIDs on the internet. As you show on this video, turn on or off the lamps seems not be seeing to actually control that function right? just turning on or off the lamps.. If it's not It would be more easier to erase the DTC code.. plz note me some tips thanks for your super fast reply one more.. :)
@ervbon7493
@ervbon7493 3 года назад
Hi, Great videos by the way. Can the MCP2515 store and push out CAN messages without the presents of the laptop. Does it have the capacity to be programmed this way? Thanks
@alibro7512
@alibro7512 3 года назад
As far as I know it is just a transceiver but the Arduino can. Some Arduino Uno's have SD card readers for storing data but that is way above my pay grade.
@ervbon7493
@ervbon7493 3 года назад
@@alibro7512 Ok Thanks for getting back to me. Keep you the good work on your project.👍
@jaykor9970
@jaykor9970 3 года назад
hi bro again.. Would it be possible to connect can high, low line directly to obd2 port??? would it gonna be working>?
@alibro7512
@alibro7512 3 года назад
It depends on your car. This car has no CAN at the obd2 port so I can't do it. More modern cars can have CAN at the port but it needs to be enabled.
@jaykor9970
@jaykor9970 3 года назад
@@alibro7512 thanks for your reply!! I'm running kia 2019 forte now, and would it be possible to connect mcp2515 can high,low cable to obd2 port can high,low port?
@sfcoawol6273
@sfcoawol6273 3 года назад
@@jaykor9970 anything is possible if your willing to put in the work but if your asking the question instead of researching it I would not recommend doing that since your probably going to break your newer vehicle and might struggle fixing it, not trying to be a dick or anything, I'm just encouraging you to do some research and maybe practice on a older or junk vehicle. maybe buy and old gauge cluster and practice controlling that, used gauge clusters are cheap.
@fuzzs8970
@fuzzs8970 2 года назад
Hi Any new experiment from you on the can bus? Won't mind hearing more. Thank you again
@alibro7512
@alibro7512 2 года назад
Yes, I've been doing a lot more CAN related stuff. Hopefully a new video in a week or so.
@fuzzs8970
@fuzzs8970 2 года назад
@@alibro7512 will definitely wait for it.
@josechamba262
@josechamba262 Год назад
how to get the engine rpm ID?
@alibro7512
@alibro7512 Год назад
Start by using Google to search for the PID for your car. If no joy then you'll need to capture the CAN from your car and search through it for the RPM as you rev the car.
@joeclarke1222
@joeclarke1222 6 месяцев назад
Any help? Im trying to drive a mk4 mondeo ipc cluster over can with arduino and mcp2515 setup. Ive read somw can messages from my car but cannot get the cluster yo do anything or reapond. I have vcc, gnd and two twisted mid speed can wires connected. Is is possibke the cluster is to blame? Ive reflowed the connevtor pins with leaded solder but still not talking.
@alibro7512
@alibro7512 6 месяцев назад
Have you any termination? with the power off you should see 60 ohms across the CAN lines.
@joeclarke1222
@joeclarke1222 6 месяцев назад
@@alibro7512 I have 60 ohms across the can wires. There's a 120 ohm resistor on the Arduino can module
@alibro7512
@alibro7512 6 месяцев назад
High is usually @@joeclarke1222 Have you confirmed CAN high and Low? CAN High should have the higher voltage.
@joeclarke1222
@joeclarke1222 6 месяцев назад
@@alibro7512 yes I believe it's correct. High is about 3v and Low is 1.5v. pretty happy with connections. Just can't seem to get the cluster to work. Could it be cluster fault?
@alibro7512
@alibro7512 6 месяцев назад
@@joeclarke1222 It could be but if you are not sending the correct messages it won't work. Do you have a CAN dump from a Mondeo or have you searched online for Ford CAN messages?
@dasji8053
@dasji8053 Год назад
i am unable to compile the code for uno r3. Needed help bro.
@alibro7512
@alibro7512 Год назад
Do you have the correct Library installed?
@dasji8053
@dasji8053 Год назад
@@alibro7512 i have a uno r3 and mcp 2515, it would be better if you suggest the libraries. But I have installed the one in the link but it returned error.
@alibro7512
@alibro7512 Год назад
@@dasji8053 How many libraries have you in your Arduino folder? I found in the past they can conflict if two libraries have a file with the same name but are not the same. Have you Googled the error to find out what it means?
@kensmechanicalaffair
@kensmechanicalaffair 2 года назад
Does it not have obd?
@alibro7512
@alibro7512 2 года назад
Too old to have CAN at the OBD
Далее
ХОМЯК ВСЕХ КИНУЛ
10:23
Просмотров 635 тыс.
Ingenious Tools For Your An Auto Repair Shop
8:16
5 Tips For CAN Bus Diagnostics | Mechanic Mindset
16:55
CAN Bus Explained - A Simple Intro [v2.0 | 2021] 🌟
14:44