Obstacle Avoiding Robot

This is a simple Obstacle Avoiding virtual circuit built using the tinkercad simulation.
Components Required




The following are the components that is required to make this circuit
breadboard - 1 no
L293D (motor drive) - 1 no
dc motor - 2 nos
arduino uno - 1 no
ultrasonic sensor - 1 no
Connections

Make the following connections as shown in the above image
CodeBlocks

Assemble the following Codeblocks as shown in the image using the Tinkercad Simulation Environment