<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Quentin Weir &#187; edimax EW-7811Un</title>
	<atom:link href="http://www.quentinweir.com/?feed=rss2&#038;tag=edimax-ew-7811un" rel="self" type="application/rss+xml" />
	<link>http://www.quentinweir.com</link>
	<description></description>
	<lastBuildDate>Tue, 12 Aug 2014 04:04:31 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.41</generator>
	<item>
		<title>Using a Raspberry Pi as a wireless robot controller</title>
		<link>http://www.quentinweir.com/?p=24</link>
		<comments>http://www.quentinweir.com/?p=24#comments</comments>
		<pubDate>Mon, 07 Oct 2013 20:18:36 +0000</pubDate>
		<dc:creator><![CDATA[Quentin]]></dc:creator>
				<category><![CDATA[Wifi Robot]]></category>
		<category><![CDATA[edimax EW-7811Un]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[robot]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.quentinweir.com/?p=24</guid>
		<description><![CDATA[This is a step by step guide on how to configure a Raspberry Pi as I did for a wireless robot controller. Please note &#8211; some of the software versions may change over time. Download/Install Raspbian: If you already have your Pi installed and set up, skip this section Plug your SD card into your [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This is a step by step guide on how to configure a Raspberry Pi as I did for a wireless robot controller. Please note &#8211; some of the software versions may change over time.</p>
<p><strong>Download/Install Raspbian:<br />
</strong>If you already have your Pi installed and set up, skip this section</p>
<ol>
<li>Plug your SD card into your computer.</li>
<li>Format the SD card with software <a title="SD card formatter" href="https://www.sdcard.org/downloads/formatter_4/" target="_blank">here</a>.</li>
<li>Download NOOBS (offline and network install) <a title="Raspberry Pi Download Center" href="http://www.raspberrypi.org/downloads" target="_blank">here</a>.</li>
<li>Unpack the .zip file onto your SD card.</li>
<li>Plug your SD card into your Pi.</li>
</ol>
<p><strong>Configure Raspbian<br />
</strong></p>
<ol>
<li>Set up and power up your Raspberry Pi.</li>
<li>If you are prompted to log in, use <strong><em>pi</em></strong> as the login, and <strong><em>raspberry</em> </strong>as the password.</li>
<li>Configure your keyboard &#8211; the Raspberry Pi keyboard file is located here: <strong><em>/etc/default/keyboard</em></strong>
<ul>
<li>Use nano command: <em><strong>nano /etc/default/keyboard</strong><br />
</em></li>
<li>Change the line
<pre><strong>XKBLAYOUT="gb"</strong></pre>
<p>to the line</p>
<pre><strong>XKBLAYOUT="us"</strong></pre>
</li>
</ul>
</li>
<li>Use reboot command: <strong><em>reboot</em></strong><em> </em></li>
<li>Once the Pi has rebooted and you have logged in again, remove the login prompt for the Raspberry Pi:
<ul>
<li>Change to superuser: <em><strong>sudo su</strong></em></li>
<li>Use nano command: <em><strong>nano /etc/inittab</strong></em></li>
<li>Comment out this line
<pre><strong>1:2345:respawn:/sbin/getty 38400 tty1</strong></pre>
<p>by adding a # at the beginning</p>
<pre><strong>
 #1:2345:respawn:/sbin/getty 38400 tty1</strong></pre>
</li>
<li>Add this line below
<pre><strong>1:2345:respawn:/bin/login -f root tty1 &lt;/dev/tty1 &gt;/dev/tty1 2&gt;&amp;1</strong></pre>
</li>
</ul>
</li>
<li>Your Pi should be good to go. Test that the changes have worked by rebooting: <em><strong>reboot</strong></em></li>
</ol>
<p><strong>Get Wireless Connected<br />
</strong></p>
<ol>
<li><span style="line-height: 1.5;">Plug in your Edimax EW-7811Un Wireless Adapter and reboot your Raspberry Pi: <em><strong>reboot</strong></em></span></li>
<li><span style="line-height: 1.5;">Check that the Pi is reading the device: <em><strong>lsusb</strong></em></span></li>
<li><span style="line-height: 1.5;">Check that the Pi has the right drivers: <strong><em>lsmod</em></strong></span></li>
<li><span style="line-height: 1.5;"><strong><em></em></strong>Change network interfaces: <em><strong>nano /etc/network/interfaces</strong></em></span>
<ol>
<li>
<pre><span style="line-height: 1.5;">auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf</span></pre>
</li>
</ol>
</li>
<li>Add your wireless network to the end of your WPA supplicant: <em><strong>nano /etc/wpa_supplicant/wpa_supplicant.conf</strong></em>
<ol>
<li>
<pre>network={<em><strong><strong>
<a title="WPA supplicant examples" href="http://linux.die.net/man/5/wpa_supplicant.conf" target="_blank">&lt;see this link to configure for your network&gt;
</a><a title="More information on WPA supplicant" href="http://www.lsi.upc.edu/lclsi/Manuales/wireless/files/wpa_supplicant.conf" target="_blank">&lt;want to learn more on this?&gt;</a>
</strong></strong></em>}<em><strong>
</strong></em></pre>
</li>
</ol>
</li>
<li>Reboot your system: <em><strong>reboot</strong></em><strong></strong></li>
<li>Check your ip address: <em><strong>ifconfig</strong></em> or <em><strong>ifconfig wlan0</strong></em></li>
</ol>
<p><strong>Install Python Tools<br />
</strong></p>
<ol>
<li>Make sure your Raspberry Pi is connected to the internet.</li>
<li>Enable easy_install from command line: <em><strong>python ez_setup.py</strong></em></li>
<li>Install cherrypy: <em><strong>easy_install cherrypy</strong></em></li>
<li>Install RPIO: <em><strong>easy_install -U RPIO</strong></em></li>
</ol>
<p><strong>Get Files in Place<br />
</strong></p>
<ol>
<li>Download <a href="http://www.quentinweir.com/wp-content/uploads/2013/10/raspberry_pi_robot_code.zip">raspberry_pi_robot_code</a> onto your Raspberry Pi.</li>
<li>Unzip and move files:
<ul>
<li><strong>robot.py</strong>, <strong>command.py</strong>, and <strong>start_robot.py </strong>should all be placed on your desktop</li>
<li><strong>robot_server</strong> should be moved to: <em><strong>/etc/init.d/</strong></em></li>
</ul>
</li>
<li>Open a terminal.</li>
<li>Make sure all files are owned by root user. If not: <em><strong>sudo </strong></em><b><i>chown root /root/desktop/*</i> </b>and <em><strong>sudo </strong></em><em><strong>chown root /etc/init.d/robot_server</strong></em></li>
<li>Make robot_server executable: <em><strong>sudo chmod 755 /etc/init.d/robot_server</strong></em></li>
<li>Register the robot_server file with startup: <em><strong>sudo update-rc.d robot_server defaults</strong></em></li>
</ol>
<p>You should be able to reboot: <strong><em>reboot</em></strong> and the robot server should start right up. Open an internet browser on another computer in the local network and go to the Raspberry Pi&#8217;s IP address.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quentinweir.com/?feed=rss2&#038;p=24</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
