It's EASY to C why I PROfess my love to you!
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
  #16   Spotlight this post!  
Unread 24-01-2006, 09:00
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: AHH! I'm getting lost, someone has to fill me in!

Quote:
Originally Posted by lkdjm
Both! The EDU to test, and FRC to use. I would like to know how to hook it up to the EDU. I am mainly wondering how the TTL thing gets setup. After I know how to run it on the edu I will go from there, but some of my questions pertain to the FRC as well. The schematic I want would be of the FRC. You might be right, I think I will be better off posting that in a new thread. Moderators: please don't kill me for posting kind-of the same thing in two threads.
This is from my personal experience with the code and camera on the mini-RC. There are other (and probably better) ways to do this, but I know it works. The code worked perfectly out of the box once I got the camera set up. The TTL convert has four inputs, but the mini-RC only has three pins on the TTL port. The fourth pin, which is missing, is for +5V to power the TTL converter board. I had to cut one end off of a PWM cable, solder a header pin to the red wire, and plug that into the open slot on the TTL board. Cut about 1" off of the black and white wires to give yourself some room to work. You could also use a piece of resister lead for the pin if you don't have any header pins. Heat shrink the solder joint so that no exposed metal pokes out when you plug it into the TTL converter board.

1) Connect a PWM cable from the TTL port on the mini-RC to the inputs on the TTL converter board so that the black lead matches B on the board.

2) Connect your hacked cable with the power pin to a PWM output or digital/analog input. The red pin will pull +5V from the port.

3) Connect the pin on the red cable to TTL converter board. It will be the open slot opposite the one marked B.

4) Connect a PWM cable from the TTL converter to the camera's RS232 input.
  #17   Spotlight this post!  
Unread 24-01-2006, 14:55
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
Re: AHH! I'm getting lost, someone has to fill me in!

Quote:
Originally Posted by seanwitte
This is from my personal experience with the code and camera on the mini-RC. There are other (and probably better) ways to do this, but I know it works. The code worked perfectly out of the box once I got the camera set up. The TTL convert has four inputs, but the mini-RC only has three pins on the TTL port. The fourth pin, which is missing, is for +5V to power the TTL converter board. I had to cut one end off of a PWM cable, solder a header pin to the red wire, and plug that into the open slot on the TTL board. Cut about 1" off of the black and white wires to give yourself some room to work. You could also use a piece of resister lead for the pin if you don't have any header pins. Heat shrink the solder joint so that no exposed metal pokes out when you plug it into the TTL converter board.

1) Connect a PWM cable from the TTL port on the mini-RC to the inputs on the TTL converter board so that the black lead matches B on the board.

2) Connect your hacked cable with the power pin to a PWM output or digital/analog input. The red pin will pull +5V from the port.

3) Connect the pin on the red cable to TTL converter board. It will be the open slot opposite the one marked B.

4) Connect a PWM cable from the TTL converter to the camera's RS232 input.

Thanks! That's exactly what I needed to know. Now I can pass that on to my electronics guy!
__________________
Longwood's Digital Impact

  #18   Spotlight this post!  
Unread 26-01-2006, 20:46
amateurrobotguy's Avatar
amateurrobotguy amateurrobotguy is offline
Lead Programmer/Senior Engineer
no team
 
Join Date: Feb 2005
Rookie Year: 2000
Location: ****
Posts: 136
amateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these parts
Re: CMUcam2 code for EDU-RC?

Can't you just get rid of the converter chip altogether when using the edu-rc and just run a pwm cable from the ttl on the camera board to the ttl on the edu-rc since it has the 3 pin ttl on it and the camera board has 3 as well?
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
  #19   Spotlight this post!  
Unread 26-01-2006, 23:11
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: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by amateurrobotguy
Can't you just get rid of the converter chip altogether when using the edu-rc and just run a pwm cable from the ttl on the camera board to the ttl on the edu-rc since it has the 3 pin ttl on it and the camera board has 3 as well?
I'm not sure, but I think I read somewhere that this limits the data transfer rate to 9600 baud. I have no idea why, though...
__________________
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
  #20   Spotlight this post!  
Unread 27-01-2006, 10:41
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,962
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: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by amateurrobotguy
Can't you just get rid of the converter chip altogether when using the edu-rc and just run a pwm cable from the ttl on the camera board to the ttl on the edu-rc since it has the 3 pin ttl on it and the camera board has 3 as well?
Just to be clear, there are three serial ports on the CMUCam2 that can be used.

  1. One DB9 RS232 port (the one used to hook to our PCs or the RC/EDU Program port)
  2. One three-pin pwm cable RS232 port (used with our TTL-Converter chip to hook to the RC/EDU with the addition of a power line.)
  3. One 4-pin pwm cable TTL level port that requires a special PWM cable to hook to the RC/EDU TTL port without the TTL-Converter chip **** Don't attempt with a normal PWM cable
You cannot hook the CMUCam2 3-pin RS232 port directly to the RC TTL port without the TTL-Converter chip so don't try it. The TTL Converter changes the signals from RS232 to TTL.

The TTL port on the CMUCam2 has 4-pins and two of the pins are in a different order than the RC expects. If you hook them up without making a special cable you can destroy something and they won't be able to talk anyway.


In general, the TTL port will be more susceptible to noise than either of the two RS232 ports as the cable to reach the RC gets longer.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 28-01-2006 at 09:19.
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
2006 CMUcam2 Code Kevin Watson Programming 81 10-02-2007 20:17
CMUCam2 code (FRC and EDU?) Amber Programming 0 15-02-2005 22:23
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11
heres the code. y this not working omega Programming 16 31-03-2004 15:18


All times are GMT -5. The time now is 08:33.

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