Do anyone have the arduino code for line maze solving bot using 5 IR array | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Do anyone have the arduino code for line maze solving bot using 5 IR array

1st Feb 2018, 3:18 AM
thealoneprogrammer
thealoneprogrammer - avatar
5 Answers
+ 7
yeah fyn thank u I wrote the code now I'm facing one more problem which is a wall maze solver using 3 ultrasonic sensors can u help with it?
11th Feb 2018, 6:57 AM
thealoneprogrammer
thealoneprogrammer - avatar
+ 3
hi. you could use a code presented in instructables and modify if it is necessary. if you still face any difficulty you can share your code and we will help you. I already did this project but I didn't save the code source. good luck
10th Feb 2018, 8:17 PM
medidou
medidou - avatar
+ 1
sure, just specify which kind of problems you are facing and I will try to help you.
11th Feb 2018, 11:00 AM
medidou
medidou - avatar
0
You actually only need 2. a maze, as opposed to a labirynth, can always be solved by by keeping one hand on the wall while going through it. Basically you look forward and you keep touching the right wall proceeding until you are out. in your case you can substitute the hand with an ultrasonic distance sensor left or right. another ultrasonic sensor will sense if there is an obstacle ahead that requires turning. if distance on the right is more than the treshold, turn to the right until the didtance meets the treshold again else if there is an obstacle ahead turn to the left until the right distance from the wall is within the treshold. no matter how long you deroute you will get uot of the maze but without external intervention you'll end up going around the external walls of the maze until you reenter it eventually, in an endless loop. basically additional sensing will be necessary to detect exit from the maze if you don't want the endless loop
2nd Jul 2018, 4:14 PM
seamiki
seamiki - avatar
0
My previous answer explains the basic concept of maze solving: you'll have to tune your program to meet your robot's physical limitations (turning radius , speed, turning procedure, corners handling etc...).
2nd Jul 2018, 4:20 PM
seamiki
seamiki - avatar