you do NOT need a max232. The serial ports on the router and the arduino are both "logic level" serial ports. If you were to run your arduino at 3.3V, you should be able to directly connect them... With the arduino at 5V and the router at 3.3V, you should probably have some conversion in there, but you'd be looking for 5V/3V LOGIC conversion, and NOT "rs232"; there is no reason to have rs232 present anywhere...
(well, one reason to have rs232 is that you could convert the router to rs232 with a max3232 or something, and the arduino to rs232 with a max232 or similar, and then you could connect the rs232 sides to each other or any other rs232 device, with less fear...)
thanks for the replies I have come to the conclusion that both the arduino and the wrt54gl use Transistor-Transistor-Logic NOT rs232 and therefore the only thing that needs to be changed is the voltages between them.
Im guessing that you would only want to use a MAX232 to communicate with a PC... or the serial version of the arduino.
So i guess that this will do the trick: Logic Level Converter sku: BOB-08745. From sparkfun electronics.
Have you successfully made your router ( WRT54GL) communicate with the Arduino microcontroller like what Jon Benet ( JB projects) did with his wifi robot?
yep i got it going great - untill i cooked the wrt54GL by putting the wires round the wrong way. (stupid me)
But however before that happened it was running well
How it worked:
R/C car contains a chip commonly known as RX2 chip. If you have a car you simply get the datasheet for the pinouts of the car driver IC and solder the forward, left, right etc wires on top of the pins and connect them to the arduino. (A digitalWrite HIGH to a pin will make it do what ever its soldered to).
To get the communication going I used the Logic Level Converter between the TX and RX (a TX on the arduino goes to the RX of the router and vice versa). I had a little trouble at first but turned out I had the converter round the wrong way. Once fixed i could use JB's code without making any changes. ;D
What wires did you mix up that caused the router to be cooked?
Did you remove the auto reset feature of the Arduino? How?
I simply tried to connect the router to a 12v sla battery (since you can't plug it in) and got confused with the wiring diagram since it was in black and white!
i used the USB version of the arduino. Are you meaning the reset pin on the RS232 version of the Arduino? If So i think JB grounds the reset pin in the 232 connector so it doesn't reset when it receives data from the router.
Im am not sure of this because i haven't got a rs232 serial arduino :-/. I reckon it's easier to use the RX/TX pins on the ardino and convert the logic voltages TTL. (if your board has TX/TX pins)
a few random notes:
the router speaks it's TX/RX logic signals at 3.3v aka 3.3TTL
the arduio speaks its TX/RX logic at 5v (this is a problem) aka 5vTTL
the serial arduino is completly different type of serial communication aka RS232
If you are trying to connect the RS232 Seial version which it seem you are (its what JB did) Youll have to use a MAX232 IC to convert arduino's RS232 logic into Router 3.3vTTL logic.