UltraSonic and Servo

Object detection and sorting

CONCEPT

Detection of position of objects and using information for sorting using crane mechanism.

WORKING OF MECHANISM

Servo moves the ultrasonic sensor to detect objects

the information is used to control the arms of the crane using the Analog joysticks to move the arms and reach the objects

LIST OF COMPONENTS

DIAGRAM OF THE CIRCUIT

CODE

Code for Radar Setup:

Code for Crane Setup:

VIDEO