Become a leader in the IoT community!

New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!

Step 1 of 5

CREATE YOUR PROFILE *Required

Change Email
OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Collaboration & Work 🤝
Learn & Grow 📚
Contribute Experience & Expertise 🔧
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware & Design 💡
Embedded Software 💻
Edge Networking
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. Our community uses Answer Overflow to index content on the web. By posting in this channel your messages will be indexed on the worldwide web to help others find answers.
  7. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

How can I improve the stability and sensor placement for my line-following robot?

Hey! We built a robot with wheels and we are doing line follower using 3 black/white sensors to detect a black line. We place the sensor in front of the robot The problem is that the robot is a bit too large for the line, making it hard to stay on track. Its movements are also unstable and sometimes veers off.
Do you have tips on stabilizing movement or optimizing sensor placement?

  1. melta101#0000

    what is black/white sensor?

  2. melta101#0000

    IR?

  3. wafa_ath#0000

    0image0.jpg

  4. melta101#0000

    okay
    an IR,
    I see

  5. melta101#0000

    if your robot is a rectangle,
    what are the 3 sensor’s placement?

  6. wafa_ath#0000

    In the front of the robot
    0orca-image-1273272311.jpg

  7. melta101#0000

    hmm
    if all 3 are there

  8. melta101#0000

    how is the line looking like in comparisation to 1 sensor?

  9. wafa_ath#0000

    The robot is 34 cm long and 15 cm wide, and the line is 1 cm wide and the sensor is also 1cm wide , the line is been detected but the problem when we do the line following the robot goes off track because it’s a bit big

  10. wafa_ath#0000

    I just thought about implementing a PID controller OR changing the sensor to this
    0image0.jpg

  11. melta101#0000

    i suppose the way you are implement it
    (regardless of path planning) is to basically have the have mid sensor to be always black,
    if either side gets black and mid get white-> it rotates the other side
    and if all three get black, it stops (reaches end line)?

  12. melta101#0000

    at the moment?

  13. wafa_ath#0000

    The problem is the line is being detected as you said but when it make a turn it loose the road

  14. melta101#0000

    was the logic which i said, the one you are following?

  15. wafa_ath#0000

    Yes

  16. melta101#0000

    then it should fairly simple

  17. melta101#0000

    Your contraint are very tights

  18. melta101#0000

    you will need to space out your side sensors

  19. melta101#0000

    by how much?
    that you will need to expiriment

  20. melta101#0000

    looks good and saves a hassle of glueing each and every sensor/ Calibrating each sensor

  21. wafa_ath#0000

    I will try doing that tonight

  22. wafa_ath#0000

    So it 8 IR like am using, do you recommend adding sensor to the 3 am using?

  23. melta101#0000

    not really,
    it depend on the precision, you are aiming for

  24. melta101#0000

    you Could improve the SW instead

  25. melta101#0000

    for example

  26. melta101#0000

    if you know the style of track being used

  27. melta101#0000

    you could design the FW to compliment that

  28. melta101#0000

    if you know the tracks have only right angled turn and no curve,
    you could force your robot to do only 90/180 movement.

  29. melta101#0000

    Welp this is more of a stop gap, but hopefully you get what i mean

  30. wafa_ath#0000

    Yes i did, but I don’t know how the track going to be, am not the one making it so i have to do all cases, i will try what you suggest and give you updates.

CONTRIBUTE TO THIS THREAD

Browse other questions tagged