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.
So I ran the little Sharp IR calibration script. I came up with a value of "90", that I want use. But, per your recommendation to "Set Minimum Distance Before Turn in the Sharp IR Radar skill, it would only go up to 60. I did increase the delays to 300/400 also. So with the fact that the IR Radar is limited. The robot still only stops when detecting the collision. Is there a new update to this skill?
Thanks - that helps. A few points and two practical ways to fix this (quick script workaround, and longer-term skill change).
Why the Radar skill is capped at 60 (what’s happening)
What you can do right now (two options)
Option A - Quick, reliable workaround (recommended)
Notes:
Option B - Longer-term: change the Radar skill or create a custom skill
Quick tests and items to verify
I’ll tell you whether the Movement skill supports the commands the Radar tries to call and whether there’s an obvious skill update path.
Would you like:
Tell me which you prefer and which Movement Panel you’re using and I’ll proceed.
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.
Also like to add that I am using the servo Movement Panel to control the drive motors, and that my Bing Speech also can control drive direction.
Great - thanks for the extra details. Since you’re using the servo Movement Panel (and Bing Speech can also drive the robot), the avoidance logic needs to:
Below I give a ready-to-run JavaScript script you can add to your ARC project (fast workaround), explain how it works, give instructions to test Movement Panel commands manually, and show how to make Bing Speech respect the avoider via a small guard in its scripts.
Notes about the script:
If the robot physically reverses and turns when you run the test, the panel supports those commands and the avoider script should work. If it does nothing, tell me what happens and which servo Movement Panel variant you added so I can match the API.
Resources
Next step - which would you like?
Tell me which and paste the output of a short ADC check (run only the top few lines of the avoider printing "ADC7 = ...") and the name of your servo Movement Panel skill if you want me to tailor the skill/script settings.
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.
This is awesome info and I look forward to trying them.
In the meantime, if a new or updated "Sharp IR Radar skill" can be created to increase the "Minimum Distance Before Turn" beyond the limit of 60, that would also be great.
I did try the first Sharp IR Avoider script. I was successful in getting the robot to reverse and turn, based on your recommended settings previously. But after the turn happens the robot stops which is ok for now, but I'm also looking to have two things happen, the robot will continue forward (while still scanning) and the turns will be based on the robot having enough space to turn in opposite direction, then to continue forward (this may require the help of my Ultrasonic sensors) and all this works with the Navigator skill if possible.
Nice - thanks for the clear goals. Below I provide:
Reminder: to add this as a quick workaround, use Project Add robot skill Script JavaScript, paste the code, Save and Start.
Enhanced Sharp IR Radar (JavaScript)
Paste this into a JavaScript Script robot skill and edit the top settings to match your robot:
How to install and test
Notes and tips
Follow-ups I need to finish tuning or produce the importable skill
If you prefer, I can convert the script into a proper robot skill with a configuration UI (threshold, ports, times, sonar settings, Navigator integration checkbox). Which would you like me to do next?
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.
You can make a little bit of passive money without any investment or betting on this platform. Because this app offers promotions with promo codes to earn cash rewards. Moreover, it also offers a welcome and plenty of other bonuses.
y999 game download