Obstacle avoidance is an important task in robotics as the autonomous robot's aim is to reach the destination without collision. One type of autonomous robot that can detect obstacles and edges and take alternative paths free of obstacles and edges is a real-time obstacle avoiding edge detection robot. This paper proposes a robotic Robot with an intelligence built into it that guides itself whenever an obstacle comes along its way by bug algorithm. This robotic Robot is constructed using AT mega 8 families’ micro-controller (Arduino Uno R3). The ultrasonic sensor is used to detect any obstacle with edges and sends a command to the microcontroller. The micro-controller, based on the received input signal, redirects the robot to push in an alternative direction by actuating the motors that are interfaced with it via a motor driver. Depending on the situation the robot is able to choose the correct path [1]. A decision making process of obstacle avoiding edge detection occurs spontaneously here. This robot was designed to think about its day-to-day potentialities