Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2022:agmocanu:floorcleaningrobot [2022/06/01 23:46]
denisa.voicu2504 [Hardware Design]
pm:prj2022:agmocanu:floorcleaningrobot [2022/06/02 00:05] (current)
denisa.voicu2504 [Jurnal]
Line 57: Line 57:
   int distanceright;​   int distanceright;​
   int a=0;   int a=0;
-    ​+  #define in1 4 
 +  #define in2 7 
 +  #define in3 8 
 +  #define in4 14  ​
     ​     ​
 **This section is used to move forward and backward:** **This section is used to move forward and backward:**
  
-  if(s==HIGH)+  if(s==LOW)
   {    { 
     digitalWrite(4,​ LOW);     digitalWrite(4,​ LOW);
Line 73: Line 76:
 If it detects the abscence of the floor the robot will not move forward and it will turn around : If it detects the abscence of the floor the robot will not move forward and it will turn around :
  
-    if ((a==0)&&​(s==LOW)&&​(distanceleft <= 15 && distancefront > 15 && distanceright <= 15) || (a==0)&&​(s==LOW)&&​(distanceleft > 15 && distancefront > 15 && distanceright > 15))+    if ((a==0)&&​(s==HIGH)&&​(distanceleft <= 15 && distancefront > 15 && distanceright <= 15) || (a==0)&&​(s==HIGH)&&​(distanceleft > 15 && distancefront > 15 && distanceright > 15))
 **This section is used to move right:** **This section is used to move right:**
  
Line 83: Line 86:
     a=1;     a=1;
  
-   if ((a==1) &&​(s==LOW) ||(s==LOW) && (distanceleft <= 15 && distancefront <= 15 && distanceright > 15) || (s== LOW) && (distanceleft <= 15 && distancefront <= 15 && distanceright > 15) || (s==LOW) && (distanceleft <= 15 && distancefront > 15 && distanceright > 15) || (distanceleft <= 15 && distancefront > 15 && distanceright > 15))+   if ((a==1) &&​(s==HIGH) ||(s==HIGH) && (distanceleft <= 15 && distancefront <= 15 && distanceright > 15) || (s== HIGH) && (distanceleft <= 15 && distancefront <= 15 && distanceright > 15) || (s==HIGH) && (distanceleft <= 15 && distancefront > 15 && distanceright > 15) || (distanceleft <= 15 && distancefront > 15 && distanceright > 15))
   ​   ​
   {   {
Line 96: Line 99:
 **This section is used to move left:** **This section is used to move left:**
  
-   if ((s==LOW)&&​(distanceleft > 15 && distancefront <= 15 && distanceright <= 15) ||(s==LOW)&& (distanceleft > 15 && distancefront > 15 && distanceright <= 15) ||(s==LOW)&& (distanceleft > 15 && distancefront <= 15 && distanceright > 15) )+   if ((s==HIGH)&&​(distanceleft > 15 && distancefront <= 15 && distanceright <= 15) ||(s==HIGH)&& (distanceleft > 15 && distancefront > 15 && distanceright <= 15) ||(s==HIGH)&& (distanceleft > 15 && distancefront <= 15 && distanceright > 15) )
   ​   ​
     {     {
Line 106: Line 109:
 ===== Rezultate Obţinute ===== ===== Rezultate Obţinute =====
  
 +{{:​pm:​prj2022:​agmocanu:​8e95dd60-b363-4607-ac94-cc64d884a5ed.jpg?​500|}}
 +{{:​pm:​prj2022:​agmocanu:​50eecb7e-d8ab-43a8-bd69-f4ee3f8738d1.jpg?​300|}}
  
 ===== Concluzii ===== ===== Concluzii =====
 Building a robot is not easy and you need to pay a lot of attention to details,to do your research properly and have patience because it doesn'​t work perfectly from the beggining.I wanted to create something useful,​something that I would enjoy using at home and something that would make me proud.I think it is complicated when you are starting but after a while,all that hard work pays off. Building a robot is not easy and you need to pay a lot of attention to details,to do your research properly and have patience because it doesn'​t work perfectly from the beggining.I wanted to create something useful,​something that I would enjoy using at home and something that would make me proud.I think it is complicated when you are starting but after a while,all that hard work pays off.
 ===== Download ===== ===== Download =====
 +[[https://​github.com/​DenisaVoicu/​floorcleaningrobot.ino/​blob/​main/​arduino-vacuum-cleaner.ino]]
  
 ===== Jurnal ===== ===== Jurnal =====
-  * 21/​April/​2022 ​project theme and idea+  * 21/​April/​2022 ​Project Theme and Idea
   * 11/May/2022 finished Milestone 1   * 11/May/2022 finished Milestone 1
   * 27/May/2022 finished Milestone 2   * 27/May/2022 finished Milestone 2
 +  * 01/​June/​2022 Made a few changes
 ===== Bibliografie/​Resurse ===== ===== Bibliografie/​Resurse =====
   * ''​https://​components101.com/​sensors/​ir-sensor-module''​   * ''​https://​components101.com/​sensors/​ir-sensor-module''​
pm/prj2022/agmocanu/floorcleaningrobot.1654116395.txt.gz · Last modified: 2022/06/01 23:46 by denisa.voicu2504
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0