Sharp GP2D12 IR sensor interference

Recently i found out that this IR sensor produces quite a bit of interference. It interferes with an accelerometer and yes even on servos. Using an Arduino mega on a USB-bus, power for the sensor comes from the arduino and using the arduino to read it.

Anyone noticed/had this problem and perhaps found a solution for it?

Viki

Try wiring a .1mfd bypass cap between +5vdc and ground mounted right at the sensor body and see if that helps.

Lefty

My usual advice is to read this:-
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

Thanks for the quick replies and link, i'll have a try with that..

Unfortunately this hardly has any effect.. Could the IR-outputs be some sort of issue perhaps?

Could the IR-outputs be some sort of issue perhaps?

No

Unfortunately this hardly has any effect

Can you post a schematic of your circuit along with what sort of decoupling you tried.

This is a partial schematic (drawing the whole thing would take a couple of hours more).

So if a 0.1uF won't cut down the interference sufficiently you will have to go with a series resistor or inductor like I explained on the page I posted. As well as putting a large electrolytic say 47uF across the 0.1uF.

drawing the whole thing would take a couple of hours more

This implies it took you over an hour to draw that. What ever are you using? A simple vector draw package is all you need. Failing that a pen and paper and photograph the result.

More like 15 mins using photoshop, aint no wizard with that and drawing all sensors, servos, motors, cams etc. would take some time...

I'll try the next cap, see if that works.

OK make sure that the 5V and ground to your sensor go straight to the 5V and ground on the arduino, with the other stuff you power going straight to the arduino. Also make sure the capacitor is as close to the sensor as possible.

Will do, thanks!