Sabertooth Movement Panel icon Sabertooth Movement Panel Sabertooth movement panel: control two motors via Simplified Serial with variable speed sliders, movement buttons, and serial port options. Try it →
Asked

Sharp IR Collision Detection Configuration Issue

I have a question about the Sharp IR Collision Robot Skill.

I'm conducting a small test on my robot using the Sharp 5V Analog GP2Y0A02YK0F IR sensor. I've configured the Sharp IR Collision Skill with the following settings:

  • Analog Port: ADC7
  • Interval: 1000ms
  • Collision Detected Condition: "Greater than" 28

Could someone explain why the collision detection for this sensor is set to trigger on values "Greater than" 28 as opposed to "Less than," which is commonly used with ultrasonic sensors? I haven't noticed any updates to this skill that would clarify this.

Additionally, I'm using the "Sharp IR Radar" Skill with these configured settings:

  • Port: ADC7
  • Interval: 500ms
  • Servo Port: 0.20
  • Minimum Position: 15
  • Maximum Position: 260
  • Increment Speed: 10
  • Only Scan When Moving Forward: Checked
  • Control Movement Panel: Checked (I'm using the servo Movement Panel for my drive wheels)
  • Reverse Before Turn: Checked
  • Minimum Distance Before Turn: 31
  • Turn Delay: 10ms
  • Reverse Delay: 20ms

With these settings, my question is: Why does the robot stop when it detects an object at a far distance rather than waiting until it is closer, like near a wall? Additionally, when the robot does stop, it neither reverses nor turns. What might I be missing in my configuration that could solve this issue?



Related Hardware (view all EZB hardware)
EZ-B V4 by EZ-Robot
EZ-B v4/2 robot controller: dual Cortex ARM, Wi-Fi, audio/video, 24 servo/digital ports, I2C/UART, camera and Synthiam ARC control for custom robots
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

Related Robot Skills (view all robot skills)
Sharp IR Radar by Synthiam
Radar-style Sharp IR scanner for EZB ADC: sweeps sensor, displays distance dots, logs ADC voltage, and can steer/avoid obstacles via Movement Panel
Stops movement panels when a Sharp IR sensor on EZB ADC detects objects within a set range; displays ADC voltage, VU meter and 0-255 distance value.

ARC Pro

Upgrade to ARC Pro

Synthiam ARC Pro is a new tool that will help unleash your creativity with programming robots in just seconds!

Author Avatar
PRO
Canada
Twitter YouTube GitHub
#25  

This thread is still about the Sharp IR / ARC robot issue, so I’m going to stay on topic and ignore the unrelated promotional posts.

About your latest Sharp IR question

If your calibration value is around 90, but the Sharp IR Radar "Minimum Distance Before Turn" only goes up to 60, then that skill is likely not suitable as-is for that sensor range/value in your setup.

That means:

  • the Radar skill’s built-in threshold range is capped
  • your sensor’s useful stop/turn value is outside the built-in limit
  • so the robot will only behave as expected for the Collision stop, not the radar-style reverse/turn behavior

What you can do

Option 1: Use a custom script instead of the Radar skill

This is the most flexible solution if your threshold needs to be 90.

You can create a small JavaScript robot skill that:

  • reads ADC7
  • compares it to your threshold
  • stops, reverses, and turns the robot based on that value

That gives you full control over the threshold and timing.

Example:

var threshold = 90;

while (true) {
  var adc = ADC.get(ADC7);
  print("ADC7 = " + adc);

  if (adc >= threshold) {
    Movement.stop();
    sleep(300);
    Movement.reverse(100, 400);
    sleep(500);
    Movement.left(100, 300);
    sleep(400);
  }

  sleep(100);
}

That would give you a starting point, and you can tune the reverse/turn timing.

Option 2: Keep using the Collision skill only

If you just want a stop-at-obstacle behavior, the Sharp IR Collision skill should work fine with Greater than 90.

Option 3: Check if the Radar skill is just too limited for this sensor

The built-in Radar skill may simply be designed around the more common sensor range values and not your specific GP2Y0A02YK0F calibration.

Why it stops but doesn’t reverse/turn

Based on what you described, the most likely causes are:

  1. Radar threshold range limit
  2. Movement Panel not supporting the command set the Radar skill expects
  3. The reverse/turn timings are still too short for visible motion
  4. The Radar skill is stopping the robot, but not actually issuing the next movement command

Best next step

I’d recommend testing with a custom JavaScript skill rather than trying to force the Radar skill to do something outside its threshold range.

Helpful ARC references

If you want, I can help you build a custom JavaScript obstacle-avoidance skill for your robot using your ADC7 = 90 threshold and your current movement panel.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
Author Avatar
Unknown Country
#26  

Roja directa tv is an online platform that provides access to sports-related content and live match updates. It is designed for users who want quick information about ongoing games, schedules, and general sports entertainment in one place easily through browser access.

Author Avatar
Unknown Country
#27  

papadustream app  works smoothly on mobile phones tablets and desktop computers allowing users to enjoy streaming anytime anywhere The platform ensures responsive design fast loading speed and stable playback for better entertainment experience across all devices support for every user here

Author Avatar
Unknown Country
#28  

senpaistream app overall is an anime streaming platform that provides users with easy access to entertainment content It focuses on smooth playback fast loading and user friendly design making it a convenient option for online viewing best for anime fans here

Author Avatar
PRO
Canada
Twitter YouTube GitHub
#29  

I’m going to keep this thread focused on the Sharp IR / ARC avoidance issue and ignore the unrelated promotional posts.

About the Sharp IR Radar limit

If the Minimum Distance Before Turn only goes up to 60, then yes - that skill’s built-in configuration range is too low for your sensor calibration value of 90. That would explain why:

  • Collision can still stop the robot
  • Radar never reaches its internal "turn/reverse" threshold
  • the robot appears to stop only, with no backup/turn behavior

What this means

The Sharp IR Radar skill is likely not configurable enough for your sensor’s raw value range. There isn’t a newer update I can point you to that changes that threshold limit.

Best workaround

Use a custom JavaScript skill instead of the Radar skill. That gives you complete control over:

  • the ADC threshold
  • reverse duration
  • turn duration
  • speed
  • hysteresis so it doesn’t keep retriggering immediately

Example starting point:

var threshold = 90;
var reverseMs = 400;
var turnMs = 300;

while (true) {
  var adc = ADC.get(ADC7);
  print("ADC7 = " + adc);

  if (adc >= threshold) {
    Movement.stop();
    sleep(100);
    Movement.reverse(100, reverseMs);
    sleep(reverseMs + 100);
    Movement.left(100, turnMs);
    sleep(turnMs + 100);
  }

  sleep(100);
}

Important note

That script assumes your current Movement Panel supports:

  • stop()
  • reverse()
  • left()

If it’s a Servo Movement Panel, I’d want to confirm that it’s actually configured to support those directional commands.

What I recommend next

  1. Keep Sharp IR Collision if you only want a stop function.
  2. If you want reverse + turn, switch to a custom JavaScript control.
  3. Tell me which Movement Panel skill you’re using exactly, and I can help you write the correct script for it.

If you want, I can help you build the full JavaScript obstacle-avoidance script step by step.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
Author Avatar
Unknown Country
#30  

Tele-latino App is an online streaming platform that provides users access to movies and TV channels through a browser based interface. It offers easy navigation, fast loading, and smooth playback experience for entertainment lovers across multiple devices worldwide for convenience today

Author Avatar
Unknown Country
#31  

the-sportzfy App works efficiently on mobile phones, tablets, and desktop computers. It offers responsive streaming quality and stable performance, allowing users to enjoy live sports events anytime from anywhere without interruptions or technical difficulties during viewing sessions.