Pages: [1]   Go Down
Author Topic: Is it posible to connect atmega 328 to a serial port?  (Read 722 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to connect atmega 328 stand alone directly to a serial port with out any type of serial to usb chip with using a serial cable? If this is possible please explain how.
« Last Edit: December 01, 2012, 11:51:10 pm by To_noob_to_be_true » Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 200
Posts: 12779
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Serial port?  As in an RS-232 serial port?

If "yes" then the answer is "no".  The RS-232 voltage levels will damage the processor.
Logged

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1121
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

As already stated, you can't connect it directly, but if you're looking for a few options of how to do it with some intermediaries that will save your ATmega this page has a decent explanation and a few handy links.  Also the MAX232 chip referenced in that article for $1-3 I see routinely for far cheaper (link to an example).

Cheers ! Geoff
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

South Texas
Offline Offline
Edison Member
*
Karma: 8
Posts: 1024
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Serial port?  As in an RS-232 serial port?

If "yes" then the answer is "no".  The RS-232 voltage levels will damage the processor.

Correct answer is Yes, with the correct chip between the 328 and the serial port. Many have done it and many are still doing it.

Search for Arduino Breadboard Serial. Here is a link to a YouTube video that would explain it to you -

I have an Arduino-on-a-breadboard that works just fine this way.

One word of warning - When I use it with an on board serial port it will work at high speeds, when connected to my home computer with a USB to 9-pin Serial cable it won't work faster than 9600.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 200
Posts: 12779
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Correct answer is Yes, with the correct chip between the 328 and the serial port. Many have done it and many are still doing it.

Did you read the original question?
Logged

Pages: [1]   Go Up
Jump to: