Go to Post Givens do not need solutions. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2009, 19:03
FRC4ME FRC4ME is offline
Registered User
FRC #0339
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Fredericksburg, VA
Posts: 324
FRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant future
How sensitive are the driver station digital inputs?

Okay, so we've plugged four switches into four of the eight digital inputs on the driver station and written code to make those inputs do something when turned on. Yes, we remembered that on is false and off is true in the code. The switches all seem to work fine.

One day, however, we made a very interesting discovery; whenver someone touches the PWM cables, whatever input is connected to that cable begins pulsing on and off. We discovered this when someone was bundling up the wires and everything on the robot started moving. It was quite fun to impress the build team with our magical powers.

Right now, we've solved the problem by wrapping the wires in spiral plastic, but does anyone have an explanation for this? Are you telling me those digital inputs are so sensitive, lightly touching an insulated area of the PWM cable is enough to set them off? Are we the only ones with this problem?

When wiring the switches, we connected ground (black) to one terminal and signal (white) to another. Is this correct?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2009, 19:12
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: How sensitive are the driver station digital inputs?

You must use a 10k pull up resistor on the driver’s station. The crio input on the robot has built in 10k resistors but not the driver's station.

So put a 5V to 10k and that goes to input. Then when the switch is flipped have it go to ground.

A way to have a three way switch, on-off-on (up - neutral - down) tie 47k resistor to each end of the switch both terminating to the middle of the switch. The end of switch is tied to 5v and other end to ground. Then the middle goes to the analog port. That will give you three conditions to be read by analog input.
__________________
Doug Leppard
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2009, 19:19
FRC4ME FRC4ME is offline
Registered User
FRC #0339
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Fredericksburg, VA
Posts: 324
FRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant future
Re: How sensitive are the driver station digital inputs?

Quote:
Originally Posted by Doug Leppard View Post
You must use a 10k pull up resistor on the driver’s station. The crio input on the robot has built in 10k resistors but not the driver's station.

So put a 5V to 10k and that goes to input. Then when the switch is flipped have it go to ground.

A way to have a three way switch, on-off-on (up - neutral - down) tie 47k resistor to each end of the switch both terminating to the middle of the switch. The end of switch is tied to 5v and other end to ground. Then the middle goes to the analog port. That will give you three conditions to be read by analog input.
I'm confused. It seems to me like you're saying:

When switch is off, signal should be connected to ground.
When switch is on, signal should be connected to 5V going through 10K resistor.

That's a little difficult to do with a SPST switch...
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2009, 19:25
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: How sensitive are the driver station digital inputs?

I made it too complicated. What you have already done, connect a 10k to the side that has the input and the other side of the 10k to 5V. Same switch just adding 10k resistor from input to 5V.

We had the same problem and checked if driver's station had pull up resistors which it doesn't
__________________
Doug Leppard
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2009, 20:26
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: How sensitive are the driver station digital inputs?

Quote:
Originally Posted by FRC4ME View Post
I'm confused. It seems to me like you're saying:

When switch is off, signal should be connected to ground.
When switch is on, signal should be connected to 5V going through 10K resistor.

That's a little difficult to do with a SPST switch...
You're close, but backwards and incomplete.

When switch is off, signal should be connected to 5V going through 10K resistor (this will be read as true).
When switch is on, signal should be connected to ground -- and still connected to 5V going through 10K resistor. The resistor will keep the 5V and ground on opposite sides of itself (this will be read as false).

When done as Doug suggests, there is always a 10K resistor from +5V to the signal line. The switch leaves the signal alone when open, and pulls it to ground when closed.
Reply With Quote
Reply


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
Inputs on Driver Station z2daj C/C++ 8 16-02-2009 04:12
using digital inputs from the driver station SL8 NI LabVIEW 2 04-02-2009 15:53
Programming Digital Inputs from Driver Station spooncwru Programming 8 01-02-2009 13:14
Digital Outputs on the Driver Station with C/C++ Bongle C/C++ 6 26-01-2009 15:45
Using driver station digital inputs Japper FRC Control System 6 19-01-2009 20:01


All times are GMT -5. The time now is 03:17.

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