Introduction: Distance Sensor (ROBOT FEATURE)

My final project is a new feature added to the robot that we made for our course. It is a distance sensor, which identifies if the robot is approaching an object. The objective of the project is to prevent the robot from colliding with any object and thus could break or damage


Supplies

  • 9 alligators clips
  • 1 CPB
  • 1 portable chargeable battery
  • 1 Distance sensor (APDS 9960)
  • 1 LED strip
  • 1 speaker
  • 4 male-to-male cables

** these are the supplies for the distance sensor feature, you can also use it in other things like toy cars


Step 1: Code Your Sensor

Write your code and save it in your CPB.

Step 2: Put Everything Together

you have to connect the LED strip, the distance sensor, and the external speaker using the alligator clips and the male-to-male cables.

for the distance sensor:

YELLOW = SCL

BLUE = SDA

BLACK = GROUND

RED = POWER

for the LED strip:

RED = POWER

WHITE = SIGNAL

BLACK = GROUND

for the external speaker:

connect 1 alligator clip to the tip and 1 more to the bottom of the cable

BOTTOM = GROUND

TIP = AUDIO


Step 3: DEMONSTRATION VIDEO