Go to Post Have you hugged your programmer today? - Gabe [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 10-02-2011, 18:33
MathFreak's Avatar
MathFreak MathFreak is offline
Team Leader/Electrical
AKA: Hikari Iwasaki
FRC #5701 (Indigo Ninjas)
Team Role: Electrical
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Japan
Posts: 76
MathFreak is on a distinguished road
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
__________________
Hikari Iwasaki
2nd Grade student at Senior High school at Otsuka,University of Tsukuba

2014 Team5701 Team leader
2011 Team 296 Youngest team member

Team 5701 Indigo Ninjas
Website
Facebook
Twitter
Blog (in Japanese)
  #2   Spotlight this post!  
Unread 10-02-2011, 18:39
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
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   Spotlight this post!  
Unread 10-02-2011, 18:41
MathFreak's Avatar
MathFreak MathFreak is offline
Team Leader/Electrical
AKA: Hikari Iwasaki
FRC #5701 (Indigo Ninjas)
Team Role: Electrical
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Japan
Posts: 76
MathFreak is on a distinguished road
Re: Line Sensor

Quote:
Originally Posted by Robototes2412 View Post
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
We got all of them, but we don't get why it shows all of the 3 sign (Green, Yellow, Yellow and Orange)....
__________________
Hikari Iwasaki
2nd Grade student at Senior High school at Otsuka,University of Tsukuba

2014 Team5701 Team leader
2011 Team 296 Youngest team member

Team 5701 Indigo Ninjas
Website
Facebook
Twitter
Blog (in Japanese)
  #4   Spotlight this post!  
Unread 10-02-2011, 22:32
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: Line Sensor

Quote:
Originally Posted by Robototes2412 View Post
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).
I hope nobody follows this advice. It's completely wrong.

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   Spotlight this post!  
Unread 10-02-2011, 22:41
MathFreak's Avatar
MathFreak MathFreak is offline
Team Leader/Electrical
AKA: Hikari Iwasaki
FRC #5701 (Indigo Ninjas)
Team Role: Electrical
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Japan
Posts: 76
MathFreak is on a distinguished road
Re: Line Sensor

Quote:
Originally Posted by Alan Anderson View Post
I hope nobody follows this advice. It's completely wrong.

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.
Blue is negative and Brown is positive, that's what a site on the internet was saying....
__________________
Hikari Iwasaki
2nd Grade student at Senior High school at Otsuka,University of Tsukuba

2014 Team5701 Team leader
2011 Team 296 Youngest team member

Team 5701 Indigo Ninjas
Website
Facebook
Twitter
Blog (in Japanese)
  #6   Spotlight this post!  
Unread 11-02-2011, 10:31
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Line Sensor

We've been using Blue as negative and brown as positive and nothing has broken by us doing it.
  #7   Spotlight this post!  
Unread 11-02-2011, 10:35
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Line Sensor

Quote:
Originally Posted by Robototes2412 View Post
We've been using Blue as negative and brown as positive and nothing has broken by us doing it.
Which is exactly the setup Alan described and is the opposite of what you originally posted.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #8   Spotlight this post!  
Unread 11-02-2011, 11:20
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Line Sensor

Quote:
Originally Posted by Vikesrock View Post
Which is exactly the setup Alan described and is the opposite of what you originally posted.
I agree.

Robototes2412, please remove/correct your post.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #9   Spotlight this post!  
Unread 11-02-2011, 12:31
pfreivald's Avatar
pfreivald pfreivald is offline
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,303
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
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?
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
  #10   Spotlight this post!  
Unread 11-02-2011, 12:33
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Line Sensor

Quote:
Originally Posted by pfreivald View Post
So in this setup, what is done with the black wires? Just connect them (a) to nothing or (b) to each other?
Neuter them. (Cut them off).
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #11   Spotlight this post!  
Unread 11-02-2011, 12:39
pfreivald's Avatar
pfreivald pfreivald is offline
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,303
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
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'...
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
  #12   Spotlight this post!  
Unread 13-02-2011, 10:38
SudoSammich SudoSammich is offline
A pretty big deal...
AKA: Corey
FRC #0514 (Entropy)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Miller Place
Posts: 31
SudoSammich is an unknown quantity at this point
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   Spotlight this post!  
Unread 13-02-2011, 10:42
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Line Sensor

Quote:
Originally Posted by SudoSammich View Post
Wiring: Blue is power and Brown is ground.
NO! This is backwards! Alan's post has the correct wiring description.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)

Last edited by Vikesrock : 13-02-2011 at 10:45.
  #14   Spotlight this post!  
Unread 13-02-2011, 10:51
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Line Sensor

Quote:
Originally Posted by SudoSammich View Post
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).
That works, until it doesn't work.

See the bottom of Page2 and the top of Page3 of this document.



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


All times are GMT -5. The time now is 23:35.

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