Bukit Mertajam, Penang

Obstacle Avoiding Robot

Since we have successfully build Bluetooth Mobile Robot, let’s try to turn this robot to an “Obstacle Avoiding Robot” by adding an ultrasonic sensor to it. This robot will avoiding any obstacle in distance of 10 cm in front of it. Just follow this tutorial to know more 🙂

Hardware Preparation

This tutorial use :

  1. Maker UNO Bluetooth Robot Kit
  2. HC-SR04 Ultrasonic Sensor

You can make the hardware connection based on the diagram and table below.

Ultrasonic : Trig Maker UNO: Pin 3
Ultrasonic : Echo Maker UNO: Pin 4
Ultrasonic : GND Maker UNO: GND
Ultrasonic : VCC L298ND : 5V
L298ND : ENA Maker UNO: Pin 5
L298ND : ENB Maker UNO: Pin 6
L298ND : IN1 Maker UNO: Pin 7
L298ND : IN2 Maker UNO: Pin 9
L298ND : IN3 Maker UNO: Pin 10
L298ND : IN4 Maker UNO: Pin 11
Figure 1 : Hardware Connection

Sample Code

This is the sample code used for this tutorial. Try it!

Thank you

Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.

Comments (4)

How to use this kit to control a lawn mower? Because lawn mower is too heavy for these small DC motors. And how can I make this kit to control power window motors since it requires higher voltage to work.

Hi, this tutorial shows a concept of obstacle avoidance robot. To build an actual size of lawn mower using this kit is not suitable. To control power window motors, you might need to use higher rating of motor drivers. For further discussion, please post at Cytron Technical Forum. Thanks.

nur nadhirah wafa

hai if i want to add bluetooth module ? and i control it by mobile fone . can u help me. i dont know how to connect the bluetooth module into this obstacle robot 🙁 and also the coding . thank you

Hi nur nadhirah wafa, it is recommended for you to start from existing tutorial, do it step by step and the important thing is understand the code. You can refer obstacle avoidance and bluetooth tutorial. Thanks.

Leave a comment