Connecting Arduino to WL-520GU via Serial Port
I successfully got my 3.3 volt arduino built on a breadboard to communicate via serial port with my ASUS WL-520gu Wireless Router.
In broad strokes I did:
- Installed OpenWRT on my ASUS WL-520gu Wireless Router
with support for stty built in (used later to change the serial ports speed to something my boarduino could reliably read)
- Built a barebones arduino on a breadboard. I am running mine at 3.3v to save power, which is also what the serial port on the ASUS WL-520gu Wireless Router
is running at.
- Disabled the serial terminal automatically started on the router using:
root@OpenWrt:~# vi /etc/inittab #tts/0::askfirst:/bin/ash --login #ttyS0::askfirst:/bin/ash --login
stty 9600 < /dev/tts/0 # set serial port to 9600 baudwhile truedotemp=$(grep -m 1 START /dev/tts/0)temp2=$(date +"%D-%X")echo $temp$temp2echo $temp$temp2 >> /tmp/serialdataecho "wrote to serialdata"done
No comments yet