Go to Post Think of the build season as kiddie bowling. Mentors should be the bumpers and your mom who lines you up and gives you advice. - Joe Matt [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 26-03-2014, 08:41
gk20 gk20 is offline
Registered User
no team
 
Join Date: Dec 2013
Location: mi
Posts: 3
gk20 is an unknown quantity at this point
Question about converting RS232 to TTL

I needed to connect a Garmin GPS 18x to a VEX Cortex's UART port, but I discovered that I would first need to convert the GPSs RS-232 signal to a TTL signal for the UART. I found this board and was wondering if anyone could tell me if this is what I need: https://www.sparkfun.com/products/11189

Also, could someone help me figure out which wire would go where on the board? The datasheet that Sparkfun provides isn't specifically for this board and the labels aren't very specific.
  #2   Spotlight this post!  
Unread 26-03-2014, 10:20
Mike Bortfeldt Mike Bortfeldt is offline
Registered User
FRC #1126 (& 1511)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Rochester, NY
Posts: 119
Mike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud of
Re: Question about converting RS232 to TTL

gk20,

Looking at the data sheets and documentation for the devices specified, I think the MAX3232 board should work. The connections (based on my interpertation of the data sheets) will be as follows:

Connect the following 3 pins/wires together
- Garmin Wire #2 (red) vin
- MAX3232 3V-5.5V
- Cortex +5V

Connect the following 4 pins/wires together
- Garmin Wire #3 (blk) ground
- Garmin Wire #5 (blk) ground
- MAX3232 GND
- Cortex GROUND

Connect the following wire/pin pairs
- Garmin Wire #4 (wht) TXD (transmit data) to MAX R1IN
- Garmin Wire #6 (grn) RCV (receive data) to MAX T1OUT
- Cortex Data In (Rx) to MAX R1OUT
- Cortex Data Out (Tx) to MAX T1IN

The 5V from the Cortex will power both the MAX and the Garmin IO (requires an external power source)

Try to verify this wiring before powering the devices as I may be in error. The following locations are where I found the various spec sheets.

Garmin http://static.garmincdn.com/pumac/GP...Tech_Specs.pdf
Cortex http://content.vexrobotics.com/docs/...ev1-PINOUT.PDF
MAX3232 Breakout Board https://www.sparkfun.com/products/11189
MAX3232 Schmatic http://dlnmh9ip6v2uc.cloudfront.net/...eakout_v01.pdf
SP3232EP Chip http://dlnmh9ip6v2uc.cloudfront.net/...3232EBCA-L.pdf

Mike
  #3   Spotlight this post!  
Unread 26-03-2014, 11:32
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Question about converting RS232 to TTL

Excuse my kinda curious nature, but I debug my RasPi using a serial UART connection. I just wire the TX and RX backwards and it works. What is the difference between UART and TTL? Aren't they a similar protocol?
  #4   Spotlight this post!  
Unread 26-03-2014, 11:51
one_each one_each is offline
Registered User
FRC #4057 (KB Bots)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2012
Location: Klamath Falls, Or
Posts: 25
one_each is an unknown quantity at this point
Re: Question about converting RS232 to TTL

Quote:
Originally Posted by yash101 View Post
Excuse my kinda curious nature, but I debug my RasPi using a serial UART connection. I just wire the TX and RX backwards and it works. What is the difference between UART and TTL? Aren't they a similar protocol?
The RasPi and VEX Cortex's UART are using the same voltage levels (3.3V). The GPS is using RS-232 which runs at 12V and would fry the VEX. The MAX3232 chip converts the voltage levels so the two can talk without damaging anything.
  #5   Spotlight this post!  
Unread 26-03-2014, 12:17
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Question about converting RS232 to TTL

Just to be clear:

UART is 'Universal Asynchronous Receiver Transmitter' and is a hardware peripheral on microcontrollers used to implement a bit-serial interface. It is essentially the hardware that serializes and deserializes bits from a serial bus into bytes, and handles clocking. It by itself has no voltage, that is dependent on the implementation.

TTL is 'Transistor-Transistor Logic'. Usually this is defined so 0-0.8v is logic 0 and 2.2-5v is logic 1, so 3.3v and 5v are both acceptable voltages although some 3.3v devices do not tolerate 5v. TTL is a digital signal spec, it does not define what the digital signal is.

RS-232 is a standard which uses +-12v as logic 1 and 0. It defines the signal voltages, timing, and connector. The timing can be generated by a UART.

RS-422, RS-485, LIN, and several other physical layer standards also use UART with a different physical transceiver. The signaling voltages are different, but the timing is the same.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
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


All times are GMT -5. The time now is 14:58.

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