In this tutorial, I'm going to show you how to re-purpose a Asus WL-520gu router into an Apple AirPlay Speaker System. I have a custom built OpenWRT image already fully configured with AirPlay so all you have to do is flash and go.
Major kudos to the Wifi Radio project on MightyOhm.com which introduced me to OpenWRT and a major inspiration for this project.
Requirements
- Asus WL-520gu Router (Stock Firmware, Tomato, DD-WRT or OpenWRT)
- Compatible USB Sound Card (USD DAC - Digital Audio Converter). See below.
- Speakers/Stereo System (or Headphones).
Flashing the OpenWRT AirPlay Firmware
Download my OpenWRT image pre-configured with AirPlay (aka ShairPort). Note that this firmware is specifically designed for the Asus WL-520gu router. If you use this firmware on any other router, you will brick it.
If you are already running Tomato, DD-WRT or OpenWRT (with Luci) on your router, you can flash directly from the web interface.
If you are running OpenWRT without a web interface, here are the commands to flash via command line:
cd tmp
mtd -r write openwrt-brcm47xx-squashfs.trx linux
Otherwise if you are running the Asus stock firmware or need to recover from a bad flash, follow these instructions - Asus WL-520UG: Loving Tomato Firmware. Obviously, flash with the OpenWRT AirPlay image above.
Enjoy some Music
Plug in your USB Sound Card to the router and connect it to your speakers. Then power cycle the router.
On your iOS device, connect to the open/unencrypted 'AirPlay520gu' wireless network.
Important Note: Wireless is enabled by default within the image. However, the router requires one extra reboot after being flashed before wireless will start properly (Don't ask me why, I don't know). So basically, if you don't see the 'AirPlay520gu' wireless network, give the router a reboot/power cycle.
You should now be able to AirPlay music from your iOS device to the 'AirPlay520gu' AirPlay Speakers.
iOS 7 Beta - AirPlay to WL-520gu router from iTunes Radio |
Different Modes and Use Cases
Standalone Mode (Default, no configuration needed) - Broadcast unencrypted/open SSID of "AirPlay520gu". DHCP Server enabled with no default route or DNS server to allow iPhone to maintain connection to LTE/4G network for internet radio streaming.
Wireless Client Mode - Connects to existing wireless network similar to how your iphone/ipad connects to your network. This is how most commercial AirPlay Speaker System work. HowTo: Switch to 'STA' mode
AP (Access Point) Mode - Connects to existing network via a wired Ethernet cable (or Ethernet over Powerline). Broadcast additional SSID to extend your wireless network coverage - add AirPlay and get better wireless coverage too! HowTo: Disable DHCP, change IP Address, Set SSID/Encryption type
Compatible/Recommended USB Sound Cards (Plug and Play)
A great sounding AirPlay speaker system can easily be put together on a very limited budget and blow away anything sold at the Apple Store costing twice or three times as much. As an example, a LP-2020A+ Lepai Tripath Amplifier paired with the Dayton Audio B652 bookshelf speakers will give you awesome sound on a tight budget.
Syba USB Audio Adapter - $7
Lepai 2020A+ Amp - $23
Dayton Audio B652 Bookshelf Speakers - $52
Total cost $82 + router
What if I don't have a Asus WL-520GU Router?
Definitely do not buy one (unless you can get it super cheap, ~$10). This router has really dated hardware and is no longer manufactured.
Instead consider picking up a TomatoUSB compatible router or Pogoplug and following my other DIY AirPlay tutorials:
- Syba SD-CM-UAUD USB Stereo Audio Adapter
- ELE EL-D01 MINI HIFI USB PCM2704 DAC (This is what I'm using personally)
- Behringer UCA202 Audio Interface
- Fiio E17 USB DAC Headphone Amplifier
- Turtle Beach Audio Advantage Micro II USB Analog & Digital Audio Adapter
- AUDIOQUEST - DRAGONFLY USB DAC
- Topping TP30 Class T Digital Mini Amplifier with USB-DAC
- Nuforce ICON-UDAC2-BLACK Headphone Amplifier and USB DAC
DIY AirPlay Sound System for under $100
A great sounding AirPlay speaker system can easily be put together on a very limited budget and blow away anything sold at the Apple Store costing twice or three times as much. As an example, a LP-2020A+ Lepai Tripath Amplifier paired with the Dayton Audio B652 bookshelf speakers will give you awesome sound on a tight budget.
Syba USB Audio Adapter - $7
Lepai 2020A+ Amp - $23
Dayton Audio B652 Bookshelf Speakers - $52
Total cost $82 + router
What if I don't have a Asus WL-520GU Router?
Definitely do not buy one (unless you can get it super cheap, ~$10). This router has really dated hardware and is no longer manufactured.
Instead consider picking up a TomatoUSB compatible router or Pogoplug and following my other DIY AirPlay tutorials:
[Tutorial] - Pogoplug E02/V4 with Arch Linux ARM
Another option would be my Apple AirPlay AirEnabler Adapter Kit, which is a totally plug and play solution that allows you to add Apple AirPlay to any existing home stereo, car stereo, pc speaker system, ammo box portable speaker system, stereo cooler or my favorite the Boominator, "the ultimate party machine".
Another option would be my Apple AirPlay AirEnabler Adapter Kit, which is a totally plug and play solution that allows you to add Apple AirPlay to any existing home stereo, car stereo, pc speaker system, ammo box portable speaker system, stereo cooler or my favorite the Boominator, "the ultimate party machine".