Go to Post Let's let FIRST bring us together as a whole rather than separate us into parts eh? - sanddrag [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 05-05-2008, 19:42
knine143 knine143 is offline
Registered User
FRC #1047
 
Join Date: Feb 2008
Location: Irvine
Posts: 15
knine143 is on a distinguished road
Light RGB Sensor

Hey all

I need a light sensor that can detect RGB values or recognize a specific RGB value. This will be used for detecting an orange cone.

This sensor looks pretty good: http://www.sparkfun.com/commerce/pro...oducts_id=8618

The problem is that the evaluation board needed to hook up the sensor is out of stock...

Are there any other sensors out there that could do the job? What do you recommend? Also, we are connecting the sensor to the FRC robot controller, so it would be nice if it sent analog data.

Thanks
  #2   Spotlight this post!  
Unread 05-05-2008, 20:27
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Light RGB Sensor

Why not just use a CMUcam? you already have those prepackaged with previous year's kits...

if not id order the sensor anyway. half the fun is figuring out how to wire it.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
  #3   Spotlight this post!  
Unread 05-05-2008, 20:35
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Light RGB Sensor

Quote:
Originally Posted by Uberbots View Post
Why not just use a CMUcam? you already have those prepackaged with previous year's kits...
Indeed. Beautiful piece of equipment.

Mind telling us a bit more about the project? *says the curious programmer*

-Jacob
  #4   Spotlight this post!  
Unread 05-05-2008, 20:44
SL8's Avatar
SL8 SL8 is offline
...
AKA: Jesus
FRC #0647 (Cyber Wolf Corps)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Killeen, Texas (Fort Hood)
Posts: 352
SL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud of
Send a message via Yahoo to SL8
Re: Light RGB Sensor

Quote:
Originally Posted by Uberbots View Post
Why not just use a CMUcam? you already have those prepackaged with previous year's kits...

if not id order the sensor anyway. half the fun is figuring out how to wire it.
I believe there is just a little programming complexity there.
__________________


  #5   Spotlight this post!  
Unread 05-05-2008, 20:54
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Light RGB Sensor

Just be aware that the sensor you linked to is small and not an imager. That is, it essentially senses one pixel. So, if you wanted to "find" an orange cone, you'd really have to so some fancy mechanical tricks so that it pointed right at the cone.

The CMUcam, on the other hand, is a camera. It will tell you the size and centroid of an object of a certain color within its field of vision. This can be very useful for locating objects.

Don

.
__________________

I am N2IRZ - What's your callsign?
  #6   Spotlight this post!  
Unread 06-05-2008, 18:32
knine143 knine143 is offline
Registered User
FRC #1047
 
Join Date: Feb 2008
Location: Irvine
Posts: 15
knine143 is on a distinguished road
Re: Light RGB Sensor

Quote:
Originally Posted by whytheheckme View Post
Indeed. Beautiful piece of equipment.

Mind telling us a bit more about the project? *says the curious programmer*

-Jacob
The project is called RoboMagellan. We are given GPS coordinates of an orange cone and have to autonomously navigate to it avoiding trees and other obstacles along the way including varying terrain. There are also bonus cones that can be touched to score higher.


I was thinking about using the CMUcam, but my team has never done this before. Would i be able to easily program it to know where a cone is? With the light sensor, I was thinking to just have the robot rotate in place when it knows its near the cone and once the sensor detects orange, it will know that the cone is in front of the sensor.
  #7   Spotlight this post!  
Unread 06-05-2008, 21:21
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Light RGB Sensor

The CMU cam can be taught to recognize a "color", anywhere in RGB-space, and can also be given 'tolerance' parameters to account for some lighting or color variations.

Instead of having your controller process image data (ouch!), the CMUcam does this for you, providing signals that say "I've found that color", "This is how 'big' the color is" (i.e., how much of that color is in the field of vision), and "this is the center of the 'blob' of color". Exactly what you need to 'see' a cone from 30 feet or more and go to it.

Programming it is also not difficult, but you are well advised to read all of the instructions explaining it. Also search here. The part most folks have the most trouble with is calibrating the camera - setting the color and tolerance, so that the object is found, but only the object and not every stray cat that runs past the robot. This takes a little tweaking by trial and error. The LabView calibration routine makes it a LOT easier to do well.

Your color sensor is meant to have light shine upon it. Unless the cone glows brightly, and you have a good lens system to focus the light from a small area (don't want it 'seeing' a 45 degree field of vision...) the RGB sensor you propose will not work.

Don
__________________

I am N2IRZ - What's your callsign?
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
Vex Light Sensor on FRC Bot Aerex Programming 8 20-03-2008 23:00
Light Sensor Filter dasmoenator Programming 2 21-11-2007 23:49
Vex Light Sensor Robots_R_Us Technical Discussion 2 11-08-2006 18:24
Light Sensor Type, Please Help! Alexander McGee Electrical 7 20-11-2004 21:48
How do light sensor(Banner) work? roberthan Programming 9 25-02-2004 14:05


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

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