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
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
@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
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.
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 Have a nice night.
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.