Go to Post I blame FIRST for being the best thing that has happened to me. - vivek16 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 25-01-2002, 19:03
Ulibrium Ulibrium is offline
Registered User
#0920 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia, PA
Posts: 29
Ulibrium is an unknown quantity at this point
Send a message via AIM to Ulibrium
Optical Sensors

Yo,

How do you hook optical sensors up? I got one blue wire, one brown wire, one black wire, and one white wire. There is a diagram on that is a little confusing. What I did was I connect the brown wire to one of the digital input pins on the RC, and the blue wire to a ground pin. My result was the switch bit constantly set to 1. My impression from the diagram was to tie the black and white wire together, but it didn't seem to change anything.

Also, I don't have any reflective tape to test this with. I was trying to change the response by covering and uncovering the sensor but that was of no use. Do I absolutely need reflective tape?
__________________
Three mathematicians slave over a board full of tensor calculus. One looks to the other and asks... "do you remember what we sent out to prove?"
  #2   Spotlight this post!  
Unread 25-01-2002, 19:59
hallty hallty is offline
Registered User
#0409
 
Join Date: Jan 2002
Location: San Jose, CA
Posts: 2
hallty is an unknown quantity at this point
Exclamation RTFM

There is an abbreviation that we have learned from various other teams. It is RTFM. R= Read, T=The, M=Manual. You can figure out what the F means. They supply a manual for a reason. Try reading it sometime.
  #3   Spotlight this post!  
Unread 25-01-2002, 20:46
srawls's Avatar
srawls srawls is offline
Registered User
#0122 (Nasa Knights)
 
Join Date: Dec 2001
Location: Yorktown
Posts: 507
srawls is an unknown quantity at this point
Send a message via AIM to srawls
Wow ... I don't know about you, but I came across RTFM on the programming scene--and it wasn't very polite. Someone would ask a 'begginer' question, and someone else would feel that it waisted their time and they responded with RTFM. Anyway, back to the kinder, gentler first

I don't think covering your hand over it will set off the sensor, you need to cover it with a reflective surface (e.g. shinny metal). The two wires are there for conviniance, either nc (normally closed) or no (normally open). That just means that one will give a '1' when nothing is sensed and a '0' when something is sensed, and the other will be just the opposite. The other two wires are just ground and power, so I think you can handle them.

Stephen
  #4   Spotlight this post!  
Unread 25-01-2002, 21:02
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,580
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Optical Sensors

Quote:
Originally posted by Ulibrium

Also, I don't have any reflective tape to test this with. I was trying to change the response by covering and uncovering the sensor but that was of no use. Do I absolutely need reflective tape?
When the sensor is properly connected to power and ground, there will be some lights that come on, on the sensor.

You do not need the reflective tape, we were able to get it to trigger on someone's hand from a few inches or a piece of sheet aluminum from a few feet. We were also able to get it to trigger on the reflective tape on someone's backpack at 10-15 feet
  #5   Spotlight this post!  
Unread 25-01-2002, 22:00
Jnadke Jnadke is offline
Go Badgers!
#0093
Team Role: Alumni
 
Join Date: Jan 2002
Location: Appleton, WI
Posts: 775
Jnadke is on a distinguished road
Send a message via ICQ to Jnadke Send a message via AIM to Jnadke Send a message via Yahoo to Jnadke
Hook the brown to +, blue to -.

Don't tie black and white together.

When nothing is sensed, the circuit for the white is closed and the black is open. When the light is reflected and sensed, the white is open and the black is closed.

Or is it the other way around... I'm just doing that off the top of my head...

Just hook both white and black to SEPARATE digital inputs and debug the variables. You can find out by trial and error. When you figure it out, you only really need 1 wire to detect 1 or 0.
  #6   Spotlight this post!  
Unread 25-01-2002, 22:02
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Pull up resistors needed for not RC port use...

If you are going to use the sensors as an input to the custom circuit board, you will have to have a pull up resistor. Without the pull up resistor your signal will look very lousy and probably will not do what you want it to do.

Joe J.
  #7   Spotlight this post!  
Unread 25-01-2002, 22:11
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
Despite the many acrimonius acronyms, The diagram on the side of the (last year's*) sensor shows
-BU (Blue) connecting to relay contacts, through the 'armature' of the relay. These contacts are wired to WH(ite) and BK (black) wires. The rectangles are supposed to be 'loads' which are connected to the +BN (brown).

For those unfamiliar with Euro style colour codes
here they are (English Only, although the system is used in every language (What language uses G for yellow ?))

Bk Bn R O Y Gn Bu V Gy W
Black Brown Red Orange Yellow Green Blue Violet Gr(e/a)y White.

Notice Bk, Bn, and Bu, each starting with the same letter, but each having a unique 2nd letter (Bl is black, or is it blue ?). Green and Gr(e/a)y are taken care of similarly, and the (e/a) of dark white or light black doesn't matter.

(*ours for 2002 still haven't arrived from Manchester)
  #8   Spotlight this post!  
Unread 25-01-2002, 23:25
Jon Lawton Jon Lawton is offline
Bitter FIRST Cynic
no team
 
Join Date: Oct 2001
Location: San Jose, California
Posts: 209
Jon Lawton is an unknown quantity at this point
Send a message via ICQ to Jon Lawton Send a message via AIM to Jon Lawton
Re: RTFM

Quote:
Originally posted by hallty
There is an abbreviation that we have learned from various other teams. It is RTFM. R= Read, T=The, M=Manual. You can figure out what the F means. They supply a manual for a reason. Try reading it sometime.
I saw this come up on #FIRSTRobotics...

Read The First Manual!

...so I don't know what *YOU* were thinking...
  #9   Spotlight this post!  
Unread 25-01-2002, 23:48
Ulibrium Ulibrium is offline
Registered User
#0920 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia, PA
Posts: 29
Ulibrium is an unknown quantity at this point
Send a message via AIM to Ulibrium
Ok.. for all you people who reply RTFM, you are only wasting your own time by posting a useless message.

I don't know which pin is for power. ACCORDING TO THE MANUAL... the digital input pinout is only comprised of digital switches and grounds. It doesn't go Power +5 V, Input, Ground like the analog inputs do. So, for power, which one do I plug it into?

Also, I didn't have lights go on. At least, I couldn't tell that they were on.

But I did have a signal.

The diagram on the side didn't help, because it only showed + and - for Blue and Brown. It didn't really illustrate what to do with the White and Black.
__________________
Three mathematicians slave over a board full of tensor calculus. One looks to the other and asks... "do you remember what we sent out to prove?"
  #10   Spotlight this post!  
Unread 26-01-2002, 00:14
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
This should take care of things(from the Manual)

From 2002 FIRST Robotics Competiton Manual, Section 2.1.6, page 12, Figure 2.4
Optical Sensor Wiring
Blue -> Digital Input Pin 3(Ground)
Brown -> +12 Vdc (From breaker on fuse Panel)
Black -> Digital Input Pin 15(Switch Input 3)
WHite -> Digital Input Pin 16(Switch Input 4)
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
  #11   Spotlight this post!  
Unread 26-01-2002, 00:34
Ulibrium Ulibrium is offline
Registered User
#0920 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia, PA
Posts: 29
Ulibrium is an unknown quantity at this point
Send a message via AIM to Ulibrium
Give me a link to the PDF version of this manual on First's web site.
__________________
Three mathematicians slave over a board full of tensor calculus. One looks to the other and asks... "do you remember what we sent out to prove?"
  #12   Spotlight this post!  
Unread 26-01-2002, 01:30
s_alaniz s_alaniz is offline
Registered User
#0057 (Leopards)
 
Join Date: Jun 2001
Location: Houston, Tx
Posts: 73
s_alaniz is an unknown quantity at this point
Hope you have disc space!

Ulibrium,
Dude! Hey you asked some good questions.. ok first let me point out where the relavent documentation is.

You probably already have these files downloaded so bear with me please...
From the F.I.R.S.T. web site under documents and updates, under the competition documents there is the kit_p_hlist.pdf which is a very big PDF but if you have it, on page G-12 at the top there is the wiring diagram for the unit. The first diagram is of the NPN (sinking output) and is the basis for the example in the innovation First control system user's manual. Open the System control manual to page 30 and refer to table 7.8
OK between the two sources, you get, that the brown wires from all your sensors get wired directly to a 12V breaker. From table 7.8 you can see that pins 3,6,9,12,13,14,17,20 and 23 all have ground so just take your pick and wire the blue wire to one of these pins. Now you've got power going to the sensor. The example shows wiring the black normally opened lead to pin 15 and the white normally closed output to pin 16, Because of the way the default rogram is written, these pins were resverved for relay 2 control and enables or disables the relay . You have another "freebie" in
relay 1 but using the same diagram and wiring pin 1 to normally opened black lead and pin 2 to the normally closed white lead of the sensor...pick one of the ground pins mentioned above and you now have a second sensor ready to go that programmatically controls relay 1.
If you want more relay control, you have to modify the default program.
When you power everything on you should see a red light coming from the optical sensor. If you can't and you think there's something wrong with the sensor, here's a good trick. Cam Corder recorder systems are sensitive to the infrared outputs. look through the eyepiece of a cam corder at the sensor and you should see some light. IN fact, grab your TV or stereo remote control and look through the eyepiece while pressing a botton and you can see the infrared pulsing LED.
Hope this helps.

Best wishes

Steve Alaniz
  #13   Spotlight this post!  
Unread 26-01-2002, 10:37
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Quote:
Originally posted by Ulibrium
Give me a link to the PDF version of this manual on First's web site.
It's page 14 in this file:
http://www2.usfirst.org/2002comp/robot.pdf
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Q&A Discuss: Optical sensors with EduBot CD47-Bot Extra Discussion 2 01-03-2003 18:37
Q&A Discuss: optical sensors CD47-Bot Extra Discussion 0 15-02-2003 22:58
optical sensors great_one411 General Forum 1 15-02-2003 19:54
optical sensors acting strangely rosebud Electrical 10 03-02-2003 00:29
OPTICAL SENSORS??????????????????? NM_programming Technical Discussion 2 13-01-2002 17:41


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

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