Author Topic: Multiple VL53L0X sensors  (Read 986 times)

0 Members and 1 Guest are viewing this topic.

Offline TadeuszhTopic starter

  • Newbie
  • Posts: 9
  • Country: pl
Multiple VL53L0X sensors
« on: March 11, 2024, 11:24:52 pm »
Hi there,
So I'm new to the whole microcontrollers world and I have an issue going on. To the point, I need a microcontroller (STM32) to be handling multiple VL53L0X sensors and my question is: is this possible to one microcontroller to run 7 of them?
I am a part of a project on University where a you can say autonomic car, would detect objects using the sensors and connect with user, giving me the distance between them.

Can someone tell me more about it?
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14481
  • Country: fr
Re: Multiple VL53L0X sensors
« Reply #1 on: March 12, 2024, 12:02:08 am »
 

Offline TadeuszhTopic starter

  • Newbie
  • Posts: 9
  • Country: pl
Re: Multiple VL53L0X sensors
« Reply #2 on: March 12, 2024, 08:21:24 am »
So if i need 7 of them, how many expander outputs do I use? (PCF8574N)

I'm so sorry but I'm just starting my jurney and it's tough for me to understand the stuff that I'm reading about..
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3240
  • Country: gb
Re: Multiple VL53L0X sensors
« Reply #3 on: March 18, 2024, 01:40:46 pm »
Depends on how many spare I/O pins you have on your micro.  You need one output pin for each VL53L0X to hold them in shutdown whilst programming the I2C addresses, and optionally if you want to use the interrupt output from these devices you need one input pin for each VL53L0X with the input pins being capable of triggering an interrupt if required (you could poll them instead).  For seven VL53L0X that's 14 pins, which should be easily possible on larger STM32 parts so no bus expander needed. 

If you want to use PCF8574N bus expanders (to save pins on the micro) then you'd need one for the shutdown pins and optionally one for the interrupt pins and then you'd have one unused I/O on each bus expander.
 

Offline kevin.gibbs

  • Contributor
  • Posts: 34
  • Country: us
    • Teardown it!
Re: Multiple VL53L0X sensors
« Reply #4 on: March 26, 2024, 03:42:02 pm »
So if i need 7 of them, how many expander outputs do I use? (PCF8574N)

I'm so sorry but I'm just starting my jurney and it's tough for me to understand the stuff that I'm reading about..

You need to address the required sensor on pins A0-A2. If there are only seven sensors, you simply do not use one of the pins, P0-P7.
Teardown, research, create!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf