|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Wiring A Dipswitch
well i was trying to put a dipswitch into one of the Digital Inputs but i cant seem to get a signal from it. its a basic switch (open and close) and i have ground connected to the lower pin (in which case the switch is open) and i have signal connected to the other pin (in which case the switch is closed) but a closed switch does not seem to send a signal to the robot controller. any ideas?
|
|
#2
|
|||
|
|||
|
Re: Wiring A Dipswitch
Suggest making sure your programmer has enabled the +5 V pull-ups on the inputs.
|
|
#3
|
||||
|
||||
|
Re: Wiring A Dipswitch
i'm sorry what do you mean by +5V pull-ups?
|
|
#4
|
|||
|
|||
|
Re: Wiring A Dipswitch
Make sure your dip switch is connected to digital in/out pins. For the Digital In/Out ports on the RC, your user code must define whether the port pin is an input or an output. By defining the port pin as an input, there is a resistor allowing a small amount of current (large resistance) connected from that input pin to the +5 V supply built into the RC (the "weak pulll-up"). Your dipswitch is connected such that if the switch is open, the RC should read a logic "1", and conversely, a logic "0" when the switch is closed. On the IFIRobotics site, there is a manual on the RC which provides more information.
Last edited by MCahoon : 29-01-2008 at 18:42. Reason: erroneous statement |
|
#5
|
|||||
|
|||||
|
Re: Wiring A Dipswitch
If you're talking about the digital inputs on the Robot Controller, a switch connected between signal and ground is exactly the right way to do it. An open switch will be read as 1, and a closed switch will be read as 0.
How are you determining that no signal is being sent? |
|
#6
|
|||||
|
|||||
|
Re: Wiring A Dipswitch
To emphasize what MCahoon wrote: These pins can be inuts or outputs (you have to say which) - obviously, if #1 is configured as an output your RC will have a tough time reading the switch value...
(I know this from experience) Don |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| expandable wiring | Calvin_1631 | Electrical | 15 | 19-02-2007 07:33 |
| wiring? | SPARKY1688 | Electrical | 4 | 31-01-2005 17:44 |
| wiring | Michael Leicht | Inventor | 2 | 21-01-2005 15:49 |
| pneumatic wiring | nick_champ_2 | Electrical | 0 | 17-02-2003 18:28 |
| wiring. | archiver | 2001 | 1 | 24-06-2002 00:07 |