
Can anyone give me some help on my project? please~
The aim of my project is to collect all the green circles around the cardboard field(92cm*122cm), and without leave the filed. I was tried to using if else() to assist me to reach the aim, but the code I coded was totally doesn't work... the program will just finsih immediately...I need some help....><
and here is my draft code
I want to using light sesor to dectecting the green points and to avoiding the robot leave the field. out side the caredboard is the black carpet, so I set the threshold between black and whit(cardboard), and white(cardboard) and green. And the method Iwant to using is spining out from the center of the field(cardboard), than if detecting the green point the robot will have a beep sound, after the robot spinning to the black carpet, it will turn around and back to the field and move forward and keep finding the green points, and while the action for 20mins. Above is my draft code, but totally doesn't work... i hope some one can give me some sugguest and help me to finish my project~><please~
Thank alot.