RoboticsGeneral

Maqueen Microbit

userHead Account cancelled 2019-07-20 05:41:52 6892 Views3 Replies
Hi everyone, I wish you can show me a code example for my daughter Maqueen: Microbit line tracer
- Follow line @ tracing line (white line & black background)
- Follow line @ tracing line (black line & black background)

Then, how to program @ code
- Turn left in T-junction (in white / black line)
- Turn right in T-junction (in white / black line)
- Avoid obstacle while following the line and go back on track
- Keep moving while get trough inside hollow box

I try a few wikiMaqueen but I cannot merge them in one code. Anyone could shows us how to merge all Wiki Maqueen code to complete above listed tasks?

thanks in advance
2019-07-25 15:43:17 @leftenan_ika
While you wait for DFRobot to "check on things!", here is some information that I hope will be useful:

In order to determine a T junction direction resolution, one needs at least three, ultimately 5 Sensors:
  • 3 Sensor model:
    - one in the middle to sense the road
    - one to the left to detect LEFT branches
    - and one to the right to detect the RIGHT branches

    5 Sensor Model:
    - one in the middle to sense the road, positioned slightly behind the other four
    - two to the left and two to the right for detecting road deviations and turns
Take a look at these pictures to understand what the issue is:

3 Sensor Model:
Image

5 Sensor Model:
Image

As such, it is impossible to code to T junction decisions with the standard Maqueen kit. It only has two IR sensors meant for following a path, and detecting deviations from it.

You need to locate a more advanced model that has the additional sensors.
userHeadPic anonymous