|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
|||||
|
|||||
|
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. |
|
#3
|
|||
|
|||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pressure Switch Wiring | idahorobot | Electrical | 1 | 27-01-2007 11:18 |
| IR Switch Wiring | sgsdragons | Electrical | 2 | 14-02-2006 03:26 |
| Need Help Wiring Micro Switch/Limiting Switch | Windward | Electrical | 2 | 07-02-2006 18:26 |
| Wiring Nasson switch | ten3brousone | Pneumatics | 4 | 19-02-2005 17:16 |
| Wiring a switch | stevex | Electrical | 3 | 16-02-2005 08:31 |