Document how to configure the code to use customizations for the right car

This commit is contained in:
Timur Iskhodzhanov 2022-06-05 19:39:30 -07:00
parent 8d9b5ea9b9
commit 5640316654
1 changed files with 23 additions and 10 deletions

View File

@ -19,10 +19,9 @@ to do some custom connections.
This project documents how to make your own DIY device that can listen to the This project documents how to make your own DIY device that can listen to the
data on the CAN bus of the car, and relay it to RaceChrono using Bluetooth Low data on the CAN bus of the car, and relay it to RaceChrono using Bluetooth Low
Energy (BLE). The code has customizations for my 2022 Toyota GR86, as well as a Energy (BLE). The code has example configurations optimized the 2022 Toyota GR86
2017 Subaru BRZ I used to own, but you should be able to un-do those I currently own, as well as a 2017 Subaru BRZ I used to own. If you have a
customizations and do something similar for your car if it's different from different car, you'll need to figure out how to customize the code for your car.
those two.
## Demo ## Demo
@ -139,6 +138,10 @@ Arduino IDE built-in library manager, as it has multiple bugs, and many
operations are implemented in an ineffective way. My pull requests to address operations are implemented in an ineffective way. My pull requests to address
those have not been reviewed at the time of writing. those have not been reviewed at the time of writing.
Then, open
[`config.h`](https://github.com/timurrrr/RaceChronoDiyBleDevice/blob/master/config.h)
and carefully read the comments.
Once everything is set up, compile and upload the `RaceChronoDiyBleDevice.ino` Once everything is set up, compile and upload the `RaceChronoDiyBleDevice.ino`
"sketch" using Arduino IDE. "sketch" using Arduino IDE.
@ -164,22 +167,32 @@ to diagnose issues.
## Making the CAN reader ready to work with your car ## Making the CAN reader ready to work with your car
This particular project was designed for FT86 cars (Subaru BRZ, This project was designed for FT86 cars (Subaru BRZ, Toyota 86/GT86/GR86,
Toyota 86/GT86/GR86, Scion FR-S). You can search for "BRZ" in the source code to Scion FR-S). If you have one of those car, you should use the provided config
see where the customizations were made, and tweak to work better with your car. files for those cars. See the comments in
[`config.h`](https://github.com/timurrrr/RaceChronoDiyBleDevice/blob/master/config.h)
for tips on how to do that.
If you do have an FT86 car, you might want to read Then you might want to read
* [This page](can_db/ft86_gen2.md) for 2022 model year cars * [this page](can_db/ft86_gen2.md) for 2022 model year cars
* [This page](can_db/ft86.md) for 2013-2020 model year cars * [this page](can_db/ft86.md) for 2013-2020 model year cars
on how to make a harness between the CAN bus and the reader, as well as how to on how to make a harness between the CAN bus and the reader, as well as how to
set up data channels in RaceChrono. set up data channels in RaceChrono.
If you have a different car, you will need to do more research.
Some information about the CAN data has been documented for Mazda MX-5/Miata Some information about the CAN data has been documented for Mazda MX-5/Miata
([NC generation](can_db/mazda_mx5_nc.md) and ([NC generation](can_db/mazda_mx5_nc.md) and
[ND generation](can_db/mazda_mx5_nd.md)). [ND generation](can_db/mazda_mx5_nd.md)).
For other cars, a good starting point is the
[PidHistogram example](https://github.com/timurrrr/arduino-CAN/tree/master/examples/PidHistogram).
Using that example, you can see what CAN IDs are used on the CAN network, and
prioritize your work accordingly. Typically the most useful information is
included in messages with the most frequent CAN IDs.
If you know how to make physical connections, CAN IDs and equations for other If you know how to make physical connections, CAN IDs and equations for other
popular track cars, feel free to send a pull request! popular track cars, feel free to send a pull request!