Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Wiring a boolean switch. (http://www.chiefdelphi.com/forums/showthread.php?t=75417)

Dr. Manhattan 02-03-2009 19:50

Wiring a boolean switch.
 
We have a basic toggle switch on our bot, wired to the DIO. The switch bridges the power and signal lines, is this how it should be wired?

Mark McLeod 02-03-2009 19:59

Re: Wiring a boolean switch.
 
No.
It should connect ground and signal one way and nothing at all the other way.

+5v power is not used for a basic switch.

Integral 08-03-2009 11:26

Re: Wiring a boolean switch.
 
On our DS I found that I could not get a reliable signal if I just let the signal line float. You need to hold the signal high through a pull up resistor. Solder a 1k resistor to the 5V line, then the free end of the resistor to the signal and 1 side of the switch. Ground the other side of the switch. When the switch is open you will have a solid High signal, when the switch is closed a good low.


All times are GMT -5. The time now is 12:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi