Go to Post anything that craves Mountain Dew is definitely intelligent enough to be dangerous. - IMDWalrus [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-01-2006, 18:36
Alienvin's Avatar
Alienvin Alienvin is offline
Technically Speaking, Who Knows....
AKA: Vinny
FRC #1546 (Chaos Inc.)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Baldwin, NY
Posts: 25
Alienvin is an unknown quantity at this point
Has Anybody played with the Camera?

Has anyone put together the camera? If so, how does it work......? Are there plans....
__________________
2010 Regional Finalist Award Winner - SBPLI Long Island Regional
2007 Kleiner Perkins Caufield & Byers Entrepreneurship Award Winner - SBPLI Long Island Regional
2006 Johnson & Johnson Sportsmanship Award Winner - SBPLI Long Island Regional
2005 Rookie All-Star Team Award Winner - SBPLI Long Island Regional

http://teacher.baldwinschools.org/robotics
  #2   Spotlight this post!  
Unread 10-01-2006, 20:47
KVermilion's Avatar
KVermilion KVermilion is offline
... clearly ...
#0649
 
Join Date: Jan 2005
Location: Saratoga, Ca
Posts: 52
KVermilion is infamous around these parts
Re: Has Anybody played with the Camera?

Yes
Somewhat
Yes
  #3   Spotlight this post!  
Unread 10-01-2006, 22:16
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Has Anybody played with the Camera?

Quote:
Originally Posted by KVermilion
Yes
Somewhat
Yes
What results have you had? Does it detect the green light easily? How about when light conditions around change slightly? Any more details? Thanks a ton.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #4   Spotlight this post!  
Unread 10-01-2006, 22:35
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: Has Anybody played with the Camera?

The camera detected the green target very easily, and tracking is pretty fast. Kevin's code works awesomely (as always ). Light conditions dont seem to affect the tracking.

The pan-tilt assembly works great, once you've put it together.

And finally, don't try testing on the old controller unless you take all the separate modules and install them into a version of last year's default code.

Hope this helps somewhat,
__________________
  #5   Spotlight this post!  
Unread 10-01-2006, 22:50
AndyB's Avatar
AndyB AndyB is offline
Ambitiously Disappointing
AKA: Andy Burchardt
FRC #0171 (Cheese Curd Herd)
Team Role: College Student
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Platteville, WI
Posts: 1,185
AndyB has a reputation beyond reputeAndyB has a reputation beyond reputeAndyB has a reputation beyond reputeAndyB has a reputation beyond reputeAndyB has a reputation beyond reputeAndyB has a reputation beyond reputeAndyB has a reputation beyond reputeAndyB has a reputation beyond reputeAndyB has a reputation beyond reputeAndyB has a reputation beyond reputeAndyB has a reputation beyond repute
Re: Has Anybody played with the Camera?

for us we tested it for the first time today. we mounted the green light panel on an overhead projector cart and ran it around to see if the camera around. at times the camera seemed a bit slow or sluggish, but it definitly did a much better job finding it. we have it working on day 2 lol, we didnt get it working on day 42 last year... the camera this year should bring for a promising competition. i am SO curious as to see what other teams have come up with...
__________________
Team 171 :: Cheese Curd Herd :: College Mentor, 2008-Present
Team 269 :: CooneyTech Robotics :: Student, 2005-2007
  #6   Spotlight this post!  
Unread 10-01-2006, 23:39
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Has Anybody played with the Camera?

I figured the menus would drop some jaws on the floor, but I haven't gotten any feedback (positive or negative). Are folks trying this feature out? Any problems?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #7   Spotlight this post!  
Unread 11-01-2006, 02:22
Rombus's Avatar
Rombus Rombus is offline
Registered User
AKA: Rick Kosbab
FRC #4188 (Columbus Space Program)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Opelika, AL
Posts: 346
Rombus is a jewel in the roughRombus is a jewel in the roughRombus is a jewel in the rough
Send a message via AIM to Rombus
Re: Has Anybody played with the Camera?

Quote:
Originally Posted by Kevin Watson
I figured the menus would drop some jaws on the floor, but I haven't gotten any feedback (positive or negative). Are folks trying this feature out? Any problems?

-Kevin
They look cool, i would love to get my hands on them, problem is our camera isnet tracking. Im guessing its probably the fact our backup battery was near dead, but im not sure. I know i wasnet getting any feedback from the sytem, could it be the fact i was using a USB to Serial cable?

I wish the RC would finally swap over to USB (Hint hint IFI!)
__________________


  #8   Spotlight this post!  
Unread 11-01-2006, 03:24
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: Has Anybody played with the Camera?

Quote:
Originally Posted by Rombus
They look cool, i would love to get my hands on them, problem is our camera isnet tracking. Im guessing its probably the fact our backup battery was near dead, but im not sure.
YES! The camera picture "brightness" varies tremendously with battery voltage, becoming a dim grey at low voltages. I would suggest building a standalone 7.2-volt regulator (LM317 chip will do nicely), and run the camera off of that. That way your test results will be consistent.
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #9   Spotlight this post!  
Unread 11-01-2006, 03:32
Chris Orimoto Chris Orimoto is offline
Stay in school kids ^.^
FRC #0368 (TKM.368 (Team Kika Mana))
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, Hawaii
Posts: 10
Chris Orimoto is an unknown quantity at this point
Send a message via AIM to Chris Orimoto
Re: Has Anybody played with the Camera?

Been playing with the camera for 3 days now...

So far we've found the search function to pickup the green light relatively quickly. As for tracking, the camera has an impressive rate so far. I somehow believe that the search/track functions can be bogged down by other code when more complex functions are added. However, the prospect of directing shots entirely by camera seems very promising so far.

As for the menus, kudos to Kevin. Quite beautifully done. So far, I've utlilized them to toy with different settings (without having to reset the entire program). However, the default settings seem to work just fine. My only concern is that the menus completely halts the current code, which could be problematic depending on other functions that should be executed. In the end though, I hope to find absolute settings (that can be loaded through the header file).

One question for everyone though...since the camera is interrupt driven, how does it affect other interrupting encoders? Does anyone know how many interrupting devices the new PIC can handle?

Thanks all
  #10   Spotlight this post!  
Unread 11-01-2006, 04:33
SpaceOsc's Avatar
SpaceOsc SpaceOsc is offline
16 Years of FIRST!
AKA: Oscar Vasquez
FRC #4501 (Humans)
Team Role: Coach
 
Join Date: Feb 2002
Rookie Year: 2001
Location: Culver City, CA
Posts: 441
SpaceOsc has a brilliant futureSpaceOsc has a brilliant futureSpaceOsc has a brilliant futureSpaceOsc has a brilliant futureSpaceOsc has a brilliant futureSpaceOsc has a brilliant futureSpaceOsc has a brilliant futureSpaceOsc has a brilliant futureSpaceOsc has a brilliant futureSpaceOsc has a brilliant futureSpaceOsc has a brilliant future
Send a message via AIM to SpaceOsc Send a message via Yahoo to SpaceOsc
Re: Has Anybody played with the Camera?

Quote:
Originally Posted by Bharat Nain
What results have you had? Does it detect the green light easily? How about when light conditions around change slightly? Any more details? Thanks a ton.
http://www.ifirobotics.com/camera.shtml

the link contains most of what you need to get the cam up and running. ours started working last night and even with no formal calibration it was able to track fast. works great!

how fast it moves worries me some but ill let programming deal with it
__________________

2014-2017: Team 4501 Coach/Lead Mentor
2002-2011: Team 702, Mentor
2001-2002: Team 702 Captain
  #11   Spotlight this post!  
Unread 11-01-2006, 11:42
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Has Anybody played with the Camera?

Chris,

Quote:
Originally Posted by Chris Orimoto
I somehow believe that the search/track functions can be bogged down by other code when more complex functions are added.
This shouldn't be the case because the same amount of camera and tracking code is guaranteed to execute every 26 milliseconds. It's very consistant.

Quote:
Originally Posted by Chris Orimoto
My only concern is that the menus completely halts the current code, which could be problematic depending on other functions that should be executed.
Actually, it doesn't. As people get into and understand the code, they'll realize that the camera code implements a real (cooperative) multitasking system. Every 26 ms loop, a little piece of camera code and tracking code executes giving the appearance of multitasking. This is exactly how your single processor PC makes it appear as though many applications are running at once. Getting back to the menus, you'll notice the camera still tracks when you invoke the camera menu. Well this happens because I just add the camera_menu() task to the other three tasks that are running. When the camera_menu() code sets a flag indicating it's finished, I remove it from the task list. On the other hand, when you invoke the tracking menu, the tracking stops, giving the appearance that everything else has stopped. Actually, this is by design because while you're in the tracking menu, the user might invoke the interactive PWM sub-menu, which needs control of the servos. BTW, the "scheduler" is located in Process_Data_From_Master_uP() if you're interested in taking a peek.

Quote:
Originally Posted by Chris Orimoto
In the end though, I hope to find absolute settings (that can be loaded through the header file).
Check out the streamlined version of the code, which gets its configuration from camera.h and tracking.h.

Quote:
Originally Posted by Chris Orimoto
One question for everyone though...since the camera is interrupt driven, how does it affect other interrupting encoders?
It's not interrupt driven, it's message driven. The only interrupts that are firing off are about 120 serial port interrupts per second to handle the camera telemetry, which is easilly handled.

Quote:
Originally Posted by Chris Orimoto
Does anyone know how many interrupting devices the new PIC can handle?
It has more to do with how much time you're spending in the interrupt service routines. As a data point, my ADC code will generate up to 12,800 interrupts per second at the highest sample rate.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #12   Spotlight this post!  
Unread 11-01-2006, 12:24
Chris Orimoto Chris Orimoto is offline
Stay in school kids ^.^
FRC #0368 (TKM.368 (Team Kika Mana))
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, Hawaii
Posts: 10
Chris Orimoto is an unknown quantity at this point
Send a message via AIM to Chris Orimoto
Re: Has Anybody played with the Camera?

Thanks for clearing all that up, Kevin. With that info in mind, I think I know what to work on next

Back to the other posts (that I seemed to have skipped over)...

Quote:
Originally Posted by Rombus
They look cool, i would love to get my hands on them, problem is our camera isnet tracking. Im guessing its probably the fact our backup battery was near dead, but im not sure. I know i wasnet getting any feedback from the sytem, could it be the fact i was using a USB to Serial cable?
We found that the servo movement and the camera power was dependent upon the backup battery... so you might want to change that before messing with the USB-to-Serial cable. In theory, a USB port should be able to emulate the data transfer of a Serial port, but that's just theory... it might or might not work

-Chris
  #13   Spotlight this post!  
Unread 11-01-2006, 15:04
naor52 naor52 is offline
Registered User
FRC #1578
 
Join Date: Dec 2005
Location: ISREAL
Posts: 23
naor52 is an unknown quantity at this point
Re: Has Anybody played with the Camera?

wich software every body track after the green light with the MPLAB or in the CMUcam2GUI software?
  #14   Spotlight this post!  
Unread 11-01-2006, 15:25
CarpeDiem CarpeDiem is offline
Registered User
FRC #0135
 
Join Date: Dec 2005
Location: Indiana
Posts: 37
CarpeDiem is an unknown quantity at this point
Re: Has Anybody played with the Camera?

from the manual i have tried to hook up the camera to the rc and nothing happens can anyone tell me what i am doing wrong, and where does the pwm cable hook into the cmucam from the ttl board on the rc?
  #15   Spotlight this post!  
Unread 11-01-2006, 20:11
Rombus's Avatar
Rombus Rombus is offline
Registered User
AKA: Rick Kosbab
FRC #4188 (Columbus Space Program)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Opelika, AL
Posts: 346
Rombus is a jewel in the roughRombus is a jewel in the roughRombus is a jewel in the rough
Send a message via AIM to Rombus
Re: Has Anybody played with the Camera?

Quote:
Originally Posted by Chris Orimoto
We found that the servo movement and the camera power was dependent upon the backup battery... so you might want to change that before messing with the USB-to-Serial cable. In theory, a USB port should be able to emulate the data transfer of a Serial port, but that's just theory... it might or might not work
Yeah, Hopefully they got it working today, I remember last year we had the same issue with the camera and the battery not being charged. I know that some stuff can be picky with a usb/serial interface, but im hoping the rc isnet one of them.

Thats the one problem with being a college student metor, i cant be up there every day to test this stuff, especially with gas prices the way they are, its about a 45 min drive for me to get to the school i mentor for
chances are they will have fixed this issue by the time im back up there
__________________


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
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Unresponsive camera neilsonster Programming 9 17-02-2005 08:51
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
Kevin Watson's Kick-off Demo Code! Mr. Lim Programming 27 22-01-2005 03:38
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


All times are GMT -5. The time now is 04:33.

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