Go to Post Without mentors, you wouldn't even be participating in FIRST. Your team wouldn't exist, and FIRST as a program wouldn't exist. If it did, it'd just be another form of a science fair. - Cory [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2008, 17:32
SuspectZero's Avatar
SuspectZero SuspectZero is offline
2254 Team President
FRC #2254 (Twisted Transistors)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Mississauga, Ontario
Posts: 16
SuspectZero is an unknown quantity at this point
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?
__________________

Team 2254: Twisted Transistors
2007 FRC: Placed 18th in Regionals
2008 FRC: TBD
  #2   Spotlight this post!  
Unread 29-01-2008, 18:02
MCahoon MCahoon is offline
Registered User
FRC #3826 (Sequim Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Sequim, WA
Posts: 129
MCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud of
Re: Wiring A Dipswitch

Suggest making sure your programmer has enabled the +5 V pull-ups on the inputs.
  #3   Spotlight this post!  
Unread 29-01-2008, 18:09
SuspectZero's Avatar
SuspectZero SuspectZero is offline
2254 Team President
FRC #2254 (Twisted Transistors)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Mississauga, Ontario
Posts: 16
SuspectZero is an unknown quantity at this point
Re: Wiring A Dipswitch

Quote:
Originally Posted by MCahoon View Post
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?
__________________

Team 2254: Twisted Transistors
2007 FRC: Placed 18th in Regionals
2008 FRC: TBD
  #4   Spotlight this post!  
Unread 29-01-2008, 18:33
MCahoon MCahoon is offline
Registered User
FRC #3826 (Sequim Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Sequim, WA
Posts: 129
MCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud ofMCahoon has much to be proud of
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   Spotlight this post!  
Unread 29-01-2008, 21:15
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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   Spotlight this post!  
Unread 29-01-2008, 21:46
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
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
__________________

I am N2IRZ - What's your callsign?
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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