Pages: [1]   Go Down
Author Topic: TTL to RS232 without Maxim's circuit  (Read 4429 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 32
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've asked my local vendors about the TTL to RS232 circuit with no success. I decided to look for a different way to convert Arduino's TTL to RS232 signal. I've found some information on Severino's schematic and this website: http://www.pablin.com.ar/electron/circuito/mc/ttl232/index.htm and I decided to create my own schematic. There are plenty of information about Maxim chip to do this, but in some places it's very difficult to get some components, so I think this is the best and cheapest way to do the conversion.

I've never tested the attached schematic, I plan to do so, but It would be very nice if someone with appropiate knowladge verifies the circuit before the tests. It would be very nice to get some help to avoid crahsing my hardware.

Thank you so much.


* adaptador.png (12.89 KB, 913x837 - viewed 416 times.)
Logged

Offline Offline
Edison Member
*
Karma: 48
Posts: 1612
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1. It is really bloated with resistors and diodes
2. The transmit pin of the DB9 is connected via two resistors back to the receive pin. Not very useful.

Pete
Logged

Where are the Nick Gammons of yesteryear?

Offline Offline
Newbie
*
Karma: 0
Posts: 32
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I removed the non-original part of the ciruit published in http://www.pablin.com.ar/electron/circuito/mc/ttl232/index.htm. How about now? I left the leds TX and RX.


* adaptador.png (13.97 KB, 913x837 - viewed 132 times.)
Logged

Offline Offline
Edison Member
*
Karma: 48
Posts: 1612
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why are the transmit and receive signals connected at all?

Pete
Logged

Where are the Nick Gammons of yesteryear?

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 216
Posts: 13663
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

why not try with two optocouplers ...
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 32
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've found better info: http://www.uchobby.com/index.php/2007/06/11/ttl-to-rs232-adaptor-explained/

With two optocuplers? You mean only with two OC and nothing else? I can easily get EL817.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26934
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

DrJuano, update your profile some geographic info.
If you have an education related e-mail address, Maxim, TI, and others will send you samples for free.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 32
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'v made the attached circuit and did not worked for me on my Arduino Severino.


* serial.jpg (41.76 KB, 1228x763 - viewed 133 times.)
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9541
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The below might have some ideas.

http://www.scienceprog.com/alternatives-of-max232-in-low-budget-projects/
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 618
Posts: 33945
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

RS232 signals are +/- 12V not +/- 5V.
While you might get away with this sometimes you will not always.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26934
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think it's even broader than that Mike, like +/-5 up to +/-25.

From MAXIM's MAX232 datasheet:
"The typical driver output voltage swing is ±8V when loaded with a nominal 5kΩ RS-232 receiver and VCC =+5V.
Output swing is guaranteed to meet the EIA/TIA-232E and V.28 specification, which calls for ±5V minimum
driver output levels under worst-case conditions."

For those not in the know:
Parts like MAX232 use the capacitors and an internal voltage doubler & inversion circuits to take 3.3V power on VCC pins to make +/- 6V output swing, and 5V power to make +/-10V swing:
"The MAX220–MAX249 have two internal charge-pumps that convert +5V to ±10V (unloaded) for RS-232 driver
operation. The first converter uses capacitor C1 to double the +5V input to +10V on C3 at the V+ output. The
second converter uses capacitor C2 to invert +10V to -10V on C4 at the V- output."

"The MAX3222/MAX3232/MAX3237/MAX3241’s internal power supply consists of a regulated dual charge pump
that provides output voltages of +5.5V (doubling charge pump) and -5.5V (inverting charge pump), regardless of
the input voltage (VCC) over the 3.0V to 5.5V range."

Some versions don't even use external caps, everything is internal, altho these are limited in the speed they can support.

Read all about the different versions here.
http://datasheets.maxim-ic.com/en/ds/MAX220-MAX249.pdf
http://datasheets.maxim-ic.com/en/ds/MAX3222-MAX3241.pdf
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: