Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel7

Software

MCU config tool

https://www.st.com/en/development-tools/stm32cubemx.html

...

The difference is stored in a 16 bit value which then is divided by two and stored in a 8 byte arrary. The difference is the raw count value (0 → 65536 ) of the timer so the conversion to Hz or RPM need to be done else wareelsewhere.

Front Right B[0]: MSB B[1]:LSB

...

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

reference design: https://www.st.com/resource/en/user_manual/um1956-stm32-nucleo32-boards-mb1180-stmicroelectronics.pdf

Guidelines: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwj0qp_xh8_1AhVOKBoKHYoyAdoQFnoECBUQAQ&url=https%3A%2F%2Fwww.st.com%2Fresource%2Fen%2Fapplication_note%2Fdm00112257-getting-started-with-stm32l0xx-hardware-development-stmicroelectronics.pdf&usg=AOvVaw37RwynR9X34bcA7xiW6fb1

Crystal load capasitance

image-20240516-134831.pngImage Added

Pinout

...

page 37 for pin description: https://www.st.com/content/ccc/resource/technical/document/datasheet/42/c0/ab/e5/71/7a/47/0b/DM00206508.pdf/files/DM00206508.pdf/jcr:content/translations/en.DM00206508.pdf

Footprint

...

Version 1.0

image-20240425-082152.pngImage Added