Distance Sensor (ROBOT FEATURE)

by alarconr in Circuits > Arduino

141 Views, 1 Favorites, 0 Comments

Distance Sensor (ROBOT FEATURE)

WhatsApp Image 2022-12-08 at 8.05.00 PM.jpeg

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


Code Your Sensor

Write your code and save it in your CPB.

Downloads

Put Everything Together

WhatsApp Image 2022-12-08 at 8.05.24 PM.jpeg

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


DEMONSTRATION VIDEO

IMG 6475