I’m using ARC on Windows with an EZInMoov Robot Head (EZB v4 over WiFi). I added a Sharp GP2Y0A21YK (10-80 cm) under the chin on a micro servo so the head can do a little "who’s there?" sweep. The sensor is powered from a 5V buck (set to ~5.05V), its analog out goes to ADC0, and grounds are tied to the EZB ground. The sweep servo is on D5. In the Sharp IR Radar robot skill I’m scanning roughly 50-130 with small steps.
What I’m seeing: when the scan servo moves, the Sharp IR Radar display’s red dot will occasionally jump to near +5V or drop to 0V for a frame or two, which falsely triggers my proximity logic; when the servo is still, the readings are rock solid. Confirmed with a separate script sampling ADC0 that the spikes coincide with servo motion.
What I’ve tried so far:
- Separate BEC for the scan servo (grounds common to EZB) - improved but not eliminated
- Added 100 F bulk + 0.1 F decoupling at the sensor
- Twisted pairs and moving the analog lead away from servo wires, plus a small ferrite
- Reduced servo speed and increased step delay in the Sharp IR Radar skill
- Left Movement Panel integration disabled (this is just a head, no drive)
A few questions: does the Sharp IR Radar skill apply any averaging or a postmove settle delay before sampling, or expose a filtered variable I can read instead of raw ADC? Is there a recommended way in ARC to synchronize sampling to occur only after each servo step settles? And on the wiring side, is it safe/wise to add a small RC filter (e.g., 1 k series + 0.1 F to GND) on the analog output given the EZB ADC input impedance, or is there a better grounding/star topology you recommend for this setup?
What’s the best ARCside approach (settings or scripting) and wiring practice to eliminate the Sharp IR Radar spikes on my EZInMoov head when the scan servo moves?

Yes - what you’re seeing is a classic servo-noise / ADC-sampling timing issue, and the better ARC approach is to stop relying on the Sharp IR Radar skill’s raw live sampling during motion and instead control the scan and sample timing yourself.
Short answer
That gives you much better results than trying to read the sensor continuously while the servo is in motion.
Why this happens
Even if the sensor is on a separate 5V regulator, a moving servo can still inject noise through:
So the spikes you’re seeing near 0 or +5V are very likely not "real" distance changes - they’re glitches in the ADC reading.
Best ARC-side solution
Recommended pattern
Use a custom JavaScript script instead of relying only on the Sharp IR Radar skill.
That way you can:
Here’s a simple example:
Why this is better
About the Sharp IR Radar skill
The built-in Sharp IR Radar skill is useful for visualization, but it’s not the best tool for precision sampling during servo motion.
If your project goal is:
then a scripted scan loop with filtered reads is the proven better method.
If you want, I can help you convert your scan into a proper ARC JavaScript state machine or a custom robot skill: https://synthiam.com/Support/Create-Robot-Skill/Overview
Wiring / filtering advice
RC filter
Yes, a small RC filter can help, but use it carefully.
A common starting point is:
That gives a mild low-pass filter and usually won’t hurt an analog sensor like the GP2Y0A21YK too much.
But:
Don’t make the filter too heavy or you’ll:
Better practice than only RC filtering
Use this stack of improvements:
That combination is usually much more effective than any single hardware trick.
Important note about the Sharp sensor’s power
The GP2Y0A21YK is generally happiest at 5V, so your regulated ~5.05V sounds fine.
Just make sure the sensor output is still safely within the EZ-B ADC range and that the ADC reference is not being polluted by servo noise on the shared ground path.
What I would do on your head
For an EZ-InMoov head specifically, I’d recommend:
That will be much more stable than continuous radar scanning.
One more ARC best-practice tip
If you’re already building logic around this, consider moving the behavior into a dedicated script or robot skill instead of mixing it into the radar display skill. That gives you complete control over timing, filtering, and thresholds.
Questions like this are often best handled with the ARC AI Assistant directly inside the script editor - it can help rewrite the scan logic for you: https://synthiam.com/Products/AI-Assistant
My recommendation for you
Best overall fix:
If you want, I can write you a complete ARC JavaScript scan script for your EZ-InMoov head that:
Also, what’s the end goal of the sweep - simple obstacle detection, person detection, or face/approach tracking?