Skip to content

911RSR/RaceTemp_BLE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a BLE version of RaceTemp.

Work in progress. The code is currently too messy and does not work with the latest ST libraries/tools.
Earlier versions of RaceTemp_BLE wored reliably in Nino's KZ2 go kart.
When it works OK agin, then I will upload also the binaries.
It has very low current consumption -- much lower than the non-BLE version.
I use this with a STM32WB55 board like this one https://github.com/WeActStudio/WeActStudio.STM32WB55CoreBoard.

RaceTemp_BLE supports only what is connected to the STM32's ADC (e.g. NTC, MAP, etc.) and a MAX31855 thermocouple converter.
Some files for MAX31856 are also included, but not yet tested.
RaceTemp_BLE does not connect to a CAN network.
RaceTemp_BLE does not yet support O2/Lambda sensors (like the RaceTemp does).

Compiling

  1. Clone the project STM32CubeIDE: git clone https://github.com/911RSR/RaceTemp_BLE.git
  2. Open the .ioc file in STM32CubeMX and click "generate code"
  3. Import the project into STM32CubeIDE and click compile
  4. Load it onto a STM32 target. I use a STM32 MiniE debugger. STLINK V2 or other versions can also be used.
    If you have a bootloader on the STM32, then it might also support loading via BLE, USB or other serial ports.

"make" can also be used (instead of poins 2-3-4)

Use with RaceChrono Pro

The values read by the STM32 (ADCs and the MAX-TCC) get reported via BLE using CAN IDs as configured in the file RaceTemp_BLE/STM32_WPAN/App/custom_app.c.
For example, in "void RC_BLE( void )" you can find:
-- CAN ID for EGT: 0x00000013 -- raw values from MAX31856 TC converter (0x13 = 19 in decimal value)
-- CAN ID for NTC: 0x00000012 -- raw values from NTC with 10kOhm pull-up, via ADC in 12-bit mode

The same CAN IDs must be configured on the lap-timer phone -- in RaceChrono under Settings -> vehicle profile (click/tap on your vehicle) -> CAN-Bus settings.
One can use this input equation: "byttesToIntLE(raw, 0, 4)" to convert MAX31855 values to degC.

About

Like RaceTemp, but using STM32WB with integrated BLE instead of UART + an RF module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors