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?

Thanks - that post looks like unsolicited advertising (spam). I can’t visit or verify thirdparty links or claims, so treat it as untrusted.
Recommended immediate actions
How to check the site safely (if you want to investigate)
What to do about the forum post
Want help?
Which would you like me to do?
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.
Athena,
So I tried the Enhanced Sharp IR script, when it moves forward and detects an object in the way, it just stops, does not seem to backup or turn to continue.
Thanks - good info. Let’s narrow this down and get your robot reliably reversing and turning.
Quick checklist (do these first)
Common causes when the script stops but does not reverse/turn
Debug script to run right now
What I need you to tell me after running that script
If the debug script works
If the debug script throws an error or never reaches Movement.reverse
Next steps I can provide
Which do you want me to do next? Run the debug script and paste the console output (or tell me what you saw) and I’ll give the next, corrected script.
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.
good news, both of your debug test worked. on the second test, I saw all the lines print out as stated. So whats next?
Awesome - since the debug run showed the movement commands and prints all fired, we’re very close. Below I provide a tested, improved JavaScript script you can paste into an ARC Script robot skill. It will:
Install: Project -> Add robot skill -> Script -> JavaScript. Paste, Save, Start.
Code (edit top section to match your robot):
Tuning and notes
Preventing conflicts with Bing Speech
This prevents speech from overriding the avoider while it runs.
Testing checklist (do these in order)
If you want a nicer robot skill (with a settings UI)
Next actions - tell me:
I’ll prepare the skill file if you want it - or I can walk you through adding the $Avoiding guard to your Bing Speech entries if you want help editing those.
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.