|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Line Sensor
Today we were trying to get the line sensor work, and it didn't look like it's working.
The line sensor shows these: Green Yellow Yellow and Red We said Green is detecting black, and for others we said it's not. What we were supposed to get was to know if the line sensor works on the carpet. So we tried on the carpet, and it shows Green, Yellow, and Yellow and Red when we were trying on the same carpet. We gave up, and I didn't get why it was like that. Why was it like that? Thanks |
|
#2
|
||||
|
||||
|
Re: Line Sensor
Its a digital input, hook up the brown to the negative and the blue to the positive, the black is normally closed and the white is normally open. Hack a pwm cable so that the black and white line up (read: soldering iron).
Have Fun ![]() |
|
#3
|
||||
|
||||
|
Re: Line Sensor
We got all of them, but we don't get why it shows all of the 3 sign (Green, Yellow, Yellow and Orange)....
|
|
#4
|
|||||
|
|||||
|
Re: Line Sensor
Quote:
Brown is the positive supply to the sensor, and needs to come from the red terminal of a 20 Amp circuit on the Power Distribution board (or from an output on the solenoid breakout if you want to use 24 volts instead). Blue is the power return (ground), and should come from the adjacent black terminal on the Power Distribution board. Either black or white can be connected to the SIGnal pin of a Digital Input on the Digital Sidecar. The LabVIEW autonomous line-following sample code expects the white wire. |
|
#5
|
||||
|
||||
|
Re: Line Sensor
Quote:
|
|
#6
|
||||
|
||||
|
Re: Line Sensor
We've been using Blue as negative and brown as positive and nothing has broken by us doing it.
|
|
#7
|
|||||
|
|||||
|
Re: Line Sensor
Which is exactly the setup Alan described and is the opposite of what you originally posted.
|
|
#8
|
||||
|
||||
|
Re: Line Sensor
Quote:
Robototes2412, please remove/correct your post. |
|
#9
|
||||
|
||||
|
Re: Line Sensor
So in this setup, what is done with the black wires? Just connect them (a) to nothing or (b) to each other?
|
|
#10
|
||||
|
||||
|
Re: Line Sensor
Neuter them. (Cut them off).
|
|
#11
|
||||
|
||||
|
Re: Line Sensor
That's what I thought. The kids managed to tear out several wires yesterday, and I wanted to be sure how to re-wire them properly (and am limited on time before build).
I won't GIVE them the answer, but I wanted to be sure what the answer IS so that I can check their work and make 'suggestions'... |
|
#12
|
|||
|
|||
|
Re: Line Sensor
Okay, there seem to be two points to this if I'm correct, the wiring and what those $@#$@#$@#$@# outputs mean.
Wiring: Blue is power and Brown is ground. They must be plugged into the power distribution block to receive the voltage they need (there may be another way, but this is what we found online, tried, and it worked). The black and white wires are "Light Output" and "Dark Output". You only need one of these for the sensor to really work. The light output makes the sensor read true when it's over light, while the dark does the same when the signal drops below the threshold. As such, you actually only need to run the white OR black wire on a pwm with only the signal wire to get the output you want on the Digital Sidecar. As for the lights telling you what output you're getting, they're relatively simple if you read the paper that came with the sensors. Green means the sensor is A. receiving power and B. not giving output. If it's over the line, it shouldn't be showing green, since the output is energized. At the same time, your yellow light should turn on. The yellow light means the sensor is reading true, so it should toggle along with the green. The orange light is a little more confusing. When it is on, it means the sensor is receiving at least 2.5x the required signal strength to give a true output. What this really means is that the sensor is more certain that what it is seeing is the correct thing, not just background noise. This should only light up a a certain range from the target, and it's not actually necessary for tracking the line. Hope this helps! |
|
#13
|
|||||
|
|||||
|
Re: Line Sensor
NO! This is backwards! Alan's post has the correct wiring description.
Last edited by Vikesrock : 13-02-2011 at 10:45. |
|
#14
|
||||
|
||||
|
Re: Line Sensor
Quote:
See the bottom of Page2 and the top of Page3 of this document. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|