Go to Post You can take the man out of FIRST, but you can't take FIRST out of the man. - George1902 [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-11-2006, 09:02
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Why do we use a TTL -> RS232 converter for the CMUcam?

Hey all,

I probably would've asked this earlier, but I just followed the diagrams and instructions blindly last year.

I've searched and can't find any relevant threads, so here's my question.

After reading over the CMUcam documentation, I see that the camera board has a TTL port. I remembered this from the RC, so I read the docs for it, and sure enough, we have a TTL port there. So, I have to know, why do we use a TTL to RS-232 converter? Is it a matter of convenience (3 wires to run instead of four)? I'll keep using the converter, but I just found this curious.

Weird things happen when you read the manual... you might actually think!

JBot

EDIT: Also, why are auto white balance and auto gain on by default? They must mess with RGB thresholds. Does FIRST measure the color thresholds with the auto settings on? If so, how can I be sure they are reliable? I had a vapor light above our test field bleach the light white. How can I be so sure this won't happen at a competition?
__________________
Aren't signatures a bit outdated?

Last edited by JBotAlan : 25-11-2006 at 09:20. Reason: More pondering caused more questions...
  #2   Spotlight this post!  
Unread 25-11-2006, 10:30
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Why do we use a TTL -> RS232 converter for the CMUcam?

Quote:
Originally Posted by JBotAlan
After reading over the CMUcam documentation, I see that the camera board has a TTL port. I remembered this from the RC, so I read the docs for it, and sure enough, we have a TTL port there. So, I have to know, why do we use a TTL to RS-232 converter? Is it a matter of convenience (3 wires to run instead of four)?
2 notes:

1) When the camera first appeared in 2005, I wanted to use the TTL capability of the camera. Unfortunately, when I inspected the camera back then, it appeared that the jumper on the original CMUcam2 design which allowed you to switch from RS232 levels to TTL was omitted, making it impossible to use the TTL port. I didn't check to see if this was fixed on the 2006 version of the camera but I don't believe it was.

2) A good reason to use RS232 levels over TTL is noise immunity. Using RS232 levels will give you better noise immunity which could be important when running with all those noisy motors all over a robot. That being said, we've used TTL serial for things on our robot in the past and have never had a problem.

Also, regardless of which method you use, you only need 3 wires. The fourth wire on the TTL serial port is +5v which doesn't need to be connected (assuming your camera is already getting power from the PWM port).
  #3   Spotlight this post!  
Unread 25-11-2006, 10:55
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Why do we use a TTL -> RS232 converter for the CMUcam?

Okay. That's good to know--we were having problems with the TTL converter staying in and making good contact, and I just wanted to know if I could use it without the converter.

You say a jumper was omitted, but I am looking at the CMUcam manual and I don't see anything about a jumper to change to TTL levels. I just assumed that the TTL levels would come out of the TTL port and RS232 levels would come out of the other port. Am I missing something?

Thanks,
JBot
__________________
Aren't signatures a bit outdated?

Last edited by JBotAlan : 25-11-2006 at 10:57. Reason: Oops. Maybe I should actually READ your post...
  #4   Spotlight this post!  
Unread 25-11-2006, 11:29
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,744
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: Why do we use a TTL -> RS232 converter for the CMUcam?

The TTL port on the CMUCAM2, both 2005 & 2006 KOP releases, works just fine. No jumper is required, but you can only have one of the three CMUCAM serial ports hooked up at any one time. Even loose wires connected to a TTL port, for example, will make that port look active and the CMUCAM2 board will get too confused to communicate properly.

You just have to make a special 4-pin connector that avoids the +5v pin on the CMUCAM TTL port and gets the Rx/Tx in the right order.
The TTL port got better coverage in the Vex forum:
http://www.chiefdelphi.com/forums/sh...28&postcount=7
Just modify the Vex controller side of the discussion to reflect the TTL pins on the FRC.

I'll echo Dave's comments on TTL & noise, actually any PWM cable and strong electrical fields. I'd suggest using shielded cable for TTL or any communication, but in any case monitor your final solution looking for susceptibility to noise especially if the cable is routed anywhere near magnetic fields such as those around the CIMs or alongside power lines.

We communicate with the CMUCAM via it's TTL port on our 2006 FRC robot, and we use the 2005 KOP CMUCAM (TTL port) on a Vex demonstrator robot. Several other teams I know also communicated through the direct TTL connection.

P.S. This thread would be more useful in the CMUCAM sub-forum.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-11-2006 at 12:41.
  #5   Spotlight this post!  
Unread 25-11-2006, 12:56
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Why do we use a TTL -> RS232 converter for the CMUcam?

Quote:
Originally Posted by Mark McLeod
The TTL port on the CMUCAM2, both 2005 & 2006 KOP releases, works just fine. No jumper is required, but you can only have one of the three CMUCAM serial ports hooked up at any one time. Even loose wires connected to a TTL port, for example, will make that port look active and the CMUCAM2 board will get too confused to communicate properly.
I'll admit I never tried it myself. The original CMUcam2 design included a "serial bypass" jumper which I believe was used to disconnect the RX line from the MAX232 chip (so that the MAX232 would not be driving the pin in conflict with the TTL port). I didn't see this jumper on the IFI version of the CMUcam2 so I figured it was omitted, but perhaps the RS232 chip they used tri-states without valid input. I planned on sticking with RS232 levels anyway so I didn't worry too much about it. Good to hear that it works though.
Quote:
I'll echo Dave's comments on TTL & noise, actually any PWM cable and strong electrical fields. I'd suggest using shielded cable for TTL or any communication, but in any case monitor your final solution looking for susceptibility to noise especially if the cable is routed anywhere near magnetic fields such as those around the CIMs or alongside power lines.
As an interesting note about noise, we actually have the opposite problem on our 2006 robot: the serial communications lines are run (unshielded) right next to some PWM wires, and when the robot is disabled (which tri-states the PWM outputs) the noise from the RS232 communications causes the servos which control the tilt on our camera to twitch. It causes the case of our camera to bang into the frame of our robot and sounds like a woodpecker . We decided it wasn't enough of an issue to justify re-running shielded wire but it gets annoying when the robot is disabled for any length of time!
  #6   Spotlight this post!  
Unread 25-11-2006, 13: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,744
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: Why do we use a TTL -> RS232 converter for the CMUcam?

Quote:
Originally Posted by Dave Flowerday
It causes the case of our camera to bang into the frame of our robot and sounds like a woodpecker .
I love it when the robot's develop personality quirks.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #7   Spotlight this post!  
Unread 29-11-2006, 13:54
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Why do we use a TTL -> RS232 converter for the CMUcam?

Team 40 used direct TTL to TTL cables on the 2006 robot. We also held a camera workshop with ten teams. We gave each team a TTL to TTL cable and every team got the camera working. Also , this runs the camera off the 12v supply instead of the backup battery.

The only problem is if you want to run the JAVA APP or NI you have to disconnect the RX port from the camera or it won't communicate with
the DB-9 rs-232.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni

Last edited by Kingofl337 : 29-11-2006 at 13:57.
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
Why use the RC to control Pan/Tilt Joe Hershberger Programming 15 30-01-2007 23:41
Programming The CMUcam for the Vex controller 987HighRoller Programming 3 24-06-2006 15:27
Why didn't your team use the Kitbot frame in 2006? Billfred Kit & Additional Hardware 33 31-05-2006 00:00
CMUCam TTL problems gabrielse Programming 4 13-02-2006 14:07
EDU-RC, USART2 (TTL), CMUCAM ChrisHomer44 Programming 2 30-04-2004 21:38


All times are GMT -5. The time now is 10:01.

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