Table of Contents | ||||
---|---|---|---|---|
|
Software
MCU config tool
https://www.st.com/en/development-tools/stm32cubemx.html
...
To get the value from the STM32 simply clock out 8x8 clock pulses. It dose not matter if there is data on the MOSI line.
Example
Front_right = (dataIn[0]<<8) + dataIn[1];
Front_right = (1 / (Front_right * 0.000007629948)) / 2; // 1/(count * sec/count) we have two magnets per wheel so divide everything by 2 and you get Hz
...
Hardware
...