Sure thing. How's this?
I had asked for a reading of the switch voltage which we have yet to receive.Ok. Pull-up resistors 20kΩ-50kΩ are there to just barely pull up the input when the limit switch is open.
I say you can go as low as 100Ω and this should absorb most EMI.
Edit:
Just to make it clear, put the 1μF from input to ground.
The 100-220Ω goes from input to the +ve supply line of your Arduino circuit.
(I don't see why you couldn't put both R and C in parallel from the input to the +ve supply line.)
Make sure that you are connecting to the right voltage. Put a voltmeter across the limit switch. Activate the switch and tell me the voltage reading.
Hey MrChips! Ahh, I see, I didn't realise that.I did not expect that you would change all the inputs at once.
The 7812 is dropping 24 to 12 vDon't worry, guys, the 7812 is powering the Arduino only, not used for any signals. The system PSU is 24v, but Arduino Nano can only handle 12v VCC, hence the 7812. Arduinos have 3.3V and 5V output pins for connecting to myriad devices.
The 100R pull ups were connected between the same 5v rail as is used to set the stepper drivers' modes.
Thank you for your concern!!
"Sorry about the mishap."
Don't mention it, I really appreciate all of your help.
NO!I would bet that just a pullup if 100R would do it.
Bob
If the pins are in input mode?NO!
That will destroy the Arduino GPIO pin and likely the Arduino.
A 100R resistor at 5V will draw 50ma. The MAXIMIM current per pin is 40ma and should be designed to be around 20ma. PLUS, the TOTAL current draw has a MAXIMUM of 200ma. With three limit switches with an external 100R pullup resistor draws 150ma and the Arduino can easily pull 50ma. Anything more, with any external devices, etc… and the Arduino will self-destruct.
YesIf the pins are in input mode?
Can you explain how the chip would be damaged if the pin is set to input mode with 100Ω pull-up to +5V?
It’s good for me to be challenged; that’s how I learn.Can you explain how the chip would be damaged if the pin is set to input mode with 100Ω pull-up to +5V?
What is the +ve supply line of this circuit? If it’s 12V, then the pin will be destroyed. If it’s the Vin pin, then the three pullup resistors will be sinking 150ma from the Arduino 5V regulator. Again, it likely with everything else to be drawing more than 200ma. And, the 200ma is a maximum. Often, design specifications specify 150ma. In either case we are in the danger zone if we use a 100R resistor.The 100-220Ω goes from input to the +ve supply line of your Arduino circuit.
(I don't see why you couldn't put both R and C in parallel from the input to the +ve supply line.)
I couldn't agree more.It’s good for me to be challenged; that’s how I learn.