RoboHappy
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?

Short answer - it’s not a bug: Sharp IR sensors report a voltage that increases as an object gets closer, so the Collision and Radar skills trigger on a larger ADC value (Greater than) when something is near. Ultrasonic distance sensors return a distance value where smaller numbers mean closer, so those use Less than.
Below I explain why you’re seeing the robot stop "far away," why it may not be reversing/turning, and give stepbystep troubleshooting + recommended settings and a quick ADC test script so you can calibrate the thresholds for your GP2Y0A02YK0F.
Why "Greater than" (not "Less than")
Why your robot stops at a far distance
Why it doesn’t reverse or turn Possible causes:
Stepbystep troubleshooting & recommended changes
Set collision/radar thresholds from measurements:
Increase delays so you can see motion:
Verify Movement Panel compatibility:
Ensure names match and Control Movement Panel is enabled:
Test manual movement commands
Re-test with adjusted thresholds and delays:
How to configure skills (kebab/hamburger)
Helpful links
Quick recommended starting settings (after you calibrate ADC):
Next steps I can help with
Would you like me to walk through running the ADC calibration and then set the exact thresholds to use?
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.