Skip to content

Hack Your Car With Wio Terminal and CAN Bus

https://www.hackster.io/longan_labs/hack-your-car-with-wio-terminal-and-can-bus-c6ddf4

Eagle_File_Serial_CAN_Bus-master.zip

OBD-II-Demo-x-Wio-Terminal-master (1).zip

Hack your car and read the cycling speed, rotation speed, oil temperature and other information, displayed on the Wio Terminal screen.

IntermediateFull instructions provided1,760Hack Your Car With Wio Terminal and CAN Bus

Things used in this project

Hardware components

75395a18632c4925826b92841002897c×1
OBD-II Serial CAN Bus Dev Kit
Important Note: This project needs the V1.3 version or later of Serial can bus module.
Wio Terminal01fcd22aef7d4bc6829c51df027141a9×1
Seeed Studio Wio Terminal
4c1fc6cea80a438396e4e8d1fceed664×1
Wio Terminal Chassis - Battery (650mAh)

Hand tools and fabrication machines

Soldering iron (generic)b202623f4f5d40e5bacce23a21689418
Soldering iron (generic)
Solder Wire, Lead Freee63eb809bf4840f8a603084ce669002c
Solder Wire, Lead Free

Story

If you have some understanding of CAN Bus and Arduino programming, and want to hack your car, then this tutorial can provide you with a solution.

As for why you want to hack your car, I don't know, but this is indeed an interesting thing.

This project mainly used the Serial CAN Bus Module by Longan Labs and the Wio Terminal main control board by Seeed Studio.

The OBD-II Serial CAN Bus Dev Kit is a CAN Bus control kit designed by Longan Labs. It uses UART to communicate with the single-chip microcomputer. It is compact and easy to use.

Wio Terminal comes from Seeedstuio, which is a development board with a screen that can be programmed with Arduino.

In this project, the following functions are mainly realized:

  • Read the cycling speed, rotation speed and oil temperature and other information, displayed on the Wio Terminal screen

If you want more date from the car, please refer to https://en.wikipedia.org/wiki/OBD-II_PIDs

Step 1 : Principle Introduction

Almost all modern vehicles have an OBD-II interface, which is a bridge between the car and the outside world. We can get all the car information and control the car through the OBD-II interface.

And, it is a dangerous thing to control the car, you'd better have a deep understanding of the OBD-II interface before proceeding. This article only reads some basic information from the car, so you can safely follow the steps provided in this tutorial.

Step 2 : Get Components Ready

Important Note: This project needs the V1.3 version or later of Serial can bus module.

Step 3: Soldering

1 / 3

This may be the most difficult step, if you have never used a soldering iron.

We need to solder the wire provided by OBD-II CAN-BUS Dev kit to an OBD-connector. You can look at the picture, we soldered the red wire to the 6pin of the connector, and the black wire to 14pin. When 6pin represents CANH, 14pin represents CANL.

Step 4: Hardware Connection

1 / 3

  • The Serial CAN Bus Module included in the OBD-II CAN-BUS Dev kit is connected to the Wio Terminal UART interface via Grove cable
  • Connect the wires from the previous step to the Serial CAN Bus Module, connect red to CANH and black to CANL.

Step 5: Software and Settings

Here we need to make some settings for the serial can bus module.

Before we start, we need to download the code of this project. You can click to download Arduino Library.

If you are using wio terminal for the first tme, you can check wiki for wio terminal

First, we open the setting demo in the sketch, where we will set the mask and filter of the serial can bus module.

Then burning the setting demo to the wio terminal, open the serial monitor and enter a character at random to see whether the setting is successful or not.

After the setting is completed, burn the demo to the wio terminal and you can see the data on the screen.

Step 6: Test on Your Car

1 / 3

Next, we need to go to the car and test it. You can find the OBD-II interface under the steering wheel, plug the connector into the OBD-II interface, turn on the wio terminal, and you can see the result.

Step 7: What Can Be Improved

Wio is a powerful main control board, we used quite a few functions in it. For example, Bluetooth, wi-wifi, etc.

Of course, you can also make a more beautiful interface. In short, you can play and enjoy the production process.

More CAN Bus gadgets: Longan Labs Official Site

Schematics

Schematics of Serial CAN Bus Module in the Dev Kit

Code

Arduino Library for the demo of OBD-II and Wio Terminal

Longan-Labs / OBD-II-Demo-x-Wio-Terminal

12 0

No description — Read More

Latest commit to the master branch on 5-8-2021

Download as zip

Credits

Personal notes