Go to Post If that track ball comes crashing into Exploding Bacon's robot there is literally going to be an Oink Oink BOOM!:yikes: - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
VEXpro
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
Kettering University
ADVERTISEMENT

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-25-2006, 08:02 AM
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #2586
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Holly, MI
Posts: 715
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 Send a message via Skype™ 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?
__________________
This post brought to you by Jacob Rau.
Junior Electrical Engineer/Computer Engineer at Michigan Technological University
Former Programming/Electrical mentor for FRC3418 (Robo Riot)
Former Programming mentor for FRC2586 (Copper Robotics)
Alumni programmer of FRC68 (Truck Town Thunder)
I can help with programming problems. Let me know if you need help. (I don't bite )

Last edited by JBotAlan : 11-25-2006 at 08:20 AM. Reason: More pondering caused more questions...
  #2   Spotlight this post!  
Unread 11-25-2006, 09:30 AM
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: Schaumburg, IL
Posts: 1,344
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 11-25-2006, 09:55 AM
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #2586
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Holly, MI
Posts: 715
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 Send a message via Skype™ 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
__________________
This post brought to you by Jacob Rau.
Junior Electrical Engineer/Computer Engineer at Michigan Technological University
Former Programming/Electrical mentor for FRC3418 (Robo Riot)
Former Programming mentor for FRC2586 (Copper Robotics)
Alumni programmer of FRC68 (Truck Town Thunder)
I can help with programming problems. Let me know if you need help. (I don't bite )

Last edited by JBotAlan : 11-25-2006 at 09:57 AM. Reason: Oops. Maybe I should actually READ your post...
  #4   Spotlight this post!  
Unread 11-25-2006, 10:29 AM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
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: 6,789
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.
__________________
"Everyone you will ever meet knows something you don't" - Bill Nye

Last edited by Mark McLeod : 11-25-2006 at 11:41 AM.
  #5   Spotlight this post!  
Unread 11-25-2006, 11:56 AM
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: Schaumburg, IL
Posts: 1,344
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 11-25-2006, 12:13 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
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: 6,789
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.
__________________
"Everyone you will ever meet knows something you don't" - Bill Nye
  #7   Spotlight this post!  
Unread 11-29-2006, 12:54 PM
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: 858
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.
__________________
Intelitek Support

[BFIRST Team 146 Blue Lightning - Alumni[/b]
FIRST Team 40 Checkmate

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


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

The Chief Delphi Forums are sponsored by Innovation First, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School