IT Problem Solving (ITECH1101) | My Assignment Tutor

Avishek KUMARSTUDENT ID:- 30369708IT Problem Solving (ITECH1101)Part 2: Hackathon Assignment ReportLecture: Nikesh JoshiTutor: Sujan ThapaGroup Member:Avishek KumarSuman DahalRahul YadavAvishek Kumar30369708 Hackathon Assignment ITECH1101ContentsIntroduction………………………………………………………………………………………………………………………….2Problem……………………………………………………………………………………………………………………………….2Solution……………………………………………………………………………………………………………………………….3Algorithm……………………………………………………………………………………………………………………………..3URL diagram…………………………………………………………………………………………………………………………4……………………………………………………………………………………………………………………………………………4Day to day Work……………………………………………………………………………………………………………………5Day 1………………………………………………………………………………………………………………………………..5Day 2………………………………………………………………………………………………………………………………..5Day 3………………………………………………………………………………………………………………………………..6Day 4………………………………………………………………………………………………………………………………..6Day 5………………………………………………………………………………………………………………………………..7Day 6………………………………………………………………………………………………………………………………..8Day 7………………………………………………………………………………………………………………………………..9Day 8………………………………………………………………………………………………………………………………..9Day 9………………………………………………………………………………………………………………………………10Test Cases…………………………………………………………………………………………………………………………..12Final Program………………………………………………………………………………………………………………………13Avishek Kumar30369708 Hackathon Assignment ITECH1101IntroductionWe have designed an obstacle course for the mind storms robot to complete which is shownin the figure below. Our robot is going to take a small load from start point and drop at endpoint. While doing this obstacle course, we are going to have to use different sensorsalready provided in the robot kit to make its path and attempt to reach the end point. Here inthe given figure, the black colour bold boundary indicates the working area, which is thelimitation area of robot. The red colour bold arrow indicates a colourful object, which issensed by the robot in order to follow the path by using its colour sensor. As well there aredifferent obstacles indicated by black rectangle boxes (Obs). So, here we are going toprogram the robot to finish the obstacle course by using its different sensor. As we havebeen advised as the requirement of this assignment, we will not be making any change tothe robot but colour sensor in the robot is facing upward which we will be facing downward ina slight angle forward. Colour sensor facing upward won’t be of any value otherwise.FIG: Obstacle courseProblemThe main task of our robot is to place an object from one point (start) to another point (end).While doing this task there are various obstacles in the path. There are different objects inthe path due to which the robot cannot reach the destination while taking just the straightforward path. So, for reaching the end point robot will have to take many turns left and rightto avoid the obstacles while staying within the boundary.Avishek Kumar30369708 Hackathon Assignment ITECH1101SolutionFrom our problem statement and obstacle course diagram we can easily see thatmanoeuvring our robot to take the correct path is going to be our problem. Our robot at thestart point has a small load placed on it. Our goal here is to drop the load after reaching theend point. The robot is going to take straight path. If no obstacle is detected it will keep goingforward until it reaches the end point and drops the load. But our obstacle course has manyobstacles in between. So, as soon as it’s infrared sensors detect an obstacle it is going tostop and take a decision to turn right and start going forward. But it has to stay within theboundary line. For detecting the boundary line the robot is going to use its colour sensor. Aswe have used black margin as our boundary, we will have to specify the robot to recognizethe colour and stop and take left turn. It will then go forward until its infrared sensors detectanother obstacle, stop there take left again and march forward. But since the robot is notequipped with any sensors to detect the distance between the obstacles to stay in the middlewe will put a red sticker arrow for it to detect. It will stop at the sticker take right and gostraight forward until it reaches the end point. Start and end point have yellow spot for it todetect the destination. Finally, it is going to drop the load.AlgorithmHence, we figured out the solution to the identified problem which is described here in thegiven algorithm below.Step 1: Start the systemStep 2: Follow the pathStep 3: If there is obstacleIf yes, take right turnIf no, go forwardIf no obstacle is detected continue following the path until end point is reached anddrop the load.Step 4: If there is colourful boundary (obstacle boundary line)If yes, take left turnElse, if no, go forwardStep 5: obstacle sensed?If yes, take right turnElse, go forwardStep 6: colour sensedIf yes, take right turnElse go forwardStep 7: offload the load at the end point.Avishek Kumar30369708 Hackathon Assignment ITECH1101URL diagramAvishek Kumar30369708 Hackathon Assignment ITECH1101Day to day WorkDay 1First day our lecture made group of three member. Basically, this day we were provided withreal Robot by our lecture and tutor in classroom, which helps us to get some qualityknowledge and functioning on robot. Basically, on this day I did: A detailed research on Mindstorms EV3 robots, its application and its limitation. Watched videos from YouTube about EV3 robot. Tutor suggested us to bring personal computer with EV3 mind storm downloadedand installed on the next class.Day 2Our all group member downloaded the software and installed it in their own computer. I alsodid the following things:Avishek Kumar30369708 Hackathon Assignment ITECH1101 Watched more videos from YouTube. Tried to put some flow together. Tested the algorithms on robot weather it’s working or not. Tried to understand the way of developing according with my algorithms and from thesamples given to us. I found out that the robot has some limitation as it cannot bend, cannot exactlycapture things etc.Day 3Basically, on day 3 we were provided with robot to test the program which we were made. I tried to make some simple connected diagram (programme) showing simple actiondone by the robot. I learnt to set the motor power, degrees, times etc. I finally made a simple diagram like structure.Day 4 On this day I revised all the things I have done within this day and tried to memoriseall of it because I had to continue from the previous point I had left. When I watched some videos and opened my software, I was much confident onwhat I am doing. I made several simple flow did some settings on power of the tank, moving the tank,putting some sensors etc.Avishek Kumar30369708 Hackathon Assignment ITECH1101Day 5Everything’s were going right we even made some parts of programming and today wasWednesday the day when I can test my programme with the robot. Now we as a teamdiscussed did more programming and started testing the programme. We filled the test caseas well. But all we had done was just an assumption that it may work, In reality only some ofthem worked, we couldn’t make the robot to turn in desired direction. We discussed with our tutor, friends from different groups.Avishek Kumar30369708 Hackathon Assignment ITECH1101 We now had a visual understanding on programming because some of the groupswere doing good jobs and we all were sharing what we know. Funny part that the hand of the robot was detached, and we even learnt how to fix it. We did a lot of testing that day but couldn’t get to the real work about loops, switch,different flow connection etc.Day 6 Now I had a little idea about loops and how to connect it with other flow. I watched videos from YouTube about putting switch inside the loop, using infraredsensors, colour sensors and adding extra case on switch. I made some sample and wished it will work because we can test whatever we builtonly on the Wednesday every week.Avishek Kumar30369708 Hackathon Assignment ITECH1101Day 7 I did all the revisions and started programming. I made various samples using whatever I can as I have to make more sample to testit on our class day. Everything was easy because I was just putting required values and function butdidn’t knew if it will work or not.Day 8 I have two samples to be tested likewise my team member had some so we hadenough sample to test. But we were all disappointed that whatever we are trying to make was not working. We tried to put loop inside loop and switch, or we made a program that didn’t evenrun, at least on our first test everything was right as it was just a simple and miniprogrammed and it seemed easy. So we discussed and made another final programme but we were out of time and asbeing leader of the team I took the responsibility to test the programme.Avishek Kumar30369708 Hackathon Assignment ITECH1101Day 9Saturday we suman and me attend an extra class to finish our remaining programme where: I finally have idea how to connect switch, loops and set dimensions and values in theboxes. Added some extra features like voice feature on robot. And I finally made my final programme and tested it. Everything was under control and I finally made a program and it was workingproperly. Now I can say myself a programmer.Avishek Kumar30369708 Hackathon Assignment ITECH1101Test CasesAvishek Kumar30369708 Hackathon Assignment ITECH1101Avishek Kumar30369708 Hackathon Assignment ITECH1101Final ProgramIn the initial design I have described of obstacle on the way but when I have a separate pathfor the robot and after detecting colour it sets off to its destination taking necessary turns,therefore I have eliminate the obstacles case. According to the program, while going forward,it will detect the object with the help of infrared sensor and produces sound and then takesright turn by 90 degree. It goes again forward, after a certain while, it will detect the blackcolour boundary line by colour sensor, then it will take left turn. Again, it will go forward till itdetect object, as soon as it detects object, it will tale again right turn by 90 degree. And thenagain it will follow the straight path till it comes closer to one of the red colour objects. AsAvishek Kumar30369708 Hackathon Assignment ITECH1101soon as it reaches to the red colour object, it will detect it with the help of colour sensor andfinally takes left turn and will goes forward till it reaches its destination.In this way with the help of program using different loops and switch as well different types ofsensor in the robot, we finally came to be success in programming the EV3 mindstorm robot.Avishek Kumar30369708 Hackathon Assignment ITECH1101

QUALITY: 100% ORIGINAL PAPER – NO PLAGIARISM – CUSTOM PAPER

Leave a Reply

Your email address will not be published. Required fields are marked *