Weird problem - "Hyper sensitive" Arduino with proximity sensor effect... ?

Hi

Tried to do a simple project today, which really was intended to be a simple light delay/fade effect. The basic set up I was using, is identical to the "Button" example.

My problem is that if I move my hand within 5-10 cm of the Arduino (specifically on the digital side, or to any wire connected to the digital side), the Arduino seems to think that the button is pressed, and lights up the LED. Although it is kind of cool to have a "proximity sensor" effect, it kind of screws up my projects...

I have experienced odd results before also with LCD displays getting garbled output, LEDs turning on/off randomly etc, but has never really realized that it might be because of my own proximity to the Arduino until now.

Anyone experienced this, and if so why is this happening? And is there any way of fixing it, except tossing the Arduino board in the garbage and getting a new one?

The board I have is a Arduino Uno, if it makes any difference :slight_smile:

Thanks in advance for any help!

You haven't wired it up right. You have a floating input. Read this
http://www.thebox.myzen.co.uk/Tutorial/Inputs.html

This post is in the wrong section, it is to do with your project not installation.

Hello mr Grumpy_Mike

English is not my primary language, and maybe I explained my issue wrong, but my issue is not with the project, but with the Arduino itself, as in something that doesn't work as it is supposed to. And if I by accident happened to post my Arduino troubleshooting issue in the wrong category, I apologize.

The issue I have, as I tried to explain before, is that if I move my hand within 5 cm of the digital side of the Arduino, or any wiring connected to this side, the Arduino registers the signal as "High", and in this case it does light up a LED when it is not supposed to. This proximity effect, although cool, is not intentional nor wanted, and it screws up the current project. I have had issues before, amongst other things with LCD displays getting garbled output, but have not realized that it apparently is because the Arduino itself has issues

The wiring is 100% identical to what is done here: http://www.arduino.cc/en/Tutorial/Button

Your link does not provide any useful information to solve my issue.

I will jump to my own conclusion and say the Arduino board is ready for the garbage bin. Sorry for bothering you with my issue.

I will jump to my own conclusion and say the Arduino board is ready for the garbage bin

Throw it my way - I'll take it.
Did you check your switch orientation?

@AWOL - Yes I checked the orientation of the switch. I don't even need to have the wire connected to anything for this to happen.

I'll send you the board if you pay shipping, but with Norwegian shipping prices, it's probably cheaper for you to buy a new, and functional, board online :roll_eyes:

Maybe the bet I'll place on it being human error will pay the postage.

Made a short video which you can see here:

https://dl.dropboxusercontent.com/u/28755940/DSCF0336.AVI

The Arduino has a LED in pin 13 + gnd, a wire connected to pin 2, and a battery. That's all. The code currently uploaded to the Arduino is the "Button" example file.

Never mind the messy desk...

And what did you expect to observe?
Did you read Mike's link?

You have a floating pin.

I expect nothing to happen, actually. But then again, I might be wrong, and that something should happen. I'll put away the electronic toys and gadgety things until tomorrow, and go and drink some good old fashion unelectronic beer instead :slight_smile: Have a nice night.

I expect nothing to happen, actually

Why?
You've attached an antenna to a high impedance input.
It'll pick up all sorts of junk. Your video shows that.

Re-read Mike's link.

I don't even need to have the wire connected to anything for this to happen

YES exactly, that is what happens on ALL arduinos when nothing is connected to them.

The wiring is 100% identical to what is done here: http://www.arduino.cc/en/Tutorial/Button

That is what you think. I am telling you that it is not. There is a mismatch between the circuit in the tutorial and what you think you have done. This could be because of your wiring on a bread board not making contact or a dozen other things. But what you describe is what happens when you have not wired it up correctly or nothing is wired up.

Your link does not provide any useful information to solve my issue.

Yes it does it tells you exactly what is going on with your circuit.