Jump to content

Recommended Posts

Posted

Hi Mindstorm fans!

We are creating a robot that has to follow the black line from A to B. We're using a color sensor. (That problem is fixed) In a second program the robot needs to use the short cut (yellow line). What is the best solution to solve this problem? An extra color sensor? You may always share your scheme with us! Thank you!

parcour2.png

Posted

@Critical thinker OK.

Next question: How does your robot look like? (Hardware setup)

Next question then: How do you accomplish the line following task? Classical line follower by scanning left to right and whenever there is a change from bright to dark change direction? Or a more advanced code?

Is the floor exactly as shown in your picture? Does the yellow line penetrate the black line or not at all? 

When you have two color sensors, it becomes much easier: Depending on your robot, the scanning becomes much smoother as you can look at either border of the black line. When one color sensor detects a black/green change -> steer appropriately. And you can look for a black/yellow and/or green/yellow change on both as well; this means you need to branch off and then detect yellow/green changes for steering.

But again: It all depends on your robot design and availability of more color sensors than one.

Best
Thorsten

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...