Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Wiring A Dipswitch (http://www.chiefdelphi.com/forums/showthread.php?t=62801)

SuspectZero 29-01-2008 17:32

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?

MCahoon 29-01-2008 18:02

Re: Wiring A Dipswitch
 
Suggest making sure your programmer has enabled the +5 V pull-ups on the inputs.

SuspectZero 29-01-2008 18:09

Re: Wiring A Dipswitch
 
Quote:

Originally Posted by MCahoon (Post 688181)
Suggest making sure your programmer has enabled the +5 V pull-ups on the inputs.

i'm sorry what do you mean by +5V pull-ups?

MCahoon 29-01-2008 18:33

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.

Alan Anderson 29-01-2008 21:15

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?

DonRotolo 29-01-2008 21:46

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


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

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