Go to Post Make other plans. No mass-produced food at an arena is ever going to be good. - 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 16-01-2006, 23:34
nukem nukem is offline
Registered User
#1676
 
Join Date: Jan 2005
Location: Hillsdale, NJ
Posts: 43
nukem is on a distinguished road
Getting the Camera and Default Code to Work

I know my team spent alot of time on this and basicly it was electrical that screwed us up but just incase your having a problem ill clarify things here. First of all the servos have to be connected directly to the pwm ports on the controller, NOT THE CAMERA!!! Connecting your servos to the camera will let you move them with software that interacts with your computer(like cmucam2gui_fe.jar) but not any code thats actually on the controller. The camera power must come from the digital in/out port on the controller, I have no idea why it says in the manual to use a pwm port from the controller but the camera will get no power from a pwm port and will thus not work. This is were our electrical team really screwed up, remember to first have the TTL-232 Converter plugged in and you do need both batteries on the controller plugged in for it to work. Electrical on our team said we didn't need the backup battery and the servos would not work, once it was in everything worked fine.

I hope this helps you from team 1676.
  #2   Spotlight this post!  
Unread 17-01-2006, 06:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Getting the Camera and Default Code to Work

Quote:
Originally Posted by nukem
...The camera power must come from the digital in/out port on the controller, I have no idea why it says in the manual to use a pwm port from the controller but the camera will get no power from a pwm port and will thus not work...and you do need both batteries on the controller plugged in for it to work. Electrical on our team said we didn't need the backup battery and the servos would not work, once it was in everything worked fine.
It says to use a PWM port because that's where it gets the proper power supply: 7.2 volts from the backup battery. A digital I/O port only provides five volts, which is not in spec for the camera's power input, and will not correctly power servos connected to the camera.
  #3   Spotlight this post!  
Unread 17-01-2006, 11:35
nukem nukem is offline
Registered User
#1676
 
Join Date: Jan 2005
Location: Hillsdale, NJ
Posts: 43
nukem is on a distinguished road
Re: Getting the Camera and Default Code to Work

Interesting... we hooked it up directly to a 7.2 volt battery and the image came in all screwed up. Today ill have to try that.
  #4   Spotlight this post!  
Unread 17-01-2006, 23:13
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: Getting the Camera and Default Code to Work

Quote:
Originally Posted by Alan Anderson
It says to use a PWM port because that's where it gets the proper power supply: 7.2 volts from the backup battery. A digital I/O port only provides five volts, which is not in spec for the camera's power input, and will not correctly power servos connected to the camera.
Well, that's interesting. Today for the first time we powered up our camera, and we connected it to a PWM port as per the specs and got no power, no lights, nothing. Then I remembered reading this post and we switched it to a digital I/O port and everything worked like a charm.

This was using LABView connected to the serial port on the camera over a USB to Serial cable, and just the RC, with a fully charged backup battery, and a full charged 12V as the power source.

Seems to work fine for us, at the moment as we are learning and exploring the abilites of the camera.
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics



Last edited by Phalanx : 17-01-2006 at 23:21.
  #5   Spotlight this post!  
Unread 18-01-2006, 00:41
nukem nukem is offline
Registered User
#1676
 
Join Date: Jan 2005
Location: Hillsdale, NJ
Posts: 43
nukem is on a distinguished road
Re: Getting the Camera and Default Code to Work

Well today I plugged the camera's power into the PWM port and the servos into the camera and while the camera does now get power the servos did not move. I put the servos and slot one and two and the camera's power into slow three and everything worked fine. I guess the servos have to be in port one and two but it dosnt matter where the camera's power is plugged into?
  #6   Spotlight this post!  
Unread 18-01-2006, 11:48
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: Getting the Camera and Default Code to Work

I'm no expert on this subject since a I myself am learning about this technology just like the rest of you.

As I recall reading from the specs, if you are using the default camera code loaded on the RC, then the servos for pan and tilt, do need to be connected to PWM 1,2 on the RC for it to work and power for the camera can come from any available PWM.

Connecting pan and tilt to the camera board itself only works when using Labview on a PC connected to the serial interface on the camera.

I'll now have to revisit connecting the camera to a PWM port instead of a digitial port for power. We are using last years RC with whatever code we used last year (No camera code) so we may not have power on some of the PWM ports based on the code, I'll try a few different ones and see.
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


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
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
For anyone who doesn't get the camera code..... Jake M Programming 8 16-01-2006 18:56
Default Camera Code Flowchart cprogrammer Programming 1 27-02-2005 11:04
Trying to import Camera code into program without. Kingofl337 Programming 1 18-02-2005 00:43
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28


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

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