Go to Post Polycord. It was used in all sorts of ball systems in 2009, and on some of the 2007 claws. It's not too hard to fuse together by hand with some heat and patience. - AustinSchuh [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 05-11-2006, 17:17
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
CMU 2 cam with Vex

Hi, one of my mentors wants me to hook up a CMU cam to a vex robot. But I'm not sure how to hook up power to it? Has anyone ever done this? Should I just hook a PWM cable from the camera to the vex controller?

Thanks for the help,
Nathan
  #2   Spotlight this post!  
Unread 05-11-2006, 18:27
intellec7's Avatar
intellec7 intellec7 is offline
108 programmer
AKA: Gustavo
FRC #0108 (SigmaC@ts)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2006
Location: Hollywood, Florida
Posts: 65
intellec7 is on a distinguished road
Send a message via AIM to intellec7 Send a message via MSN to intellec7
Re: CMU 2 cam with Vex

Quote:
Originally Posted by Nathan
Hi, one of my mentors wants me to hook up a CMU cam to a vex robot. But I'm not sure how to hook up power to it? Has anyone ever done this? Should I just hook a PWM cable from the camera to the vex controller?

Thanks for the help,
Nathan
Try this thread
  #3   Spotlight this post!  
Unread 05-11-2006, 20:36
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: CMU 2 cam with Vex

Wow, thanks. Exactly what I needed!
  #4   Spotlight this post!  
Unread 05-11-2006, 21:36
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: CMU 2 cam with Vex

Quote:
Originally Posted by intellec7
Try this thread
I made that work a couple months ago. I used Kevin's camera code moved to a vex MPLab project.
__________________
Eric Haskins KC9JVH
  #5   Spotlight this post!  
Unread 05-11-2006, 21:55
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: CMU 2 cam with Vex

Where could I find Kevin's code? That would really help alot!

Thanks,
Nathan
  #6   Spotlight this post!  
Unread 05-11-2006, 21:57
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: CMU 2 cam with Vex

www.kevin.org/frc

If you want any other help PM or e-mail me Haskinseric@hotmail.com.

EDIT: I tested my vex with the code in frc_camera_s.zip. It may work with version 2 and/or the full version of the code, but I know the first simple version works.

You will need to follow the instructions in the readme to move the code to an EDU/Vex robot. I know it says its for the EDU only, but the process to move it to a VEX is the same.

Also I was using the Radio Shack programming kit, but using MPLab IDE and IFI Loader. This will work with MPLab, but I don't think its possible with EasyC, because you wont have access to the serial ports.

Sorry for the long edit, but I thought of alot after I typed the my response.

Again, if you want any other help PM or e-mail me Haskinseric@hotmail.com.

EDIT Again: If you need a copy of the MPLab default code for a vex you can download it from http://www.vexlabs.com/vex-robotics-downloads.shtml. Here is a direct link to the file http://www.vexlabs.com/docs/vex-startup-code.zip. You can also get IFI loader from that page.

Hope this helps,
__________________
Eric Haskins KC9JVH

Last edited by EHaskins : 05-11-2006 at 22:09.
  #7   Spotlight this post!  
Unread 05-11-2006, 22:14
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: CMU 2 cam with Vex

Thanks! And I already use MPlab so that shouldn't be a problem. By "the first simple version" do you mean frc_camera.zip?

Thanks again,
Nathan
  #8   Spotlight this post!  
Unread 05-11-2006, 22:16
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: CMU 2 cam with Vex

I used frc_camera_s.zip.

frc_camera_s.zip

EDIT: You do need a different version of the default code for a vex. The code from an FRC controller will NOT work. You can download it from the link in my post above.
__________________
Eric Haskins KC9JVH

Last edited by EHaskins : 05-11-2006 at 22:18.
  #9   Spotlight this post!  
Unread 11-11-2006, 13:18
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: CMU 2 cam with Vex

Eric's been helping me via e-mail (Thanks Eric!), and now I've gotten the cables all hooked up. But when I try to integrate Kevin's camera code, by adding "camera.c" and "camera.h" to my MPlab project, I get the following error:

Quote:
Error - could not find definition of symbol 'Serial_Port_Two_Byte_Count' in file 'C:\VexCode\camera.o'.
Errors : 1

BUILD FAILED: Sat Nov 11 12:53:45 2006
And unfortunately I can't get it to go away... Any idea's why I'm getting this?

Thanks,
Nathan
  #10   Spotlight this post!  
Unread 11-11-2006, 14:13
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,797
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: CMU 2 cam with Vex

That's defined in Kevin's serial_ports.c/h files.

Did you include those in your project?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #11   Spotlight this post!  
Unread 11-11-2006, 14:22
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: CMU 2 cam with Vex

No, I didn't. I guess that was the problem, thanks Now, do I need to include the rest of the Kevin's .c/.h files to my project, or will just having the camera.c/h and serial_ports.c/h files be ok?
  #12   Spotlight this post!  
Unread 11-11-2006, 15:42
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: CMU 2 cam with Vex

If you follow the instrustions in the Camera Readme, tracking readme, and the serial port readme. Your robot should be working in no time.

If you are planning to write your own tracking code you don't need to follow the tracking readme to integrate tracking.c/.h/
__________________
Eric Haskins KC9JVH
  #13   Spotlight this post!  
Unread 11-11-2006, 16:24
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: CMU 2 cam with Vex

Thanks. And I've been trying to read all the readme's/.c/.h files, and is this how you track an object:

Code:
Initialize_Camera();
Camera_Idle();
Track_Color();
Is that how you do it?

Thanks,
Nathan

Last edited by Nathan : 11-11-2006 at 16:35.
  #14   Spotlight this post!  
Unread 11-11-2006, 20:55
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: CMU 2 cam with Vex

If you have integrated the serial and camera code properly you can put this code in porcess_data_from_master_up

Code:
Camera_Handler();// this  updates the camera data.
Servo_Track();// this is in tracking.c, so you must include tracking.h.
You can look at the code in kevin's frc code, or the code I e-mailed you for a better explaination.

Feel free to e-mail me.
__________________
Eric Haskins KC9JVH
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
CMU cam Booger Programming 3 18-07-2006 00:00
CMU Cam on an EDU-RC Redneck Programming 2 11-02-2006 14:55
CMU-Cam power QuantumNinja Programming 1 01-02-2006 21:14
grrr need help with my cmu cam lilrican13 Programming 6 18-01-2006 00:14
CMU Cam GUI Arc736UV Programming 2 15-03-2005 19:26


All times are GMT -5. The time now is 17:40.

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