Go to Post Most people who say "winning doesn't matter" have not won enough to have a balanced opinion on the issue. - T^2 [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 31-01-2005, 15:38
Inverted Inverted is offline
Registered User
AKA: Eric P.
FRC #1228 (Robo Tribe)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Rahway, NJ
Posts: 25
Inverted is an unknown quantity at this point
Send a message via AIM to Inverted
Thumbs down CMUCam not working

I've read every thread in this forum about the camera setup, yet still haven't been able to get it working. I have the backup battery fully charged and connected to the RC, a red/white/black wire going from PWM5 on the RC to the power input on the camera, and the output connected to the TTL serial port on the RC. When powered on, only one of the three LEDs (the Power LED) lights up.

I tried connecting it to our computer to use the GUI to configure it (via black 'Programming' cable into the serial port on the camera board, [note: the TTL cable to the RC is disconnected] but it keeps returning the string:
"Searching for camera...
>rs< failed..."

Please help. I've wasted 3 weeks trying to get this piece of crap to work, and at this point I feel that my effort could be better used to work on a more important part of the robot, but our instructor insists on getting it working. =\

P.S. Here's some pictures I made in Paint to help you visualize how I have it set up.

http://www.chiefdelphi.com/forums/at...tid=2867&stc=1
http://www.chiefdelphi.com/forums/at...tid=2868&stc=1
Attached Thumbnails
Click image for larger version

Name:	camcontroler.JPG
Views:	179
Size:	8.3 KB
ID:	2867  Click image for larger version

Name:	camlaptop.JPG
Views:	134
Size:	9.5 KB
ID:	2868  

Last edited by Inverted : 31-01-2005 at 15:42.
  #2   Spotlight this post!  
Unread 01-02-2005, 18:06
scitobor 617's Avatar
scitobor 617 scitobor 617 is offline
More nerd than you can handle!
AKA: Alan Meekins
FRC #0617 (HSHS 617 "DUKE")
Team Role: Programmer
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Richmond, VA
Posts: 153
scitobor 617 will become famous soon enoughscitobor 617 will become famous soon enough
Send a message via AIM to scitobor 617
Re: CMUCam not working

Hummm looks and sounds like you set the camera up right. I think the problem is with the GUI. Did you copy it to the root of your hard drive C:/ ? That was my problem when I tried using the GUI.
__________________
Beta testers needed!
http://www.nullagent.no-ip.com

Your kidding, there are other operating systems besides Linux?!
  #3   Spotlight this post!  
Unread 02-02-2005, 22:11
wmarb wmarb is offline
Registered User
#1228
 
Join Date: Jan 2005
Location: Rahway, NJ
Posts: 1
wmarb is an unknown quantity at this point
Re: CMUCam not working

I am on the same team as Inverted, also working on the cam. I will check where the root folder for the GUI is located tomorrow, but we recieve no feedback when its hooked up to the RC either. BTW we had it attached to the 2004 RC, could this be the problem? (yes we loaded it with the 2005 code). This is really getting frustrating, as our advisor insists on us using the camera, when there is much more work to be done. Please, someone help us! If someone could actually post how they set up their camera, and how they used it, that would be great for us to try, maybe the camera is fried? Sigh. Thanks all!
  #4   Spotlight this post!  
Unread 03-02-2005, 15:15
Code\\Pilot Code\\Pilot is offline
< Only smart people see my avatar
AKA: Rafael Estrada
FRC #1065 (Tatsu)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Florida
Posts: 53
Code\\Pilot is an unknown quantity at this point
Send a message via AIM to Code\\Pilot Send a message via MSN to Code\\Pilot
Re: CMUCam not working

DO THIS NOW!!!!!: Arrange to visit a team close to you that have their camera working and ready to go or close to that. Take your camera and your controller, and test your camera with them. We did that, we found out our camera was bad, but still that same day we got a new camera, cause the team we went to for help decided that they are not going to use the camera, so they let us borrow their cam. BTW thanks team 1557 for it. So go do that and cross your fingers. It might be fried or it might not.
Good Luck!.
__________________
Join the Red revolution, give me some RED rep!!!!
if it doesn't work, don't force it. Go get a bigger hammer.

int run = 0;
int robot_chasing_you = 1;

if (robot_chasing_you)
{
run = 254;
}

I got 48 Gmail invites left, pm me with your e-mail so i can send you one.
  #5   Spotlight this post!  
Unread 03-02-2005, 16:21
pickle's Avatar
pickle pickle is offline
Talking vegtable
AKA: Jeremy
#1296 (Full Metal Jackets)
Team Role: Programmer
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Rockwall,TX
Posts: 42
pickle is on a distinguished road
Send a message via AIM to pickle
Re: CMUCam not working

Make sure something like IFI Loader isn't open. Only one program can use the serial port at a time, so if you have something else open thats using the serial port, then it won't work
__________________
2004 Rookie Inspiration Award winner - Midwest Regional
2004 Autodesk Visualization Award winner - Lone Star Regional
2004 Quarterfinalist - Lone Star Regional
2005 Team Spirit Award - Lone Star Regional
  #6   Spotlight this post!  
Unread 03-02-2005, 18:09
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: CMUCam not working

Try putting the camera into demo mode (use the user button on the front, its in the docs somewhere)

This should have it track one color, and if it starts moving the servos, then its probably not bad.

Also, try upading your Java VM, check java.sun.com for a new version

Try a different computer/cable/baud rate (Either jumper the camera, or change in it your OS, device manager->ports->yourport in windows)

It could be the computer can't handle communication at that speed on that port.. I personally have been using a usb->rs232 adapter and its working fine
  #7   Spotlight this post!  
Unread 03-02-2005, 21:11
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,612
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: CMUCam not working

Make sure you check your Device Manager to verify your serial comm port is transmitting at the correct baud rate,
  #8   Spotlight this post!  
Unread 03-02-2005, 22:39
ace123's Avatar
ace123 ace123 is offline
Registered User
AKA: Patrick Horn
FRC #0008 (Paly Robotics - http://robotics.paly.net/)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Palo Alto, CA
Posts: 50
ace123 has a spectacular aura aboutace123 has a spectacular aura about
Send a message via AIM to ace123
Arrow Re: CMUCam not working

Two things may help, as I have had this problem myself:

Make sure that the TTL is unplugged from the RC while the Serial port is plugged in to the computer COM (for Java and HyperTerminal testing), and vice versa for RC code. This one has gotten me a few times.

Also, try plugging it in to the Digital I/O instead of the PWM for power. All the documentation says to use the 7.2v PWM, but I and a lot of other teams have had much more sucess with the 5v DigIO.

To troubleshoot if these things don't work, run the default code from 1/12 on the RC (with the latest Master Code). Make sure to plug in the TTL during this process. check if it says "Camera not Found". If it does not print that then you are fine, but if it does and the camera LED is on, then you have some problems. Check the wiring of all devices.
__________________
-Patrick Horn, Paly Robotics

Check out the space simulator called Vega Strike, modelled after the space simulator games Elite and Wing Commander. It's Open Source too!
If you have ever played Wing Commander, or especially Privateer, and had a feeling of nostalga derived from the you will enjoy these two Vega Strike mods: Privateer Gemini Gold and Privateer Remake!
I'm working on adding multiplayer support this year...
  #9   Spotlight this post!  
Unread 04-02-2005, 15:14
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,612
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: CMUCam not working

[quote=ace123]Two things may help, as I have had this problem myself:

Also, try plugging it in to the Digital I/O instead of the PWM for power. All the documentation says to use the 7.2v PWM, but I and a lot of other teams have had much more sucess with the 5v DigIO.

This is because of a poor voltage regulator from 7.2 v to 5.0 volts which is the only volt line the camera really needs.


Also, be careful about downloading too much code, we had this problem and suddenly the camera could not be found, after downloading the default code, the proper registers were reset and we could start programming again
  #10   Spotlight this post!  
Unread 04-02-2005, 16:52
Anton's Avatar
Anton Anton is offline
Anton Povzner
#1581 (Element)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Israel
Posts: 51
Anton can only hope to improve
Re: CMUCam not working

Well, i'm not so deep into the camera thingie(I've got it working, though) but since everything you did sounds right, i'd advice you to try it with a regular pc- not a laptop(the pictures you included say something about a laptop). It might change nothing, but surely it won't do any harm, and I just don't beleive laptops. never :}
also, there is a thread somewhere that said that you can't grab a frame with 600*800 pix. resolution, which is often a maximum for a laptop (i beleive it is, but then i'm not really up-to-date with computer stuff) I didn't try this though, so pay attention that it's only assumptions.

to test the camera itself you could write a piece of code to move the servos around, you don't need calibrating for this.
  #11   Spotlight this post!  
Unread 04-02-2005, 19:32
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: CMUCam not working

Quote:
Originally Posted by wmarb
I am on the same team as Inverted, also working on the cam. I will check where the root folder for the GUI is located tomorrow, but we recieve no feedback when its hooked up to the RC either. BTW we had it attached to the 2004 RC, could this be the problem? (yes we loaded it with the 2005 code). This is really getting frustrating, as our advisor insists on us using the camera, when there is much more work to be done. Please, someone help us! If someone could actually post how they set up their camera, and how they used it, that would be great for us to try, maybe the camera is fried? Sigh. Thanks all!
By 2005 code, I hope you mean that you updated the firmware too. The drawings show that your camera is setup correctly(Atleast, as far as my knowledge goes).
__________________
-= 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
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
CMUcam setup Ryan Collings Programming 26 13-01-2006 01:00
CMUCam not working. Matt Krass Programming 4 18-01-2005 14:08
IR Beacon/reciever not working... still... Ferazel2001 Programming 23 04-02-2004 23:30
I'm working :) Jack FIRST Scouting Network 2 03-01-2004 01:26
Whose working this summer? Frank(Aflak) Chit-Chat 20 28-05-2003 11:35


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

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