Travel: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
mNo edit summary
Line 1: Line 1:
TO DO
== TO DO ==
* Check tire pressure
* Check tire pressure
* Remove luggage rack
* Remove luggage rack
Line 8: Line 8:
* Charge HT batteries
* Charge HT batteries


Garmin - load pocket queries
* Garmin 62 - load pocket queries
 
Hacking


=== Hacking ===
* SenseCAP Indicator and cables
* SenseCAP Indicator and cables
* Seeed CANBUS adapter
* Seeed CANBUS adapter
Line 27: Line 26:
* 3 x USB-C cables
* 3 x USB-C cables


Raspberry Pi  
=== Raspberry Pi ===
 
* Pi 4
* Pi 4
* 4" monitor
* 4" monitor
Line 35: Line 33:
* USB3 drive
* USB3 drive


Tools
=== Tools ===
* screwdrivers
* screwdrivers
* needle nose pliers
* needle nose pliers
Line 43: Line 41:


== CAN Bus ==
== CAN Bus ==
=== Open Garages ===
https://medium.com/@yogeshojha/car-hacking-101-practical-guide-to-exploiting-can-bus-using-instrument-cluster-simulator-part-i-cd88d3eb4a53
=== Connecting ===
I got an OBD-2 extension cable with 90 degree ends to make a low profile connection. I cut the cable in half. (Photo!) Now I have a connector with a 12" cable ready to use.
I got an OBD-2 extension cable with 90 degree ends to make a low profile connection. I cut the cable in half. (Photo!) Now I have a connector with a 12" cable ready to use.


=== Termination ===
==== Termination ====
https://electronics.stackexchange.com/questions/470382/can-bus-termination-resistors-for-can-logger-device
https://electronics.stackexchange.com/questions/470382/can-bus-termination-resistors-for-can-logger-device


I don't need termination as long as my cable is less than 0.5m long. (It was 18" but I snipped it down to be on the safe side.)
I don't need termination as long as my cable is less than 0.5m long. (It was 18" but I snipped it down to be on the safe side.)
==== Pinouts ====
[[File:Screenshot 2024-09-13 124245.png|left|thumb|480x480px|OBD2 pinouts]]
[[File:Screenshot 2024-09-13 124245.png|left|thumb|480x480px|OBD2 pinouts]]


=== Signals ===
Signals that matter to me, and the wire colors:
Signals that matter to me, and the wire colors:


Line 62: Line 66:
16  '''12V''' always on -- Brown
16  '''12V''' always on -- Brown


=== MCP2515 ===
Seeed Xiao
I intend trying this one first because it's got a more commonly used chip on it.


https://www.14core.com/wiring-the-mcp2515-shield-with-obd-on-arduino/ connector info
https://www.14core.com/wiring-the-mcp2515-shield-with-obd-on-arduino/ connector info


https://www.14core.com/wiring-the-mcp2515-controller-area-network-can-bus-diagnostics/
https://www.14core.com/wiring-the-mcp2515-controller-area-network-can-bus-diagnostics/
=== Interfaces ===
==== MCP2515 ====
I intend trying the MCP2515 chip first because it's commonly used. Microchip [https://ww1.microchip.com/downloads/en/DeviceDoc/MCP2515-Stand-Alone-CAN-Controller-with-SPI-20001801J.pdf MCP2515 datasheet]
I got this breakout board: Seeed Xiao https://www.seeedstudio.com/Seeed-Studio-CAN-Bus-Breakout-Board-for-XIAO-and-QT-Py-p-5702.html
I got two, so one will have a 6 pin header soldered to the SPI connector and the other will have a Xiao ESP32C6 installed.
Seeed's board uses the TI  [https://www.ti.com/lit/ds/symlink/sn65hvd230.pdf?ts=1685579002848&ref_url=https%253A%252F%252Fwww.google.com%252F SN65HVD23x 3.3-V CAN Bus Transceiver] so it's all 3v3 and that means it can work with a Pi


https://github.com/kvba1/ESP32-MCP2515-OBD2-CANBUS ESP32 + MC2515
https://github.com/kvba1/ESP32-MCP2515-OBD2-CANBUS ESP32 + MC2515
Line 75: Line 86:
https://github.com/yogiD/MCP2515-OBD Arduino + MCP2515
https://github.com/yogiD/MCP2515-OBD Arduino + MCP2515


=== GD32E103CA ===
==== GD32E103CA ====
Seed + Grove from Longan Labs  https://github.com/Longan-Labs/Serial_CAN_FD_Module
Seed + Grove from Longan Labs  https://github.com/Longan-Labs/Serial_CAN_FD_Module


=== ICSIM ===
ICSIM = Instrument Cluster Simulator = test CAN bus without breaking your car.
https://github.com/zombieCraig/ICSim
  sudo apt-get install libsdl2-dev libsdl2-image-dev can-utils 


== Resources ==
== Resources ==
https://copperhilltech.com/ Pi and Arduino boards for CAN bus, OBD-2, NMEA, etc
https://copperhilltech.com/ Pi and Arduino boards for CAN bus, OBD-2, NMEA, etc

Revision as of 23:30, 13 September 2024

TO DO

  • Check tire pressure
  • Remove luggage rack
  • Mount bike rack
  • Charge batteries for BT keyboard
  • Charge battery in emergency phone
  • Charge HT batteries
  • Garmin 62 - load pocket queries

Hacking

  • SenseCAP Indicator and cables
  • Seeed CANBUS adapter
  • Hookup Grove to CANBUS
  • OBD-II to CANBUS
  • Laptop and charger
  • Laptop adapter (USB)
  • Comp notebook
  • USB3 hub
  • 5V supply
  • M5StickC with micropython and PIR hat
  • M5 Atom Echo speaker
  • 3 x USB-C cables

Raspberry Pi

  • Pi 4
  • 4" monitor
  • Logitech KBD and mouse and USB dongle
  • USB3 drive

Tools

  • screwdrivers
  • needle nose pliers
  • small cutters
  • red voltmeter
  • usual tool kit in bag, screwdrivers, torx drivers, usb cables

CAN Bus

Open Garages

https://medium.com/@yogeshojha/car-hacking-101-practical-guide-to-exploiting-can-bus-using-instrument-cluster-simulator-part-i-cd88d3eb4a53

Connecting

I got an OBD-2 extension cable with 90 degree ends to make a low profile connection. I cut the cable in half. (Photo!) Now I have a connector with a 12" cable ready to use.

Termination

https://electronics.stackexchange.com/questions/470382/can-bus-termination-resistors-for-can-logger-device

I don't need termination as long as my cable is less than 0.5m long. (It was 18" but I snipped it down to be on the safe side.)

Pinouts

OBD2 pinouts

Signals that matter to me, and the wire colors:

5 signal ground -- orange

6 CANH -- Black

14 CANL -- Green

16 12V always on -- Brown


https://www.14core.com/wiring-the-mcp2515-shield-with-obd-on-arduino/ connector info

https://www.14core.com/wiring-the-mcp2515-controller-area-network-can-bus-diagnostics/

Interfaces

MCP2515

I intend trying the MCP2515 chip first because it's commonly used. Microchip MCP2515 datasheet

I got this breakout board: Seeed Xiao https://www.seeedstudio.com/Seeed-Studio-CAN-Bus-Breakout-Board-for-XIAO-and-QT-Py-p-5702.html

I got two, so one will have a 6 pin header soldered to the SPI connector and the other will have a Xiao ESP32C6 installed.

Seeed's board uses the TI SN65HVD23x 3.3-V CAN Bus Transceiver so it's all 3v3 and that means it can work with a Pi

https://github.com/kvba1/ESP32-MCP2515-OBD2-CANBUS ESP32 + MC2515

https://github.com/yogiD/MCP2515-OBD Arduino + MCP2515

GD32E103CA

Seed + Grove from Longan Labs https://github.com/Longan-Labs/Serial_CAN_FD_Module

ICSIM

ICSIM = Instrument Cluster Simulator = test CAN bus without breaking your car.

https://github.com/zombieCraig/ICSim

  sudo apt-get install libsdl2-dev libsdl2-image-dev can-utils 

Resources

https://copperhilltech.com/ Pi and Arduino boards for CAN bus, OBD-2, NMEA, etc