- Seeeduino Xiao SAMD version
- OBD-II CAN-BUS Development Kit
- Grove - GPS Air530
- Seeed Studio XIAO Expansion Board
There're 4 Grove connect on the Xiao expansion board, please connect the Grove -Air 530 to A0, and the Serial CAN Bus module to the UART port.
Connect to the CARWe are going to get data from the OBD-II of the car. The OBD-II CAN-BUS Development Kit includes an OBD-II connector, so we can use it to connect to the CAN Bus of the car. the OBD II connector defined as below.
The kit includes a cable as well, you need a soldering iron to connect the cable to the connector. As shown below.
The OBD-II connect wired as below:
The Seeeduino Xiao SAMD support Arduino IDE.
Double-click the Arduino application (arduino.exe) you have previously downloaded.
Click on File > Preference, and fill Additional Boards Manager URLs with the url below: https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json
Click Tools-> Board-> Boards Manager..., print keyword "Seeed Studio XIAO SAMD21 " in the searching blank. Here comes the "Seeed SAMD Boards". Install it.
You can download the demo code here, https://github.com/Longan-Labs/OBD-II-demo-for-Seeeduino-Xiao
After installing the board, click Tools-> Board, find "Seeed Studio XIAO SAMD21 M0" and select it. Now you have already set up the board of Seeed Studio XIAO SAMD21 for Arduino IDE.
Select the serial device of the Arduino board from the Tools | Serial Port menu. This is likely to be COM3 or higher (COM1 and COM2 are usually reserved for hardware serial ports). To find out, you can disconnect your Arduino board and re-open the menu; the entry that disappears should be the Arduino board. Reconnect the board and select that serial port.
Now, simply click the "Upload" button in the environment. Wait a few seconds and if the upload is successful, the message "Done uploading." will appear in the status bar.
A few seconds after the upload finishes, you should see the pin 13 (L) LED on the board start to blink (in orange). If it does, congratulations! You've gotten Arduino up-and-running. If you have problems, please see the troubleshooting suggestions.
Connect the OBD-II connector to your CARAfter this step, we can get data from the car.
Comments
Please log in or sign up to comment.