Lab 3: Time of Flight Sensors

Objective

The purpose of this lab is to be able to use time of flight sesnors on the robot.Gaining an understanding of these sensors are integral to being able to let the robot drive at faster speeds.

Material List

Prelab

Lab Tasks

Sensor Setup

The sensor setup was pretty simple. I disconnected one end of a qwiic cable and sodered each wire to the corresponding hole on the TOF sensor. You can find a picture of the TOF sensors connected to a qwiic breakout below:

After connectinbg the sensors to the breakout, a I2C sweep was done on the breakout to make sure that the sensors are working and that it is displaying an address that makes sense. A picture of the sweep can be found here:

Sensor Data Collection

Using Two ToF Sensors

I was able to use two TOF sensors at the same time. A video is shown of when I was able to do it. Note: I have a friend moving his hand infornt of the TOF sensors but he did not want to be filmed so that is why what is moving infront of the sensors is not shown.

ToF Sensor Speed

TOF and IMU being used together

After condcuting the speeds test I moved on to seeing if my code was able to still work while the IMU is connected to teh breakout. After a couple mntes I was able to read data from each device allowing my robot to be able to tell its orienation and how close it is to objects around in a room. Below is a screenshot of the data coming in from each device.

All together

Time vs Distance

Time vs Angle

NOTE: The IMU and TOF sesnors were not moved when the data was gathered so what you are seeing is just the data of it sitting still.

Conclusion

This lab was able to allow me to become familir with soldering and empahize a focus on accuarcy and precision. It is clear that more of the tuning and filitering will come later since I imagine we will be introduced to cleaner and simipler ways of extracting the data.