Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@MatanRad it's Arduino, so yeah kind of C.
@oscarascal it would be even smaller if we didn't keep the debugging code in. Probably another 10 lines taken away for that -
sSam15017yI guess the best way is to follow the edge of the line? Light sensor shows .5 - go straight, less than .5 turn right wheel faster depending on the value and same for more than .5 just for other wheel.
-
Interestingly our servos were not calibrated correctly, and so we had to use a for loop to figure out where each number was. We could also get a rough estimate of speed this way too.
-
lucifyer5167yAhhh. That last curve. I almost wish it had made it in the second time. Damnit! Great work!
-
hjk10157317yI think I'd use 4 wheels and 2 sensors if speed matters. What kind of sensor do you use by the way? Is it done special line but our just optical?
4 wheels for stability and one sensor to look ahead. Can do wonderful optimization with it like speed up if line is straight. -
@hjk101 I'd disagree and say that two wheels and a free moving wheel is enough. With four wheels turning could become difficult. The motor we were using were servos.
In our case we had no choice but to use 2 wheels. Using 4 would have deplete the battery too fast. Not only that but fine motor control was difficult given that we had to use low voltage to move (3.3v)
As for sensors we used IR sensors. Using one was rather effective. Using two with one pointing ahead might have worked, but there are some edge cases that may have caused problems, for example the sharp angled lines may trick the bot into thinking its on a straight away because it sees all black. -
I used to compete in RoboCup juniors's rescue line category. We did this and much much more. I loved it!
Related Rants
-
dfox46We're excited to announce the first devRant-sponsored hackathon! It features everything we could have dreamed ...
-
your-deadline11I am so thrilled that the hackathon that I coorganized is happening! 😍😍
-
retard32My classmate is a real SAVAGE!! He (team leader) and his team participated in hackathons several times and ke...
Participated in an IEEE Hackathon where we built a line following robot. We were the slowest, but we had the most accuracy.
The image is our first attempt at getting it to work, consequently, we were the first team to actually get a prototype finished and working. Other people were trying to cram as many sensors as possible. We stuck with one, and 47 lines of code to make it work. Everyone else had more than 2 sensors and I can only imagine how much code they had.
undefined
single sensor
line following bot
hackathon
ieee