Unstable with External Power

Hey Guys,

I've got a small problem:

I've got a project where I've got 5 cap-sensors as input. And they are outputted to a LEDdriver.

This is working great and very stable when I connect the arduino to USB, but when I use an External Power Supply my cap sensors become very unstable. It looks like somehow the whole circuit isn't properly grounded (even though I connected the - of the ext. power to the ground and the + to the Vin pin), because when I connect both the USB and the external powersource everything also works great.

However; I only want to use the external power source!

Hope you guys can help!

You need extra decoupling

http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

But why then does it work when I've got both the USB and the external power source? How does my USB influence (/filter) this noise?

But why then does it work when I've got both the USB and the external power source? How does my USB influence (/filter) this noise?

The on board auto-voltage selector circuit will switch to USB power if both power sources (USB & external) are available, so the only test for the external power quality is when only it is available. I suspect that the external power module is a poor quality unit that has a whole lot of ripple voltage. You might want to try a better power module, or perhaps try a 12vdc battery to see if the problem goes away. A proper quality power module should not require adding additional filtering and bypass capacitors, but adding such would probably fix what you are seeing.

Another possiblity is the warning from the site you posted: cap-sensors

Grounding and other known issues The grounding of the 'duino board is very important in capacitive sensing. The board needs to have some connection to ground, even if this is not a low-impedance path such as a wire attached to a water pipe.

Capacitive sensing has some quirks with laptops unconnected to mains power. The laptop itself tends to become sensitive and bringing a hand near the laptop will change the returned values.

Connecting the charging cord to the laptop will usually be enough to get things working correctly. Connecting the arduino ground to an earth ground (e.g.water pipe) could be another solution.

Another solution that seems to have worked well on at least one installation, is to run a foil ground plane under the sensor foil (insulated by plastic, paper etc), and connected by a wire to ground. This worked really well to stabilize sensor values and also seemed to dramatically increase sensor sensitivity.

It's possible that your USB power is properly grounded to your PC's AC outlet, where your external power module will not have a hardwired ground connection to the AC power system. You might want to try some of their suggestions.

Lefty

Thanks for the reactions!

I tried placing a capacitor over the Vin and ground port (both a 47uF and a 86 pF); no big difference.

The adapter indeed doesn’t have a proper ground, so I suppose i might try replacing my adapter or atleast first try a proper powersource… Connecting it to a waterpipe isn’t an option here :slight_smile:

Edit: Ok, so I connected the ground with myself and it worked perfect :P. The grounding of the adapter obviously was the problem! Buying a new adapter (which is properly grounded) exceeds my budget though (because I making three of these lamps) so I decided to connect the - of the adapter with the ground of the outlet (the small iron pin) and it works like a charm. Not the most perfect solution, but atleast it works ;D