Загрузка страницы

DIY EV Part 1 - How to read the CAN Bus in your car using an Arduino Part 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 a penny extra.
Thank you for your support.

In this video I am doing something very different from ebike stuff. I'm trying to read the signals from the CANBUS in my car using an Arduino Uno and a CAN-BUS Shield. I spent an embarrassing number of hours getting this to work due to my almost total ignorance of all things Arduino and CANBUS.
This was not helped by many of the examples supplied by manufacturers failing to work for their own equipment or requiring additional libraries to work with some of their sketches.
I also found many links to Eleckfreaks who seem to have removed any reference to CANBUS Shields from their website so all these links and references are now dead.
Although this is not a definitive start to finish tutorial on these shields, hopefully it will fill in some of the gaps left by other videos and tutorials.

I bought one CANBUS Shield from ebay and a quick search should show the same one or similar. There is no point in me linking to the one I bought as the link will probably be dead by the time you read this. Note, if you see one for sale made by ElecFreaks you may receive the one I did made by diymore, but either should work fine.
I bought the second from Arduino but the same one can be bought from Seeed Studio direct. The Seeed Studio one includes a SD card slot but I haven't yet checked if this can be used for storing the CAN signals in a text file. I'll update if I ever get this working.

Links to stuff mentioned
The Blackhursts Video
https://www.youtube.com/watch?v=lkBILe55LQ8

Seeed Studio Library
https://github.com/Seeed-Studio/CAN_BUS_Shield

MCP CAN Master Library
https://github.com/coryjfowler/MCP_CAN_lib

Please note, playing with the CANBUS of your car could do serious harm so you have been warned.

In the next video in this series I find software called CANHacker. Details below.

The CANHacker software is available here.
https://www.mictronics.de/
Click on "Archive" and scroll down, click on "USB-CAN Bus Interface" and 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
https://github.com/autowp/can-usb

Libraries and connection diagrams for it are here
https://github.com/autowp/arduino-mcp...
https://github.com/autowp/arduino-can...

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 https://ebay.us/pGWsxa
Ebay.com https://ebay.us/t4UoXS
Amazon.co.uk https://amzn.to/3xmldbR
Amazon.com https://amzn.to/3hwY2EY

MCP2515 8Mhz CAN Module
Ebay.co.uk https://ebay.us/WvDFnR
Ebay.com https://ebay.us/BIFEXF
Amazon.com https://amzn.to/3ys5Q1L
Amazon.co.uk https://amzn.to/3dM9tIa

Uni-T Clamp meter
Amazon.co.uk https://amzn.to/3h7ttWy
eBay.co.uk https://ebay.us/dt6YTz
Amazon.com https://amzn.to/3xPYdlC
Ebay.com https://ebay.us/BhPrqF
Aliexpress https://s.click.aliexpress.com/e/_9xIk0b

Battery building Supplies
Cell Holders 10S https://ebay.us/POV3ap
Cell Holders 5S https://ebay.us/SZVatA
Solid Nickel strip 8mm x .15mm https://ebay.us/2iHNTL
Solid Nickel Strip 10mm x 0.15mm https://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 https://s.click.aliexpress.com/e/_AD95VL
Samsung Look alike https://s.click.aliexpress.com/e/_9yZqrx
LG Look alike https://s.click.aliexpress.com/e/_9gG85X
LiitoKala 3400mAh 20A max https://s.click.aliexpress.com/e/_9xMngp
LiitoKala 3000mAh 35A max https://s.click.aliexpress.com/e/_9hlt97
LiitoKala 3500mAh 35A max https://s.click.aliexpress.com/e/_APDKu9

Also note LiitoKala have several shops on Aliexpress with slightly different names but the products are all the same.

Видео DIY EV Part 1 - How to read the CAN Bus in your car using an Arduino Part 1 канала Ali Bro
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
7 июня 2020 г. 18:15:41
00:28:13
Яндекс.Метрика