From 7c0caf09e52641795ea2253b509d098135896089 Mon Sep 17 00:00:00 2001 From: MauryaD Date: Mon, 24 Dec 2018 18:27:09 +0530 Subject: [PATCH 1/2] readME updated, fixed colliding issu while turning --- CODE/CODE.ino | 17 ++++++++++------- README.md | 4 ++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CODE/CODE.ino b/CODE/CODE.ino index 6e4263b..18c3322 100644 --- a/CODE/CODE.ino +++ b/CODE/CODE.ino @@ -135,22 +135,25 @@ Serial.print("\t"); Serial.println(distR); - if(distM>12){ + if(distM>16){ moveForward(); }else{ - if(distM<12){ - if(distL>12){ + if(distM<8){ + reverse(); + }else + + if(distM>8&&distM<16){ + + if(distL>16){ turnLeft(); }else{ - if(distR>12){ + if(distR>16){ turnRight(); }else{ - - - if(distL<12&&distR<12){ + if(distL<16&&distR<16){ turnCircle(); } } diff --git a/README.md b/README.md index 4772723..e5f10be 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# Maze_Solving_Robot -Code for Maze solving robot (using the Ultrasonic sensors) +# Object Avoiding RObot +Code For Object Avoiding robot using Ultrasonic sensors \ No newline at end of file From 875c0ee5f88d352c679e65241e3e3450b536fd7d Mon Sep 17 00:00:00 2001 From: Ankush Rawat Date: Mon, 14 Dec 2020 15:34:55 +0530 Subject: [PATCH 2/2] update readme --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e5f10be..36746b8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # Object Avoiding RObot -Code For Object Avoiding robot using Ultrasonic sensors \ No newline at end of file + +![GitHub forks](https://img.shields.io/github/forks/rawkush/object_avoiding_robot?style=social) +![GitHub Repo stars](https://img.shields.io/github/stars/rawkush/object_avoiding_robot?style=social)
+![ViewCount](https://views.whatilearened.today/views/github/rawkush/object_avoiding_robot.svg) + +Code For Object Avoiding robot using Ultrasonic sensors