<?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; raspberry pi</title>
	<atom:link href="http://www.quentinweir.com/?feed=rss2&#038;tag=raspberry-pi" 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>
		<item>
		<title>Raspberry Pi GPIOs</title>
		<link>http://www.quentinweir.com/?p=17</link>
		<comments>http://www.quentinweir.com/?p=17#comments</comments>
		<pubDate>Fri, 14 Jun 2013 22:30:00 +0000</pubDate>
		<dc:creator><![CDATA[Quentin]]></dc:creator>
				<category><![CDATA[Wifi Robot]]></category>
		<category><![CDATA[gpio]]></category>
		<category><![CDATA[raspberry pi]]></category>

		<guid isPermaLink="false">http://www.quentinweir.com/?p=17</guid>
		<description><![CDATA[For anyone who is learning to use the GPIO (input/output) pins on a Raspberry Pi, please check out this tutorial I will also direct your attention to a couple other resources: Get or make yourself a ribbon cable for the GPIOs Use a breakout board for easier use]]></description>
				<content:encoded><![CDATA[<p>For anyone who is learning to use the GPIO (input/output) pins on a Raspberry Pi, please check out this <a href="https://sites.google.com/site/semilleroadt/raspberry-pi-tutorials/gpio">tutorial</a></p>
<p>I will also direct your attention to a couple other resources:</p>
<ul>
<li>Get or make yourself a <a href="http://www.adafruit.com/products/862">ribbon cable</a> for the GPIOs</li>
<li>Use a <a href="http://www.adafruit.com/category/105_163">breakout board</a> for easier use</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.quentinweir.com/?feed=rss2&#038;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wifi Robot Update</title>
		<link>http://www.quentinweir.com/?p=15</link>
		<comments>http://www.quentinweir.com/?p=15#comments</comments>
		<pubDate>Fri, 14 Jun 2013 22:23:35 +0000</pubDate>
		<dc:creator><![CDATA[Quentin]]></dc:creator>
				<category><![CDATA[Wifi Robot]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[robot]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://www.quentinweir.com/?p=15</guid>
		<description><![CDATA[I&#8217;m back to work on the Wifi robot. Here&#8217;s a quick re-cap: Goal: build a simple robot that can be controlled VIA website Mechanical Build Design: Done CAD/Vector Files: Done Parts: Done (fabricated and ordered) Assembly: Done Electrical Build: Motor Controllers: Chips in hand, need to design/build Circuit Design: Not Started Raspberry Pi (brains) Wifi: [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m back to work on the Wifi robot. Here&#8217;s a quick re-cap:</p>
<p>Goal: build a simple robot that can be controlled VIA website</p>
<ul>
<li>Mechanical Build
<ul>
<li>Design: Done</li>
<li>CAD/Vector Files: Done</li>
<li>Parts: Done (fabricated and ordered)</li>
<li>Assembly: Done</li>
</ul>
</li>
<li>Electrical Build:
<ul>
<li>Motor Controllers: Chips in hand, need to design/build</li>
<li>Circuit Design: Not Started</li>
</ul>
</li>
<li>Raspberry Pi (brains)
<ul>
<li>Wifi: RTL8192 Installed &#8211; works on home network</li>
<li>Webserver/website: Used cherrypy and jquery &#8211; works, but has limitations</li>
<li>Command Logic: Python script written to interpret keystrokes from website into motor outputs &#8211; done</li>
<li>GPIO script: In process</li>
</ul>
</li>
</ul>
<p>I&#8217;m nearing completion, but I haven&#8217;t put enough time into this blog to update pictures and publish code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quentinweir.com/?feed=rss2&#038;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi and Wireless</title>
		<link>http://www.quentinweir.com/?p=9</link>
		<comments>http://www.quentinweir.com/?p=9#comments</comments>
		<pubDate>Fri, 07 Jun 2013 02:04:18 +0000</pubDate>
		<dc:creator><![CDATA[Quentin]]></dc:creator>
				<category><![CDATA[Wifi Robot]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.quentinweir.com/?p=9</guid>
		<description><![CDATA[I turned on a Raspberry Pi for the first time today with the intention of figuring out how to get the GPIO pins to work. Alas, I instead plugged in my Edimax EW-7811Un Wireless Adapter, and spent most of my day trying to get learn to make it work. If anyone is attempting a similar [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I turned on a Raspberry Pi for the first time today with the intention of figuring out how to get the GPIO pins to work. Alas, I instead plugged in my Edimax EW-7811Un Wireless Adapter, and spent most of my day trying to get learn to make it work.</p>
<p>If anyone is attempting a similar feat, follow this <a href="http://www.ctrl-alt-del.cc/2012/05/raspberry-pi-meets-edimax-ew-7811un-wireless-ada.html">guide</a>.</p>
<p>Update: here is a <a href="http://ariandy1.wordpress.com/2013/04/07/setting-up-wifi-access-point-with-edimax-ew-7811un-on-raspberry-pi/">guide</a> for turning your Edimax EW-7811Un into an access point</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quentinweir.com/?feed=rss2&#038;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
