xl3ehindTim / glow-2024

Symphony of Life is a concept created for the coming edition of GLOW 2024. GLOW is a light art festival held yearly in Eindhoven.
6 stars 0 forks source link

Time of Flight touch detection #8

Closed xl3ehindTim closed 2 months ago

xl3ehindTim commented 3 months ago

Added touch detection using VL53L1X Time of Flight (ToF) sensors.

Time of Flight sensors send out short pulses of light to measure the time it takes for some of the emitted light to come back. This is expressed in milliseconds which can be used to measure if the light is interrupted by calibrating on start. For example, if it takes 2200ms to reach the ground from above, if it is < 2000ms we can say with confidence that someone is 'touching' our pillar.

These sensors are placed as an array at the top of our pillar looking down around the pillar, resulting in an percentage of sensors being 'touched'. This percentage is used to control light and sound levels.