|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Trouble Reading Drivers Station Digital Inputs
Quote:
the fix is (sort of) easy, though a little unprofessional attach a ground wire with a 150ohm-ish resistor(thats what we used) to the signal pin, and have the switch connect the positive pin as normal this wil cause the voltage to always be negative if the switch is disconnected, and when it is connected, mostly positive you might want to play around with the resistor ohms to get a good mix hope that helped Last edited by Maxpower57 : 03-02-2009 at 19:47. |
|
#2
|
|||
|
|||
|
Re: Trouble Reading Drivers Station Digital Inputs
Quote:
|
|
#3
|
|||
|
|||
|
Re: Trouble Reading Drivers Station Digital Inputs
This does seem a LOT like the flaoting value problem some teams have experienced--you might want to do a continuity test and make sure the current is actuall getting through everything
You could also use a purely software approach to the problem, though it's a bit hack-ish. Since this is apparently a rare event, you could design a "buffering" system, where you keep track of not only the bit that you are feeding into your system but also a few before and after it. In other words, with the circuit closed, this would normally look like: 111 1 111 Where the value is the middle was the one you were feeding to anything that needed that value. Obviously with the circuit open, this should look like 000 0 000 But if you have an occasionally occurring 0, this could look like 111 0 111 In this case, it's fairly trivial for the algorithm to "bridge the gap" and change the 0 to a 1. Your millage will vary depending on how often you get a 0, so you'll probably need to figure out what kind of ratio of 1s to 0s you need for your system to work reliably without losing short periods where the circuit is actually open. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 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 |
| reading multiple digital inputs | angelkat | Programming | 2 | 25-01-2009 00:22 |
| Using driver station digital inputs | Japper | FRC Control System | 6 | 19-01-2009 20:01 |
| Reading NES controller from digital inputs | bear24rw | Programming | 10 | 07-04-2007 01:17 |