Go to Post Uhh... we were supposed to be building a robot? *looks at giant wooden Trojan Rabbit in the corner that was built instead for the past 6 weeks* Whoops... - Adam Richards [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 30-11-2004, 17:19
dark.shadow15's Avatar
dark.shadow15 dark.shadow15 is offline
Unregistered User
AKA: Ray
#1241 (Theory6 Robotics)
Team Role: Student
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Mississauga, Ontario, Canada
Posts: 5
dark.shadow15 has a little shameless behaviour in the past
Exclamation Optical Sensors

Can we please have some information about Optical Sensors, because our team has just decided to use them. We need to know how to use them, how to program them, etc.

Any ideas will be greatly appreciated.

Thanks,

Team 1241
__________________
Team 1241-Team Hansen Experience of Robotic Youth

Awards Won:
-2004 CMP DaimlerChrysler Team Spirit
-2004 GL Rookie Inspiration Award
-2004 ON DaimlerChrysler Team Spirit
-2004 ON Rookie All-Star
-2004 GL Rookie All-Star
-2003 GL Highest Rookie Seed


Visit Our Team Website

  #2   Spotlight this post!  
Unread 30-11-2004, 18:34
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Optical Sensors

Ray,

Look this over and then post with any additional questions: Banner Sensors
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #3   Spotlight this post!  
Unread 01-12-2004, 08:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,800
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Optical Sensors

Quote:
Originally Posted by dark.shadow15
We need to know how to use them, how to program them, etc.
Banner sensors can be used for lot of purposes: line tracking, measuring distance traveled, locating obstructions or those bins from 2003.

See the Banner spec sheet Mike identified for detailed information.

Hookup to Controller
v Power and ground attach to 12v breaker panel 20a fuse
o brown wire - +12V
o blue wire - ground
v Signal attach to a digital input (only need to pick one)
o black wire – Open by default signal
o white wire – Closed by default signal
v The detection range of the Banner is adjusted by a small black pot on the back.

The code is simply a check on the digital input the Banner signal wire is connected to. The Banner is either on or off, e.g.,
Code:
if (rc_dig_in01)
	//The Banner detects an obstruction – e.g., detour
else
	//The banner doesn’t “see” anything – e.g., keep going

For example, if you are using it to measure distance by watching alternating light/dark spots on your wheels or drive shafts, then each on/off cycle will equal a certain number of inches traveled. Your code will just keep count whenever the banner changes from on to off and vice versa, e.g.,
Code:
/* The following polling of the Banner sensors should be performed in the fast loop */
#define TRUE 1
#define FALSE 0
/* Note: Banner TRUE or FALSE will differ based on which of the two possible 
* signal wires you choose to use
*/
 
static char bannerFlag = FALSE ; // Default to FALSE
static int wheelCounter=0;
 
// Count when the Banner changes from on to off (& vice versa)
if (rc_dig_in01 & bannerFlag) 
{ 
	wheelCounter++;
	bannerFlag = FALSE ; 
}
else if (!bannerFlag)
{ 
	wheelCounter++;
	bannerFlag = TRUE ; 
}
[edit] A side note:
The sensors will take a few seconds on 12v power start-up, before the readings are dependable, and be careful with the 7.2v RC backup battery. If the RC stays on while the 12v power is cycled you will get several bogus on/off readings from the banners while they are powering up.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-12-2004 at 07:34. Reason: Added fast polling note
  #4   Spotlight this post!  
Unread 03-12-2004, 20:07
Sparks333's Avatar
Sparks333 Sparks333 is offline
Robotics Engineer
AKA: Dane B.
FRC #1425 (Wilsonville Robotics)
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Wilsonville, Oregon
Posts: 184
Sparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of light
Send a message via AIM to Sparks333
Re: Optical Sensors

Also:
They are digital. That really didn't make much sense to me, but they are. Hook them into digital i/o on the robot controller, and don't worry about more than 5v going to sig. The digital i/o looks for either a pos voltage or gnd, with no real specification on the pos voltage.

Sparks
__________________
ICs do weird things when voltage is run out of spec.

I love to take things apart. The fact that they work better when I put them back together it just a bonus.

http://www.ravenblack.net/random/surreal.html
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
Optical Sensors Used as Encoders? uvabrad825 Technical Discussion 22 03-05-2004 13:22
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 acting strangely rosebud Electrical 10 03-02-2003 00:29
optical sensors majormusic2005 General Forum 1 28-01-2003 20:37


All times are GMT -5. The time now is 10:34.

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