Obstacle avoiding robot is an internet of things project that is built by Arduino, which provides an open-source electronics platform. The purpose of creating this project is to understand the basic theory of IoT. It is learning how to combine hardware with software to a product as well. Besides, the project refers to my initial ideas of "Smart Walker" that prevents pedestrians from looking at the smartphone while walking. The obstacle avoiding robot proved that a device that is composed of the same hardware could work with a smartphone, and prevent pedestrians by sense the obstacles around.

01 Hardware

Materials include Arduino Board, L298N H-bridge, HC SR04 Sensor, SG90 Servo, Chassis, HC SR04 Bracket, DC Motor Wheel, Front Wheel, Breadboard, F to F Jumper, M to M Jumper, 9V Batteries, Battery Clip, and Power Cable.

Below is the introduction of original hardware that the project used:

  • Arduino Board: It connects to the computer with a standard USB cable and contains everything else you need to program and use the board.

  • HC SR04 Sensor: The HC-SR04 Ultrasonic Distance Sensor is a sensor used for detecting the distance to an object using sonar.

  • L298N H-bridge: The H-bridge arrangement is generally used to reverse the polarity and direction of the motor.

  • SG90 Servo Motor: Servos are used in radio-controlled airplanes to position control surfaces like elevators, rudders, walking a robot, or operating grippers.

02 Circuits & Code

In this project, Fritzing and Arduino are the tools to build the obstacle avoiding robot. Fritzing is used for creating a circuit diagram before programming. Arduino web editor is a coding tool that helps the robot accomplish a series of functions.

Circuit Diagram:

Robot Code: