Skip to content

Pololu Arduino library for VL53L0X time-of-flight distance sensor

License

Notifications You must be signed in to change notification settings

MarcelMG/VL53L0X-STM32F103

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VL53L0X C library for STM32F103

This is a C port of pololu's Arduino library for the ST VL53L0X time of flight sensor. It is targeted at the STM32F103 microcontroller but can be modified to be used with another µC.

For the I²C, UART and timing my own libraries are used. The following files are needed:

  • usart1.h
  • usart1.c
  • init.h
  • init.c
  • i2c.h
  • i2c.c

You can find them here.

Hardware

A VL53L0X breakout board can be purchased from Pololu's website.

Make the following connections between the STM32F103C8T6 and the VL53L0X board:

STM32F103   VL53L0X board
-------   -------------
    3V3 - VIN
    GND - GND
    PB6 - SCL
    PB7 - SDA
    PB5 - XSHUT (optional)

and don't forget the pullup resistors on SDA and SCL.

About

Pololu Arduino library for VL53L0X time-of-flight distance sensor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 100.0%