|
|
United States (Texas)
Offline
God Member
Karma: 2
Posts: 525
Arduino socks
|
 |
« Reply #1 on: September 21, 2008, 01:26:24 am » |
most capacitors have polarity, look for a black stripe on one side. if its a small ceramic capacitor (flat circle) then generally it doesn't matter.
|
|
|
|
|
Logged
|
|
|
|
|
London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #2 on: September 21, 2008, 01:34:02 am » |
The max232 uses 0.1uf capacitors which are typically ceramic types and don't have polarity. The second diagram uses polarized 1uf electrolytic parts but these are much larger than necessary.
The first diagram is the one normally used.
|
|
|
|
|
Logged
|
|
|
|
|
Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« Reply #3 on: September 21, 2008, 01:34:18 am » |
tsugua,
It might be that the circuit you are using is more suited to something like the MAX3232. (I saw that it said you can use the MAX232 :-?)
If I'm not mistaken the MAX232 is ment to use larger caps - like 1uF instead of the .1uF that you are using. The second diagram looks more like it.
In any case, the caps are non polarized - especially when they are that small.
You might want to Google some more, or look at the datasheet for your chip on the Maxim site.
|
|
|
|
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 9
Arduino rocks
|
 |
« Reply #4 on: September 21, 2008, 01:35:45 am » |
they are ceramic and they are rounded on one side and flat on the other they are the 104.
Should I worry about those?
|
|
|
|
|
Logged
|
|
|
|
|
London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #5 on: September 21, 2008, 01:49:27 am » |
Ceramic capacitors are fine with the max232 and you don't need worry about the polarity. Try a test where you send data to an external computer. Your random characters could be due to reading and displaying data when nothing is in the buffer (did you remember to use Serial.available?)
|
|
|
|
|
Logged
|
|
|
|
|
Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« Reply #6 on: September 21, 2008, 01:50:02 am » |
Your caps are .1uf and you don't need to worry about polarity. However, unless you are using a MAX232 A, the caps should be 1uF. See this link - page 17 (table) http://datasheets.maxim-ic.com/en/ds/MAX220-MAX249.pdf
|
|
|
|
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
0
Offline
Faraday Member
Karma: 6
Posts: 2504
|
 |
« Reply #7 on: September 21, 2008, 07:52:23 am » |
The MAX232 is such a great part that now everybody and their dog makes their own version of it.
find the specific manufacturer and part number (including things like that A suffix that BroHogan mentioned), then get a datasheet for that part and use what it says.
If you're not sure, I suspect the 10uF caps would be more likely to work for all variants of the MAX232, whereas the .1uF caps wouldn't work for a device that expects the 10uF.
Oh, and the chip you see in the Making Things Talk reference is a MAX3323, not a 232, hence different pins and caps.
-j
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 9
Arduino rocks
|
 |
« Reply #8 on: September 21, 2008, 11:53:58 am » |
Thanks Everyone for your replies. I do have the circuit wired incorrectly and I have the .1u caps. The chip is a MAX232 it is not the A. On Page 17 of the DataSheet: http://datasheets.maxim-ic.com/en/ds/MAX220-MAX249.pdf it says that I need the 1uF capacitor but on page one the data sheet under Nominal cap value it lists both the 1uF and then in brackets the .1uF. Does this mean I can use both? It doesn't make mention of the .1uF elsewhere. Thanks,
|
|
|
|
|
Logged
|
|
|
|
|
Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« Reply #9 on: September 21, 2008, 12:39:20 pm » |
Since you say you had it wired incorrectly, try it. If it works with the .1uF caps, that's good! I've heard several times that you do need larger caps for the charge pump on the MAX232. One place was here: http://www.sparkfun.com/commerce/product_info.php?products_id=316" The MAX3232 can use very small 0.1uF ceramic capacitors - no more 10uF monsters!" (but that's a little confusing too!) (Looking at the datasheet again, I think the reference to .1uF is for the MAX202 with a max speed is 64kbps.)
|
|
|
|
« Last Edit: September 21, 2008, 12:47:20 pm by BroHogan »
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 146
Arduino rocks
|
 |
« Reply #10 on: June 11, 2010, 04:04:36 pm » |
i have some ma232EPE
can i connect with only 0.1uF capacitors?
or what do i need to buy
i have seen to many schematics
wich is corect?
thanks a lot
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Faraday Member
Karma: 6
Posts: 2504
|
 |
« Reply #11 on: June 12, 2010, 06:49:55 pm » |
I guess you didn't actually read this thread before you posted? find the specific manufacturer and part number (including things like that A suffix that BroHogan mentioned), then get a datasheet for that part and use what it says. -j
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 104
Arduino rocks
|
 |
« Reply #12 on: June 12, 2010, 08:17:18 pm » |
I have always used 0.1 uF "104" ceramic caps for MAX3222 or Max233, although I got used to using Max233A to not need to use them.
But I have a question, I see you are doing a loop back test by shorting the TTL pins, but how are you looking at the characters? Are you using the Arduino to display the data on a LCD panel? or are you looking at it on a terminal program like Hyperterminal?
You should not need more than the datasheet from Maxim there to wire it up. Maybe instead of a loop back you might want to use 2 different serial ports for your test, or another pc using Hyperterminal
|
|
|
|
|
Logged
|
No trees were harmed by the transmission of this message. However a few million electrons were temporarily inconvenienced.
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 146
Arduino rocks
|
 |
« Reply #13 on: June 15, 2010, 12:17:41 pm » |
the max232 from MAXIM?
|
|
|
|
|
Logged
|
|
|
|
|
|