This shows you the differences between two versions of the page.
|
pm:prj2022:agmocanu:floorcleaningrobot [2022/05/28 00:10] denisa.voicu2504 [Bibliografie/Resurse] |
pm:prj2022:agmocanu:floorcleaningrobot [2022/06/02 00:05] (current) denisa.voicu2504 [Jurnal] |
||
|---|---|---|---|
| Line 28: | Line 28: | ||
| * Plastic Board | * Plastic Board | ||
| * Generic Portable Vacuum Cleaner | * Generic Portable Vacuum Cleaner | ||
| + | * 1.5V Battery x2 | ||
| **Electric scheme:** | **Electric scheme:** | ||
| Line 56: | 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 72: | 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 82: | 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 95: | 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 105: | 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'' | ||