Go to Post Heck, every human being has the potential to change the world, as long as the world still exists. - [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 28-01-2006, 11:22
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Newbie Needs Help

hi, I am a newbie programmer. i have no idea how to setup the camera nor program. i've read the tilt/pan assembly, we built the camera but we don't know where anything else goes. like how to connect it to the computer, does it have to be connected to the RC to program it? where does it get its power from? and many more, we have read the manual and instructions but it still doesn't help.

please help us
  #2   Spotlight this post!  
Unread 28-01-2006, 11:54
Safarley2901's Avatar
Safarley2901 Safarley2901 is offline
Registered User
AKA: Steve Farley
FRC #0808 (Mechanical Mayhem)
Team Role: Leadership
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Alliance, Ohio
Posts: 51
Safarley2901 has a spectacular aura aboutSafarley2901 has a spectacular aura aboutSafarley2901 has a spectacular aura about
Re: Newbie Needs Help

Quote:
Originally Posted by itzrobz
Hi, I am a newbie programmer. I have no idea how to setup the camera nor program. I've read the tilt/pan assembly, we built the camera but we don't know where anything else goes. Like how to connect it to the computer, does it have to be connected to the RC to program it? Where does it get its power from? and many more, we have read the manual and instructions but it still doesn't help.

please help us
First off do you know C?

You want to connect a serial Cable, to the serial port on the camera, To a Serial port on your computer.

Using a PWM Cable you want to connect the power pins on the camera board, to a free PWM output on your Robot Controller. Make Sure that the Back Up Battery is plugged in.

Check this Camera Work book, its basically a tutorial.
http://www.kevin.org/frc/CMUcam2_workbook.pdf

This has an example code, that will give you a place to start.
http://www.kevin.org/frc/

Please Feel Free to ask what ever else you need. We'll help all we can.

Steven and Danny, Team 808.

Ps. We'll be here till about 9pm EST tonight so by all means repost
__________________
2005 Pittsburg Regional Finalists
2005 Cleveland Regional Semi finalists

Last edited by Safarley2901 : 28-01-2006 at 12:18.
  #3   Spotlight this post!  
Unread 28-01-2006, 16:30
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Re: Newbie Needs Help

some of our members do,
anywasy we got it to work and track fo some time'
then it started moving away from the target.
now for some reason the camera is not comnucating with the computer. the red led don't want o blink anymore

any sugestions?
  #4   Spotlight this post!  
Unread 28-01-2006, 16:56
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: Newbie Needs Help

Quote:
Originally Posted by itzrobz
some of our members do,
anywasy we got it to work and track fo some time'
then it started moving away from the target.
now for some reason the camera is not comnucating with the computer. the red led don't want o blink anymore

any sugestions?
Dead backup battery?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 28-01-2006, 17:02
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Re: Newbie Needs Help

the LEDs turn on, which means it has power, but we still cant connect to the camera. Does the camera require a backup battery as well as the main battery?
  #6   Spotlight this post!  
Unread 28-01-2006, 17:14
Safarley2901's Avatar
Safarley2901 Safarley2901 is offline
Registered User
AKA: Steve Farley
FRC #0808 (Mechanical Mayhem)
Team Role: Leadership
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Alliance, Ohio
Posts: 51
Safarley2901 has a spectacular aura aboutSafarley2901 has a spectacular aura aboutSafarley2901 has a spectacular aura about
Re: Newbie Needs Help

Quote:
Originally Posted by itzrobz
the LEDs turn on, which means it has power, but we still cant connect to the camera. Does the camera require a backup battery as well as the main battery?
The camera Runs off the back up battery. Once the back up battery is dead the camera stops working.

Steve Farley, Team 808
__________________
2005 Pittsburg Regional Finalists
2005 Cleveland Regional Semi finalists

Last edited by Safarley2901 : 28-01-2006 at 17:16.
  #7   Spotlight this post!  
Unread 28-01-2006, 17:16
Safarley2901's Avatar
Safarley2901 Safarley2901 is offline
Registered User
AKA: Steve Farley
FRC #0808 (Mechanical Mayhem)
Team Role: Leadership
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Alliance, Ohio
Posts: 51
Safarley2901 has a spectacular aura aboutSafarley2901 has a spectacular aura aboutSafarley2901 has a spectacular aura about
Re: Newbie Needs Help

Quote:
Originally Posted by Safarley2901
Using a PWM Cable you want to connect the power pins on the camera board, to a free PWM output on your Robot Controller. Make Sure that the Back Up Battery is plugged in.
Could have read my original reply. It says you need to attach a back up battery.

Steve Farley, Team 808
__________________
2005 Pittsburg Regional Finalists
2005 Cleveland Regional Semi finalists
  #8   Spotlight this post!  
Unread 29-01-2006, 09:52
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Re: Newbie Needs Help

~edit
it WORKS OMG OMG OMG. Thank you all so much

Last edited by itzrobz : 29-01-2006 at 10:17.
  #9   Spotlight this post!  
Unread 29-01-2006, 13:23
Safarley2901's Avatar
Safarley2901 Safarley2901 is offline
Registered User
AKA: Steve Farley
FRC #0808 (Mechanical Mayhem)
Team Role: Leadership
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Alliance, Ohio
Posts: 51
Safarley2901 has a spectacular aura aboutSafarley2901 has a spectacular aura aboutSafarley2901 has a spectacular aura about
Re: Newbie Needs Help

Quote:
Originally Posted by itzrobz
~edit
it WORKS OMG OMG OMG. Thank you all so much
No Problem Feel free to ask other questions if need be.

Team 808
__________________
2005 Pittsburg Regional Finalists
2005 Cleveland Regional Semi finalists
  #10   Spotlight this post!  
Unread 30-01-2006, 10:22
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Re: Newbie Needs Help

i have another problem i cant get Kevin's code to work ( bells and whistle.) i downloaded it to the rc but it doesnt seem to have any affect on the camera and the terminal window is blank. according to the CMUCam2 Workbook it should say "Searching..."

need help!!!!
thanks in advance
  #11   Spotlight this post!  
Unread 30-01-2006, 13:30
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: Newbie Needs Help

Quote:
Originally Posted by itzrobz
i have another problem i cant get Kevin's code to work ( bells and whistle.) i downloaded it to the rc but it doesnt seem to have any affect on the camera and the terminal window is blank. according to the CMUCam2 Workbook it should say "Searching..."

need help!!!!
thanks in advance
This may be a stupid question, but you did hook up the serial cable and TTL adapter between the camera and the RC, right?
__________________
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
  #12   Spotlight this post!  
Unread 30-01-2006, 18:35
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Re: Newbie Needs Help

Quote:
Originally Posted by Eldarion
This may be a stupid question, but you did hook up the serial cable and TTL adapter between the camera and the RC, right?
We hooked up the TTL adapter and a PWM cable between the camera and the RC, the servos into the PWM outputs, and the camera power into one of the PWM outputs. The thing we don't get is that where the serial cable is supposed to be hooked up to. We hooked it up connecting the COM port of our laptop and the Programming Port on the RC.
  #13   Spotlight this post!  
Unread 30-01-2006, 18:41
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Newbie Needs Help

Okay, coming off the camera itself, you will have two wires:
Power (goes to any free PWM port)
Serial (Goes to the small TTL board, which connects to the RC)
After that, each of the servo's connects to the correct port on the RC (pwm01 for pan, and pwm02 for tilt, IIRC)

Now, the "normal" (db9 (big black cable)) serial cable goes from the RC's program port to the laptop.

After doing all this, if it still doesn't work:
Charge your backup battery.
Use the dashboard to make sure the backup battery is charged.
Ensure all your PWM's are in the right places.
Check your backup battery (again!)
Lens cap off?
Camera focused? (Use labview)
Light have a good power supply (When the battery starts dieing, the camera can't find it as well)
Backup battery dead? (This is probably the most common problem we have had)
If all else fails, reload the default camera code (Which should track the target "out of the box")
  #14   Spotlight this post!  
Unread 30-01-2006, 18:59
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Re: Newbie Needs Help

The default camera code is the Streamlined version of the camera right? We did everything correctly, according to you and the manual. I don't know whats wrong with it. We will try to download the streamlined version into the camera when we get a chance.

Just one question, Is the terminal window supposed to say "Searching..." even if the camera is not properly configured, with the focus, to search?

thanks for your help

Last edited by itzrobz : 30-01-2006 at 19:01.
  #15   Spotlight this post!  
Unread 30-01-2006, 22:29
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Newbie Needs Help

Quote:
Originally Posted by itzrobz
The default camera code is the Streamlined version of the camera right? We did everything correctly, according to you and the manual. I don't know whats wrong with it. We will try to download the streamlined version into the camera when we get a chance.

Just one question, Is the terminal window supposed to say "Searching..." even if the camera is not properly configured, with the focus, to search?

thanks for your help
Either the bells and whistles or streamlined code will work.. not the default code from IFI's web site.

You may want to upgrade your IFI loader, and make sure that works.
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
i am a newbie at the camera Capozzi Programming 3 28-01-2006 10:56
AHHH! I'm a lost newbie! I need help! lkdjm Programming 8 28-01-2006 08:41
quick question as a newbie Kristian Calhoun General Forum 8 26-10-2005 15:15
spur gears & fishers ...newbie question... archiver 2001 3 23-06-2002 23:17
Total newbie to the Chairman's Award A. Leese Chairman's Award 4 06-06-2001 22:03


All times are GMT -5. The time now is 02:25.

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