|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Line Sensor updating
The digital inputs that our line sensors are connected to get infromaton from the line sensors once, but then fail to update, to continue to track the line. Is this a wiring problem? A programming problem? Can someone help? Thanks!
|
|
#2
|
||||
|
||||
|
Re: Line Sensor updating
How do you know they fail to update? Are you sure they're not actually updating, but just not giving a different signal? What loop are they in (the loop might have an infinite loop inside it or something)? How do you know they update the first time even?
|
|
#3
|
|||
|
|||
|
Re: Line Sensor updating
1. make sure the get method is in the correct periodic or loop
2. i found that initializing more victors (non-existant ones or existant ones, it doesn't matter) helps make the photoswitches respond. This is bc the db37 cable isn't sending enough power. |
|
#4
|
||||||
|
||||||
|
Re: Line Sensor updating
This is only necessary if your digital sidecar isn't wired properly. I noticed that you never responded to your previous thread, but it's obvious that you have an issue which you should resolve.
|
|
#5
|
||||
|
||||
|
Re: Line Sensor updating
Sorry about the time gap. To answer WizenedEE's question, We have it sending the values back to the classmate using the DriverStation LCD class. When we move the robot the information that's getting sent back doesn't change. The classmate is getting updated values, however the values from the sensors aren't changing.
|
|
#6
|
||||
|
||||
|
Re: Line Sensor updating
How should the photoelectric sensors be wired? I have heard several different things, and I'm not sure which is correct. Right now they aren't working. We have brown and blue connected to power, white to the DSC, and black to nothing. Which pin 1, 2, or 3, of the Digitat I/O should the white signal wire be connected to?
|
|
#7
|
|||||
|
|||||
|
Re: Line Sensor updating
Quote:
If you're concerned about brownouts, another option is to power them from an output on a Solenoid Breakout connected to 24 volts. Quote:
|
|
#8
|
||||
|
||||
|
Re: Line Sensor updating
So, just to clarify, brown connects to positive, and blue to negative, right?
And we connect them to a 24v solenoid breakout, not a 12v solenoid breakout? Can the black wire just be cut off and covered with electrical tape? |
|
#9
|
|||||
|
|||||
|
Re: Line Sensor updating
Quote:
Quote:
Quote:
|
|
#10
|
||||
|
||||
|
Re: Line Sensor updating
Where do we connect it for it to be zero? If brown and blue are connected to the solenoid breakout, then it's + and -, isn't it?
|
|
#11
|
||||
|
||||
|
Re: Line Sensor updating
zero in this situation is the -. Ground, common, minus, and zero all pretty much mean the same thing in this context, but they're all different in some way (ie, ground is technically the real earth, while common is for things that aren't grounded to the earth; minus really means the low part of an AC wave; and zero would be the midpoint when using AC).
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|