Hi,
I use 3 pins of Arduino as INPUT to trigger GSM module. When the pins receive 5V then they started to tigger.
As you see the diagram: Pins must be GROUND position without triggering it.
I watched some videos to make ground floating pins. I connected pins with 20K resistor to ground and connected same pins to 5V with switch as in attached diagram.
When I run the Arduino in the office it works good. But when I run the Arduino in the Glasshouse sometimes it start to triggered by itself?!
What can I do to prevent self triggered the pins? Should I increase or decrease the resistor value.
By the way there are some frequence drivers in the Glasshouse system room.
If I were you I would do exactly what you described. For example, the other day I used a 200 ohm resistor and it worked perfectly. Otherwise you are welcome to send us your sketch, maybe we can help you there...
i cant find anything in the code by now... As said before i would change the resistor values.
If you have enough time you can try to minitor when this sus activity happens.
Hi,
What about harmonic or frequence converters effect to Arduino in the same room?!
How can I prevent this? Because it works good in the office.
Strange?!...
If you are using the S3 setup, you would be enabling the internal pullup resistor for that input.
If you still get false triggers, consider adding stronger (external) pullups. Try 10K to start with and go lower if need be. Don't go lower than about 1K, though.
Also, adding a 0.1uF ceramic cap across the switch can act to dump (decouple) noise off to ground.
What is causing the problem is EMI Electro Magnetic Interference. Due to your poor choice of resistors you have made your circuit more susceptible to EMI.
The fact that it will work in one place but not the other is due to the two environments of the rooms. One has little or no EMI and so even though your circuit has poor susceptibility, there is no problem.
The other room has a much higher level of EMI and so it is getting through and making your circuit not work.
The first thing you can do is to decrease the value of your pull up or pull down resistors. Try 1K to begin with, but go lower if you still have problems. If you get to 100R without improvement then you will have to make modifications to the source of the EMI to reduce it. But try using more sensible values of resistors to start with.
Hi,
Thanks a lot for valuable information.
Well, I will try 1 K resistor first as you suggested.
What can I do to reduce EMI in the system room? If I use batery pack to feed Arduino then it make sense?
A battery pack will make little or no difference, the EMI is a radio signal and doesn't effect the unwanted reception.
Add inductors in the form of ferrite beads or toroids to the power leads, is one simple way, but you might have to dismantle these things for a fix. There are limits to how much EMI things can emit , if these are commercial things, check they have been correctly certified to the standards you work to in your country.