Go to Post "You know, a robotics regional is the only place where you can walk in and see two people in chicken suits and not be confused." - Herodotus [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 25-01-2005, 16:39
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
camera power supply

where does the cmucam get its power from when hooked up to a serial port? I was thinking through the serial cable, but it doesn't show a positive terminal in the diagram on the serial cable. do you know where it gets power from when running the cam from the serial cable with an emulator (to install and test the firmware)? thanks for the help.
-Stephen
  #2   Spotlight this post!  
Unread 25-01-2005, 19:19
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: camera power supply

Quote:
Originally Posted by stephenthe1
where does the cmucam get its power from when hooked up to a serial port? I was thinking through the serial cable, but it doesn't show a positive terminal in the diagram on the serial cable. do you know where it gets power from when running the cam from the serial cable with an emulator (to install and test the firmware)? thanks for the help.
-Stephen
You need to hook the CMUcam up to an unused PWM output on the RC so that it can draw power.
  #3   Spotlight this post!  
Unread 25-01-2005, 20:19
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: camera power supply

First we hooked up a pwm cable to supply power from the RC to the camera module, but noticed that within a couple of hours of testing, the backup battery died. So we decided to just use an external power supply running at around 7V (approx voltage measured from pwm output) and connect that to the power input of the camera. We found using a power supply easier for calibration and testing of the camera since it did not drain the back up battery. But when running the actual robot you probably want to connect to the pwm output.
  #4   Spotlight this post!  
Unread 26-01-2005, 14:08
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: camera power supply

help,
ok, I'm all ready to hook up the camera to the laptop to test the firmware, but there is a chip next to the serial port on the cam that will get bent if the cable is attatched to the serial port. has anyone had this problem? what can I do to fix this. it seems likely that the chip could have been placed in the wrong place possibly, or we could find a serial cable with a smaller end. what should I do? also, if I hook up the cam to the controller, will I have to write code to turn the current on for the pwm? also, where do I get the driver for the serial cable for the cmu_cam? thanks in advance,
Stephen

Last edited by stephenthe1 : 26-01-2005 at 14:14.
  #5   Spotlight this post!  
Unread 26-01-2005, 14:21
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: camera power supply

Quote:
Originally Posted by stephenthe1
help,
ok, I'm all ready to hook up the camera to the laptop to test the firmware, but there is a chip next to the serial port on the cam that will get bent if the cable is attatched to the serial port. has anyone had this problem? what can I do to fix this. it seems likely that the chip could have been placed in the wrong place possibly, or we could find a serial cable with a smaller end. what should I do? also, if I hook up the cam to the controller, will I have to write code to turn the current on for the pwm? also, where do I get the driver for the serial cable for the cmu_cam? thanks in advance,
Stephen
Is the chip you're talking about the chip with the camera lense attached to it? We just used a standard serial cable, like the one used to program the robot and it fit fine. Are you talking about some other chip? What does it look like? Did you hook up the serial to TTL converter (small square board with 3 header pins) directly to the board? If so, try taking it out and connecting the three pins to a pwm cable and then plugging the cable back in the camera board. This should give you more room for the serial cable.

As for the power for the pwm, you don't have to write code to turn it on. The power is always there...the only thing you can change in the code is the pwm output which is the signal across the white wire. Hope this helps.

Last edited by cabbagekid2 : 26-01-2005 at 14:32.
  #6   Spotlight this post!  
Unread 26-01-2005, 14:29
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: camera power supply

Quote:
Originally Posted by stephenthe1
help,
ok, I'm all ready to hook up the camera to the laptop to test the firmware, but there is a chip next to the serial port on the cam that will get bent if the cable is attatched to the serial port. has anyone had this problem? what can I do to fix this. it seems likely that the chip could have been placed in the wrong place possibly, or we could find a serial cable with a smaller end. what should I do? also, if I hook up the cam to the controller, will I have to write code to turn the current on for the pwm? also, where do I get the driver for the serial cable for the cmu_cam? thanks in advance,
Stephen
1) That chip does not go on the camera board, read the manual carefully. It goes on your actual robot controller into the TTL port(Hopefully I am on the right track)
2) Go to IFIROBOTICS.COM and download the latest code for the camera. To test the camera you don't need to write code because it is provided in the default. However, you can modify it to fit your needs for the competition.
__________________
-= 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
  #7   Spotlight this post!  
Unread 26-01-2005, 14:42
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: camera power supply

thanks for the help guys, now the problem is that the thing won't even turn on still. does that chip you were talking about (which was indeed the chip I was talking about), make the camera not work unless it's attatched to the controller?
  #8   Spotlight this post!  
Unread 26-01-2005, 14:50
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: camera power supply

Quote:
Originally Posted by stephenthe1
thanks for the help guys, now the problem is that the thing won't even turn on still. does that chip you were talking about (which was indeed the chip I was talking about), make the camera not work unless it's attatched to the controller?

No, if you are just using the JAVA GUI software on the computer you do not need to attach the little board. This is for communicating with the robot controller. By any chance, did you turn the power switch on the camera on?

All we had to do to get the camera talking to our PC was hook up the power using the pwm cable, connect the serial cable from the PC to the camera, hook up two servos to the pan and tilt output (if you want), and switch the power on.

Have you tried reading the documents in this link from the IFI robotics website?
http://www.ifirobotics.com/docs/cmuc...-software1.zip
It has a calibration how to...and a camera manual of how to set up the camera.

Last edited by cabbagekid2 : 26-01-2005 at 14:55.
  #9   Spotlight this post!  
Unread 26-01-2005, 15:02
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: camera power supply

no, I checked. it's turned on. but we're still having problems (won't even turn on led's)
  #10   Spotlight this post!  
Unread 26-01-2005, 15:09
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: camera power supply

Quote:
Originally Posted by stephenthe1
no, I checked. it's turned on. but we're still having problems (won't even turn on led's)
Make sure..
1) Both the back up battery (7.2V) and 12V are charged.
2) You have the 12V battery connected to the robot.
2) You have the back up battery connected to the robot.

If this doesn't work, I would take a volt meter and measure the voltage across the red and black pwm cable connected to your camera's power input to make sure that your camera is getting power. Also, make sure that the black wire for the power is plugged into the camera board where there is a 'B' marking.

Last edited by cabbagekid2 : 26-01-2005 at 15:13.
  #11   Spotlight this post!  
Unread 26-01-2005, 15:20
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: camera power supply

are you sure you need the 12 volt battery attatched? I read you don't, as well as another guy in my group.
  #12   Spotlight this post!  
Unread 26-01-2005, 15:26
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: camera power supply

Quote:
Originally Posted by stephenthe1
are you sure you need the 12 volt battery attatched? I read you don't, as well as another guy in my group.

Hm...i'm not sure...i've read somewhere that the back up battery connects directly to the pwm ports. But we've always tried running the camera with both batteries on. Haven't tried running it off of just the back up battery.

Well, if you took a volt meter and measured the voltage across the pwm power headers and got around 7V then the camera should be fine running off of just the back up battery.

Last edited by cabbagekid2 : 26-01-2005 at 15:33.
  #13   Spotlight this post!  
Unread 26-01-2005, 16:56
monalin monalin is offline
Registered User
#0148 (Robowranglers)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Greenville, TX
Posts: 1
monalin is an unknown quantity at this point
Re: camera power supply

Please feel free to correct me if i'm wrong, but you do not need the 12v battery to run the camra. The PWMs run from the backup battery. Like others have said this runs down the battery very very fast. Our solution to this was not to plug it up to an external power supply at the same voltage but we just switched the pwm cable connecting the camra to the robot controller to the Digital In OR the Analog In. This seemed to fix the problem with the battery running down because instead of using the backup battery it will get its power from the 12v.
  #14   Spotlight this post!  
Unread 26-01-2005, 17:19
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: camera power supply

Quote:
Originally Posted by monalin
Please feel free to correct me if i'm wrong, but you do not need the 12v battery to run the camra. The PWMs run from the backup battery. Like others have said this runs down the battery very very fast. Our solution to this was not to plug it up to an external power supply at the same voltage but we just switched the pwm cable connecting the camra to the robot controller to the Digital In OR the Analog In. This seemed to fix the problem with the battery running down because instead of using the backup battery it will get its power from the 12v.
Yes, I agree...you shouldn't need the 12V battery for the camera. However, doesn't the analog and digital I/Os provide only 5V and GND? The pwm outputs provide about 7V. So would the 5V be enough to run the camera? I am asking this because doesn't the camera have an on board 5V regulator which needs a voltage greater than 5V in order for the camera to work?

According to the camera specs on IFI's website, the nominal operating voltage is 7.2V and the acceptable range is 5.2V to 8.6V. So I think 5V is cutting it a little close.
  #15   Spotlight this post!  
Unread 26-01-2005, 20:15
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: camera power supply

Hi
First off, make sure your backup batt is putting out 7.2 volts - maybe even more if it's fully charged. Otherwise, make sure the plug is in the right hole and in the right direction.
More: The camera itself actually runs on 5v, which explains the regulator but the servos that it controls and provides power for need the 7.2v. you can get a hold of a 7.2v regulator if you need to run it for prolonged periods, but I personally wouldn't try to stick it into a digital IO or analog.
Follow the datasheets and recommendations.

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
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
need Computer power supply trick Tytus Gerrish Electrical 7 20-01-2005 11:25
12V Power Supply Feeds My Robot MikeDubreuil Electrical 17 31-03-2004 12:06
operator interface power supply hi_im_sean General Forum 1 05-02-2003 14:50
power supply of control system archiver 2000 5 24-06-2002 00:14


All times are GMT -5. The time now is 03:06.

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