Linksys WRT54G with Arduino

Hello everyone!

I've bought an Linksys WRT54G to let it Talk with the Arduino. But I can't let them "talk" over Serial. Pin Attachment:

Arduino RX ------- 1k Resistor ------ Router TX
Arduino TX ------- 1k Resistor ------ Router RX
Arduino GND -------------------------- Router GND

My Arduino Snippet is the Simple PhysicalPixel Example. I added a new line to it, so I know if there is any Connection with the Router:

  Serial.write("Hi, I am alive!");

And it works! I SSH to my Router and type in:

cat < /dev/cua/1

and it says "Hi, I am alive!". So it can Reads from the Arduino, but the Router cannot Transmit?! (I dont even know if thats right).

What I am trying to do?

I'm trying to make a Wireless Arduino "Platform". I dont want to spend money on Xbees. I just want to realise it with the WRT54G.

I'll be glad if there is anyone who can help me.

And dont worry - I googled for more than 24 hours.. I tried almost everything...

Best Regards,

Did you try something like:

echo "Hey, Arduino, wake up!" > /dev/cua/1

But I can't let them "talk" over Serial

Why can't you let them?

oh, excuse my English. It doesnt work. ;D
I tried it but it doesnt work.

And yes, I tried

echo "hi" > /dev/cua/1

I'm guessing you don't have an oscilloscope to simplify this.

Next step: disconnect the Arduino, and connect the router Rx to its own Tx by shorting the wires you were using to connect to the Arduino, at the Arduino end. That will tell you whether you have a problem like a damaged component or bad solder joint.


i'm trying to built a wifi robot car with my arduino but can't seem to get any success in letting them talk to each other

i followed jbprojects and used a max232ecpe in my router isn't this the problem or can i leave it out it would be much simpler if i could connect them directly with resistor

I already have 2 wrt54g's
one for my actual internet and 1 to create the robot
if bridged i can use my ln-400 ip camera to stream video

I wonder if its easier to use serial communication
set the WRT as a bridge and use a Ethernet shield to create a web interface that controls the servo and motors

... just some random notes...

  1. The WRT is a 3.3V Board... so all the logic and voltage on the board is 3.3V, not 5.
  2. The MAX232 is a 5 volt part.
  3. You really should use a MAX3222E_03 Datasheet(PDF) - Maxim Integrated Products and you should use a level translator to RS232 since it also inverts the logic... which a resistor by iteslf won't do.

this would work right?
wanted to order some stuff there anny way

sparkfun sku: BOB-08745

Well, interfacing between 3.3v and 5V is of course what that BOB is for... so it would never hurt to have a 1 or 2.

It would be more "universal" to use the 3.3V-5V logic <-> RSR232 level converter I mentioned.

Curious Inventor sells a nice kit for this.

i ordered 10 of them because the can be used for for almost any voltage that is used in the "Logic Level Converter" buisness

i'm planning for a rather large rc car 1/8 scale with battery pack's from my dead 18Volt power drill or buy some battery's

the scale is so i can cover the electronics and wrt54g with the cover :stuck_out_tongue:

I suggest first you connect the tx/rx pins on your robot router and see if you can get an echo back from that router using the other router to connect. When you successfully do this, then you can start looking at connecting the robot router to another device like the arduino.

try the echo again without the hi like this echo  > /dev/cua/1 i did this with mine before it burnt up lol.

p.s.the echo has to be in a different terminal box so you have to open 2 connections 1 to send the other to recive

lol was just about to post that it didn't work :slight_smile:
2nd terminal works :slight_smile:
wierd :stuck_out_tongue:

i have had a brain wave yesterday :stuck_out_tongue:
if i use a ethernet shield i could do everything trough a web-gui
screw serial commands :stuck_out_tongue:

i'll still use serial but not for my arduino :smiley:

By default (actually, more dependent on which OS you put on the WRT), one com port is interactive... the other is like a syslog output printer or monitoring port.

Ok i'm using "DD-WRT v24-sp2 (11/02/09) std" on my WRT54G v1.1 and v2.2