Qwiic Distance Sensor (RFD77402) Hookup Guide
The RFD77402 uses an infrared VCSEL (Vertical Cavity Surface Emitting Laser) TOF (Time of Flight) module capable of millimeter precision distance readings up to 2 meters. It's also part of SparkFun's Qwiic system, so you won't have to do any soldering to figure out how far away things are.
In this hookup guide, we'll first get started with some basic distance readings, then we'll add in a confidence value to ensure the sensor isn't returning "garbage" data. Finally, we'll increase our sample rate to obtain readings as fast as we can.
To get started, you'll need a microcontroller to, well, control everything.
SparkFun ESP32 ThingDEV-13907
Particle Photon (Headers)WRL-13774
Raspberry Pi 3DEV-13825
Now to get into the Qwiic ecosystem, the key will be one of the following Qwiic shields to match your preference of microcontroller:
SparkFun Qwiic HAT for Raspberry PiDEV-14459
SparkFun Qwiic Shield for ArduinoDEV-14352
SparkFun Qwiic Shield for PhotonDEV-14477
You will also need a Qwiic cable to connect the shield to your distance sensor, choose a length that suits your needs.
Qwiic Cable - 100mmPRT-14427
Qwiic Cable - 500mmPRT-14429
Qwiic Cable - 50mmPRT-14426
Qwiic Cable - 200mmPRT-14428
If you aren't familiar with the Qwiic system, we recommend reading here for an overview.
|Qwiic Connect System|
We would also recommend taking a look at the following tutorials if you aren't familiar with them.