<?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>Matt&#039;s Blog &#187; admin</title>
	<atom:link href="http://www.matthewrobbins.co.uk/blog/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matthewrobbins.co.uk/blog</link>
	<description>The everyday happenings of Matt</description>
	<lastBuildDate>Sat, 17 May 2014 10:10:20 +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>Raspberry Pi Networking Files</title>
		<link>http://www.matthewrobbins.co.uk/blog/raspberry-pi-networking-files/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-networking-files</link>
		<comments>http://www.matthewrobbins.co.uk/blog/raspberry-pi-networking-files/#comments</comments>
		<pubDate>Fri, 12 Apr 2013 22:23:20 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=667</guid>
		<description><![CDATA[More for my reference, as I keep forgetting the files &#8211; these are the files [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>More for my reference, as I keep forgetting the files &#8211; these are the files you need to edit when connecting to a network &#8211; which I have had to do lately when driving the car around work.</p>
<p><strong>/etc/network/interfaces</strong></p>
<p>In the interfaces file, I have set a static IP of 192.168.0.24</p>
<p>auto lo</p>
<p>iface lo inet loopback<br />
iface eth0 inet dhcp</p>
<p>auto wlan0<br />
allow-hotplug wlan0<br />
iface wlan0 inet manual<br />
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf</p>
<p>iface wlan0 inet static<br />
address 192.168.0.24<br />
netmask 255.255.255.0<br />
gateway 192.168.0.1<br />
wpa-ssid &#8220;NETWORK-NAME&#8221;<br />
wpa-psk &#8220;NETWORK-KEY&#8221;</p>
<p>&nbsp;</p>
<p><strong>/etc/wpa_supplicant/wpa_supplicant.conf</strong></p>
<p>In the wpa_supplicant.conf file, multiple networks settings can be specified, I added my work network in here too, but had to use the field &#8216;scan_ssid=1&#8242; to indicate it was a hidden network, and put the network name and key in as normal. When you fill in the form to connect to a network in the WiFi Config application, it adds an entry here with your entered data &#8211; so a good place to look if you mistyped a value. After returning home, I found that my home network had &#8216;disabled=1&#8242;, and it wouldn&#8217;t automatically connect. Without that line, it connects automatically.</p>
<p>ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev<br />
update_config=1</p>
<p>network={<br />
ssid=&#8221;NETWORK-NAME&#8221;<br />
psk=&#8221;NETWORK-KEY&#8221;<br />
proto=RSN<br />
key_mgmt=WPA-PSK<br />
pairwise=TKIP<br />
group=TKIP WEP104 WEP40<br />
auth_alg=OPEN<br />
}</p>
<p>&nbsp;</p>
<p>Matt</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/raspberry-pi-networking-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi Endeavors 8 &#8211; Headlights and New Interface</title>
		<link>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-8-headlights-and-new-interface/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-endeavors-8-headlights-and-new-interface</link>
		<comments>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-8-headlights-and-new-interface/#comments</comments>
		<pubDate>Sat, 30 Mar 2013 02:03:08 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=660</guid>
		<description><![CDATA[Finally got the 20,000 mcd (micro candles?) super bright white LEDs from eBay, and attached [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Finally got the <a title="ebay" href="http://www.ebay.co.uk/itm/251217053281?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">20,000 mcd (micro candles?) super bright white LEDs</a> from eBay, and attached them to the solder board in two sets of 3 LEDs. I have wired these up to seperate GPIO pins for now, in case I want to control the left / right headlights separately - but might change this as I&#8217;m rapidly running out of GPIO pins.</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/892292_10151511614728941_1278193629_o.jpg"><img class="aligncenter size-large wp-image-661" title="Headlights on Pi Car" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/892292_10151511614728941_1278193629_o-1024x768.jpg" alt="Headlights on Pi Car" width="550" height="412" /></a></p>
<p>&nbsp;</p>
<p>I have also got round to redesigning the UI, which previously was all stock HTML buttons, stock jquery slider etc. Designed a few buttons on Fireworks, got some JavaScript to make the hazard warning lights button flash when they are on using setInterval and setTimeout (similar to sleep();).</p>
<div id="attachment_662" style="width: 510px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/updated-interface.png"><img class=" wp-image-662 " title="updated-interface" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/updated-interface.png" alt="Updated UI" width="500" height="430" /></a><p class="wp-caption-text">Updated UI, with headlights on</p></div>
<p>Matt</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-8-headlights-and-new-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi Endeavors 7 &#8211; Hardware Parts List</title>
		<link>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-7-hardware-parts-list/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-endeavors-7-hardware-parts-list</link>
		<comments>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-7-hardware-parts-list/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 15:42:46 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=636</guid>
		<description><![CDATA[I started off this project wanting to use the Mr.Basic 4wd microcontroller chassis, but after [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I started off this project wanting to use the Mr.Basic 4wd microcontroller chassis, but after 2 bad experiences with them having so much resistance that they couldn&#8217;t turn their wheels, moved to a slightly beefier 4 motor chassis.  I got both a clear and black acrylic set of these from eBay (China), and have found them both to be of a much higher quality.</p>
<p>Parts list for my project:</p>
<p><strong>Raspberry Pi</strong></p>
<p>Funnily enough, you will need a Raspberry Pi for this. Get one from RS electronics / Amazon / eBay etc. About £25</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/IMG_20130214_181516.jpg"><img class="aligncenter size-medium wp-image-649" title="IMG_20130214_181516" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/IMG_20130214_181516-300x224.jpg" alt="Raspberry Pi" width="300" height="224" /></a></p>
<p><strong>Raspberry Pi case</strong></p>
<p>This <a title="RPi Case" href="http://www.ebay.co.uk/itm/350684169375?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">&#8220;Environmentally Shell Kit Box For Raspberry Pi&#8221; case from oig.buy on ebay</a> is the same style as the clear chassis I got, and provides very easy access to all parts of the Pi whilst protecting the top and bottom. Around £3</p>
<div id="attachment_642" style="width: 310px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/1.jpeg"><img class="size-medium wp-image-642  " title="Pi Case" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/1-300x300.jpeg" alt="Pi Case" width="300" height="300" /></a><p class="wp-caption-text">&#8220;Environmentally Shell Kit Box For Raspberry Pi&#8221; &#8211; eBay</p></div>
<p><strong>1A micro USB charging cable</strong></p>
<p>Good for powering the Pi or recharging the mobile phone battery pack that powers the Pi. I picked some up on <a title="Micro USB charger" href="http://www.ebay.co.uk/itm/360591064458?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">eBay</a> for £4.50.</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/charger.jpeg"><img class="aligncenter size-full wp-image-651" title="charger" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/charger.jpeg" alt="Micro USB Charger" width="300" height="300" /></a></p>
<p>&nbsp;</p>
<p><strong>Webcam</strong></p>
<p>I picked up a couple of <a title="Logitech Webcam" href="http://www.ebay.co.uk/itm/Logitech-B910-HD-Webcam-for-Business-HD-720P-with-MIC-Black-for-TFT-Laptop-Rea-/121084396714?pt=UK_Computing_ComputerComponents_Webcams&amp;hash=item1c313144aa" target="_blank">Logitech B910&#8242;s</a> from Scan&#8217;s eBay store for £45 a pop, after using an old Microsoft lifecam, which worked fine, but the quality wasn&#8217;t so great, but you can pick them up for <a title="Microsoft Webcam" href="http://www.ebay.co.uk/itm/Microsoft-Lifecam-VX-500-Webcam-Ideal-for-Laptops-Quality-Refurbished-Item-/350730864884?pt=UK_Computing_ComputerComponents_Webcams&amp;hash=item51a93048f4" target="_blank">about £6</a>.</p>
<div id="attachment_652" style="width: 310px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/hellokitty.jpeg"><img class="size-medium wp-image-652" title="hellokitty" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/hellokitty-300x289.jpeg" alt="Hello Kitty Webcam" width="300" height="289" /></a><p class="wp-caption-text">The Hello Kitty webcam that Nick favoured</p></div>
<p>&nbsp;</p>
<p><strong>USB WiFi adapter</strong></p>
<p>Eximax make great USB WiFi adapters that work natively on Mac and Linux (as well as Windows), and we found these to be awesome &#8211; as they just worked. It looks like Edimax recently just released a <a title="Edimax Wifi" href="http://www.ebay.co.uk/itm/230929710754?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">new black version</a>, which I picked up for £15 on eBay. I also got a white, fairly new one that was a dongle plus antenna (all in one), and Nick used a white just antenna model, and all 3 models have been brilliant.</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/edimax.jpeg"><img class="aligncenter size-medium wp-image-653" title="edimax" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/edimax-300x300.jpeg" alt="edimax USB wifi" width="300" height="300" /></a></p>
<p>&nbsp;</p>
<p><strong>12000 mAh mobile phone battery charger</strong></p>
<p>I bought a couple of 12000 mAh mobile phone backup battery chargers to power my Pi when it goes mobile, and they last for somewhere near 8 hours. They are charged by a mini/micro USB cable, and output 1 and 2 amps over USB. Each cost around £17, and came with many little adapters to charge a variety of different phones, including micro USB for the Piberry Ras.</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/320968682462.jpeg"><img class="aligncenter size-full wp-image-648" title="Mobile Charger" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/320968682462.jpeg" alt="Mobile Charger" width="140" height="140" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2><strong>Electronic Components</strong></h2>
<p><strong>4wd chassis</strong></p>
<p>Around the £20 mark from China, I got 2 x 4WD, 4 motor chassis. [<a title="Clear chassis" href="http://www.ebay.co.uk/itm/261038113747?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">Clear one</a>] [<a title="Black Chassis" href="http://www.ebay.co.uk/itm/110954735498?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">Black one</a>]</p>
<div id="attachment_650" style="width: 310px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/jpeg"><img class="size-medium wp-image-650" title="Clear Chassis" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/jpeg-300x225.jpg" alt="Clear Chassis" width="300" height="225" /></a><p class="wp-caption-text">Clear Chassis</p></div>
<div id="attachment_646" style="width: 310px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/T2eC16JHJFoE9nh6m+EuBRRC7RhKw60_3.jpg"><img class="size-medium wp-image-646" title="Black Chassis" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/T2eC16JHJFoE9nh6m+EuBRRC7RhKw60_3-300x157.jpg" alt="Black Chassis" width="300" height="157" /></a><p class="wp-caption-text">Black Chassis</p></div>
<p><strong>Raspberry Pi Cobbler GPIO Super Start Kit from 4tronix_uk&#8217;s eBay store.</strong></p>
<p>Including a huge breadboard, Adafruit cobbler cable and header, switches, resistors, LEDs and jumpers, the <a title="Start kit" href="http://www.ebay.co.uk/itm/181071750824?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">Cobbler Super Starter Kit</a> was very useful starter kit full of essentials for messing around with the GPIO pins, and at £22, didn&#8217;t break the bank, and no soldering was required.</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/181071750824.jpeg"><img class="aligncenter size-full wp-image-647" title="Cobbler starter kit" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/181071750824.jpeg" alt="Cobbler starter kit" width="140" height="105" /></a></p>
<p><strong></strong></p>
<p><strong>Raspberry Pi Cobbler</strong></p>
<p>Including cable and header to extend the GPIO pins of the Pi to the breadboard, very good one made by Adafruit, although others are available such as <a title="Mallinson GPIO breakout connector" href="http://www.ebay.co.uk/itm/121052133075?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">this split one by Mallinson</a>. I have one of each, but am yet to use the Mallinson one.</p>
<div id="attachment_655" style="width: 310px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/mallinson.jpeg"><img class="size-medium wp-image-655" title="mallinson" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/mallinson-300x300.jpeg" alt="Mallinson connector" width="300" height="300" /></a><p class="wp-caption-text">Mallinson GPIO Connector. Like Adafruit&#8217;s, but split at the end.</p></div>
<p><strong>Breadboard</strong></p>
<p>A 400 point breadboard is sufficient for the cobbler and motor chip.</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/321070178098.jpeg"><img class="aligncenter size-full wp-image-645" title="321070178098" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/321070178098.jpeg" alt="" width="140" height="140" /></a></p>
<p>&nbsp;</p>
<p><strong>Male to male jumper cables</strong></p>
<p>I got a pack of 65 in my super starter kit, plus more from Maplin. Could make them yourself with bits of wire, but its handy to have the jumpers for quick prototyping.</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/251215093385.jpeg"><img class="aligncenter size-full wp-image-643" title="251215093385" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/251215093385.jpeg" alt="" width="140" height="101" /></a></p>
<p>&nbsp;</p>
<p><strong>LEDs and resistors</strong></p>
<p>Handy for troubleshooting and emergency lights. I used some 20,000MCD super bright blue LEDs for my emergency lights, with 330 Ohm resistors, but they also seem fine without resistors, and a lot brighter. Waiting on some super bright whites for my headlights.</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/251217053281.jpeg"><img class="aligncenter size-full wp-image-644" title="251217053281" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/251217053281.jpeg" alt="LEDs" width="140" height="140" /></a></p>
<p>&nbsp;</p>
<p><strong>L293D motor control chip</strong></p>
<p>I just put the motor chip straight onto the breadboard, straddling the central divide.  They cost about £3 a pop, and one chip can control two separate (sets of) motors, at different speeds, if you have two pulse width modulation outputs on the device (for the Pi, you would have to do one in software).</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/140910858810.jpeg"><img class="aligncenter size-full wp-image-641" title="L239D Chip" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/140910858810.jpeg" alt="L239D Chip" width="140" height="140" /></a></p>
<p><strong>Red and black wire</strong></p>
<p>Wire is always helpful with electronics.</p>
<p><strong>8 AA battery holder</strong></p>
<p>To provide power for the motors</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/SP-8+Battery+Holder+copy.jpg"><img class="aligncenter size-full wp-image-656" title="8 AA battery holder" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/SP-8+Battery+Holder+copy.jpg" alt="8 AA battery holder" width="240" height="259" /></a></p>
<p>&nbsp;</p>
<p><strong>8 x rechargeable AA batteries</strong></p>
<p>I already had a set of 2600 mAh &#8216;hama&#8217; AA batteries (cells) and a charger that I got from 7dayshop many moons ago. I managed to find another very similar set on <a title="Hama rechargeable batteries " href="http://www.ebay.co.uk/itm/130851371294?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">eBay for £13</a>. These high capacity AA cells have kept my Pi driving on and off for a week now, and kept my Xbox 360 controller going for months of light use. Heavily recommend getting rechargeables and a charger &#8211; saves the environment and you buying tons of batteries.</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/130851371294.jpeg"><img class="aligncenter size-full wp-image-638" title="Hama battery charger" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/130851371294.jpeg" alt="Hama battery charger" width="140" height="140" /></a></p>
<h2>Other Tools</h2>
<p>Pretty handy to have:</p>
<ul>
<li>Wire cutters</li>
<li>Wire strippers</li>
<li>Pliers</li>
<li>Screwdrivers</li>
<li>Tape/sticky velcro</li>
<li>Multimeter</li>
<li>Soldering Iron, solder, safety glasses etc</li>
</ul>
<p>&nbsp;</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-7-hardware-parts-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi Endeavors 6 &#8211; Power!</title>
		<link>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-6-power/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-endeavors-6-power</link>
		<comments>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-6-power/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 18:34:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=630</guid>
		<description><![CDATA[Having only 6 AA batteries for the 4 motors wasn&#8217;t enough, and even with my [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Having only 6 AA batteries for the 4 motors wasn&#8217;t enough, and even with my super friction-reducing sellotape, the car struggled to turn on the spot, with 1 or 2 engines  normally stalling. A maximum of 9v was being provided for the 4 6v motors (connected in parallel), resulting in around 2 volts per motor (max) at a quick guess. I grabbed an 8 battery holder from Maplin, hooked this up and the car is much happier now &#8211; can turn on the spot well, and goes a bit faster too.</p>
<div id="attachment_631" style="width: 416px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/IMG_20130320_180706.jpg"><img class="size-full wp-image-631" title="Hazard Lights on" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/IMG_20130320_180706.jpg" alt="Hazard Lights on" width="406" height="304" /></a><p class="wp-caption-text">Pi Car 01 with hazard warning lights flashing</p></div>
<p>As well as my emergency lighting system (ELS), I made a tiny script to simulate hazard warning lights, for when the car is just pulled over at the side of a room. The interface to control the vehicle is very simple &#8211; yet functional! When time allows, I will break out the CSS and get it looking a bit fancier.</p>
<div id="attachment_632" style="width: 500px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/picar01interface.png"><img class=" wp-image-632" title="Pi Car 01 Interface" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/picar01interface.png" alt="Pi Car 01 Interface" width="490" height="435" /></a><p class="wp-caption-text">Pi Car 01 Interface including view from the onboard camera looking out of its garage at the parking marks (sellotape on the floor) and a captivated audience</p></div>
<p>The two fields at the bottom show the JavaScript and the driving shell script reporting the key down (e.g LEFT), and the key up (all off). This is helpful for diagnosing issues such as when the off instruction arrives before the on one, and so the car starts driving and doesn&#8217;t stop. This may be fixable by getting the page to constantly tell the Pi that &#8216;up&#8217; is held down, and then if the Pi notices an absence of these instructions, it will know to stop.</p>
<p>Matt</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-6-power/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi Endeavors 5 &#8211; Building The Car</title>
		<link>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-5-building-the-car/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-endeavors-5-building-the-car</link>
		<comments>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-5-building-the-car/#comments</comments>
		<pubDate>Fri, 15 Mar 2013 21:40:34 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=623</guid>
		<description><![CDATA[Unfortunately both Mr.Basic 4wd chassis&#8217; that I got had such high resistance in them, they [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Unfortunately both Mr.Basic 4wd chassis&#8217; that I got had such high resistance in them, they could barely spin their own wheels, let alone drive along the floor. I got these sent back and went for a larger vehicle made from 2 pieces of acrylic and 4 motors connected directly to 4 wheels, that I picked up from <a title="ebay" href="http://www.ebay.co.uk/itm/261038113747?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1497.l2649" target="_blank">ebay</a> for about £20 [from China].</p>
<p><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/jpg"><img class="aligncenter size-full wp-image-624" title="clear chassis photo" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/jpg" alt="clear chassis photo" width="300" height="225" /></a></p>
<p>I then followed Adafruit&#8217;s guide: <a title="adafruit" href="http://learn.adafruit.com/adafruit-raspberry-pi-lesson-9-controlling-a-dc-motor/overview" target="_blank">Lesson 9. Controlling a DC Motor</a>. This is a great guide to power one motor &#8211; to power another, just connect another 2 input wires symmetrically on the other side, same with the outputs to the motor. You also must connect the PWM pin 18 to the EN2 [right hand side PWM pin on the chip] to allow the Pi to control the speed of both motors. If you wanted them to go different speeds, you would have to use software to emulate a PWM pin, and then connect that to the chip &#8211; as the Pi only has one PWM pin.</p>
<div id="attachment_625" style="width: 430px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/3653.jpg"><img class="size-full wp-image-625" title="L293D Chip" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/3653.jpg" alt="L293D Chip" width="420" height="639" /></a><p class="wp-caption-text">Picture: Adafruit Learning System (Lesson 9 DC Motor)</p></div>
<p>I then used a <a title="Pi Cobbler" href="http://learn.adafruit.com/adafruit-pi-cobbler-kit/overview" target="_blank">Raspberry Pi Cobbler</a> from Adafruit to gain easy access to all of the Pi&#8217;s GPIO pins on a breadboard. On the breadboard, I placed the cobbler, L293D motor chip, and connected them both up with jumper wires, adding the batteries for the motors to the positive and negative rails. [Follow Adafruit&#8217;s <a title="adafruit" href="http://learn.adafruit.com/adafruit-raspberry-pi-lesson-9-controlling-a-dc-motor/hardware" target="_blank">guide</a>!]</p>
<div id="attachment_626" style="width: 402px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/3654.png"><img class=" wp-image-626" title="Wiring diagram" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/03/3654.png" alt="Wiring diagram" width="392" height="315" /></a><p class="wp-caption-text">Picture: Adafruit Learning System (Lesson 9 DC Motor)</p></div>
<p>So now the Pi is connected to the breadboard, on which is a motor chip that controls the motors using inputs from the GPIO pins. If your batteries are charged [like mine weren't first time - diagnosed by putting an LED on the motor wires, and it glowing very dimly], you are ready to start asking the motor chip to power the motors. Again, follow the Adafruit instructions that get you putting e.g pin 4 high, which signals the chip to drive the left motor in one direction. You must also set the PWM (value of 0-1024 I believe) that controls the speed of the motor. I use at least 500, but normally closer to 1000 &#8211; as the if it is to low, the motors &#8216;stall&#8217; and wont turn.</p>
<p><iframe src="http://www.youtube.com/embed/mA0ltGeGoBc" frameborder="0" width="560" height="315"></iframe></p>
<p>All you need now is some software to control it. Me and my housemate use an index.html file hosted on the Pi that calls a bash script whenever a directional key is pressed, then when it is let go, it runs an off script that turns all control pins back to 0. You can also use Python. I used Python to make the script to control the flashing emergency LEDs [superbright blue LEDs].</p>
<p>More soon!</p>
<p>Matt</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-5-building-the-car/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate Many MAC Addresses &#8211; Keyboard and Mouse Recorder for Mac</title>
		<link>http://www.matthewrobbins.co.uk/blog/generate-many-mac-addresses-keyboard-and-mouse-recorder-for-mac/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=generate-many-mac-addresses-keyboard-and-mouse-recorder-for-mac</link>
		<comments>http://www.matthewrobbins.co.uk/blog/generate-many-mac-addresses-keyboard-and-mouse-recorder-for-mac/#comments</comments>
		<pubDate>Mon, 11 Mar 2013 10:36:38 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=621</guid>
		<description><![CDATA[I needed to generate a lot of unique MAC addresses for my virtual machines, and [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I needed to generate a lot of unique MAC addresses for my virtual machines, and VMware has no function that I can find in vmrun to generate one. However, in the &#8216;Network Adapter&#8217; settings of any VM, you can pummel &#8216;Generate MAC Address&#8217; to create new, unique ones. One option was to generate that address, copy and paste it into a text file, and repeat &#8211; but I didn&#8217;t fancy doing this for however many I&#8217;d need (probably hundreds) &#8211; so I Googled for a &#8216;Ghost Mouse&#8217; piece of software &#8211; and came across <a title="app" href="http://keyboard-and-mouse-recorder.en.softonic.com/mac/download" target="_blank">Keyboard and Mouse recorder for Mac by softonic</a>.</p>
<p>&nbsp;</p>
<p>Great. It recorded my mouse and keyboard inputs of generating, copying, alt-tabbing, pasting, hit enter for a new line. I could also loop this process &#8211; but only to a maximum of 10 times without registering. I didn&#8217;t fancy pressing the play button whenever it finished (about every minute) so after looking for a command line way to start it (thought I could use a minutely CRON job..) I found no man pages or anything. Therefore I just fired up a new instance of  the application, and got that to click the play button on the first one, and then stop recording after about a minute. Putting this on a 10x loop as well, it will press the play button on the 10x generate loop, 10 times &#8211; so generates them in batches of 100. Win.</p>
<p>&#8220;Wherever possible, cheat&#8221;</p>
<p>Matt</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/generate-many-mac-addresses-keyboard-and-mouse-recorder-for-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi &#8211; Networking Script Change</title>
		<link>http://www.matthewrobbins.co.uk/blog/raspberry-pi-networking-script-change/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-networking-script-change</link>
		<comments>http://www.matthewrobbins.co.uk/blog/raspberry-pi-networking-script-change/#comments</comments>
		<pubDate>Tue, 19 Feb 2013 22:52:43 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=615</guid>
		<description><![CDATA[Made some modifications to my script &#8211; made a function for writing to the file, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Made some modifications to my script &#8211; made a function for writing to the file, which saved a lot of reused code, and instead of assuming that it could ping Google if the result wasn&#8217;t &#8216;unknown host www.google.co.uk&#8217; &#8211; changed it to detect the words &#8216; bytes from&#8217; &#8211; from &#8217;64 bytes from x&#8217;.</p>
<p>Find the code at: <a href="http://www.matthewrobbins.co.uk/files/connectiontest.py" target="_blank">http://www.matthewrobbins.co.uk/files/connectiontest.py</a></p>
<p>Next up &#8211; try and make a script that detects if mjpg streamer is actually broadcasting video &#8211; if not, restart the service (this can fix issues that arise if the webcam is plugged in after boot)</p>
<p>Matt</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/raspberry-pi-networking-script-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On the BBC News! &#8211; Raspberry Pi Cambridge Event</title>
		<link>http://www.matthewrobbins.co.uk/blog/on-the-bbc-news-raspberry-pi-cambridge-event/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=on-the-bbc-news-raspberry-pi-cambridge-event</link>
		<comments>http://www.matthewrobbins.co.uk/blog/on-the-bbc-news-raspberry-pi-cambridge-event/#comments</comments>
		<pubDate>Sun, 17 Feb 2013 22:53:46 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[London]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=611</guid>
		<description><![CDATA[A few weeks ago, I shot up to Cambridge to help out with a Raspberry [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>A few weeks ago, I shot up to Cambridge to help out with a Raspberry Pi event at Chesterton Community College where Raspberry Pi founder Eben Upton took great pleasure in announcing that they would be providing 15,000 Raspberry Pi kits to school children in the UK, through a grant from Google.</p>
<div id="attachment_612" style="width: 560px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/me-and-pi-01.png"><img class="size-large wp-image-612" title="me and pi 01" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/me-and-pi-01-1024x579.png" alt="Me and a Pi" width="550" height="310" /></a><p class="wp-caption-text">Chatting to a group of primary school children about what the Pi is.</p></div>
<p>I think this is a fantastic initiative, and the RPi is the perfect, standard, versatile and powerful bit of kit to get people learning real computer modules &#8211; from Java and Python programming, use of Unix operating systems and their services, to lower level component control with the GPIO pins and SPI and I2C interfaces. I really do hope that schools adopt the Pi, and get students introduced to programming and real computer science so that they can become interested in the subject area if they wish, and start pursuing cool projects.</p>
<p>Matt</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/on-the-bbc-news-raspberry-pi-cambridge-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi Endeavors 4 &#8211; Hardware</title>
		<link>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-4-hardware/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-endeavors-4-hardware</link>
		<comments>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-4-hardware/#comments</comments>
		<pubDate>Sat, 16 Feb 2013 12:21:21 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=601</guid>
		<description><![CDATA[A week or so ago, I decided to my own version of Google Glass by [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>A week or so ago, I decided to my own version of Google Glass by selotaping the Pi, webcam and Nick&#8217;s battery pack to my hat. Here is the result:</p>
<p style="text-align: center;"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/photo-2.jpg"><img class="aligncenter  wp-image-602" title="photo (2)" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/photo-2.jpg" alt="Glass Hat" width="230" height="231" /></a></p>
<p>I also received my Mr.Basic 4wd chassis, which I discovered was faulty, after I had built it.</p>
<p>The kit:</p>
<p style="text-align: center;"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/IMG_20130206_175330.jpg"><img class="aligncenter  wp-image-603" title="IMG_20130206_175330" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/IMG_20130206_175330.jpg" alt="Basic Kit" width="462" height="347" /></a></p>
<p style="text-align: left;">Partially built:</p>
<p style="text-align: center;"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/IMG_20130206_201229.jpg"><img class="aligncenter  wp-image-604" title="IMG_20130206_201229" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/IMG_20130206_201229.jpg" alt="Half built" width="462" height="347" /></a></p>
<p style="text-align: left;">Built with motors:</p>
<p style="text-align: center;"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/IMG_20130206_211852.jpg"><img class="aligncenter  wp-image-605" title="IMG_20130206_211852" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/IMG_20130206_211852.jpg" alt="Built Mr Basic" width="462" height="347" /></a></p>
<p style="text-align: left;">It looks like a really promising design, so I have ordered another one from Bizoner in China, they seem quite hard to get hold of around here. Also ordered a slightly larger one for Nick. Pictures to be posted when they arrive!</p>
<p style="text-align: left;">We also grabbed a couple of RC cars from Argos, and I proceeded to take mine apart to discover what kind of voltage the motors were using etc:</p>
<p style="text-align: center;"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/IMG_20130211_174751.jpg"><img class="aligncenter  wp-image-607" title="RC Car being held by third hands, being measured by a multimeter" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/IMG_20130211_174751.jpg" alt="RC Car being held by third hands, being measured by a multimeter" width="462" height="347" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">Matt</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-4-hardware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi Endeavors 3 &#8211; Battery and Other Components</title>
		<link>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-3-battery-and-other-components/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-endeavors-3-battery-and-other-components</link>
		<comments>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-3-battery-and-other-components/#comments</comments>
		<pubDate>Sat, 16 Feb 2013 11:47:20 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.matthewrobbins.co.uk/blog/?p=591</guid>
		<description><![CDATA[My networking script has only restarted my networking adapter once since I got my new [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>My networking script has only restarted my networking adapter once since I got my new Edimax adapter, the log shows (I save the print statements to a text file now) it tried to ping Google twice, couldn&#8217;t, restarted the networking service, then was fine.</p>
<p style="text-align: center;"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/networkrestartscript.png"><img class="aligncenter  wp-image-596" title="Networking restart script showing 1 restart" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/networkrestartscript.png" alt="Networking restart script showing 1 restart" width="542" height="341" /></a></p>
<p>I also have my webcam displaying a live stream to a website, along with Nick&#8217;s too:</p>
<div id="attachment_592" style="width: 485px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/nickcammattcam.png"><img class="size-full wp-image-592" title="nickcammattcam" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/nickcammattcam.png" alt="The webcams output on a webpage" width="475" height="550" /></a><p class="wp-caption-text">The webcams output on a webpage</p></div>
<p>I have also got my Pi running on a mobile 12000mAh phone portable charger, which seems to power it for about 8 hours on its first run. The charger has a 1 and 2 amp output which is useful, and it charged by its own micro USB cable &#8211; the same one that I connect to the Pi to power it.</p>
<div id="attachment_593" style="width: 235px" class="wp-caption aligncenter"><a href="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/imgres.jpg"><img class="size-full wp-image-593" title="Mobile phone battery charger" src="http://www.matthewrobbins.co.uk/blog/wp-content/uploads/2013/02/imgres.jpg" alt="Mobile phone battery charger" width="225" height="225" /></a><p class="wp-caption-text">Mobile phone battery charger</p></div>
<p>Also got some superbright LEDs &#8211; blue and white &#8211; for when our 4wd chassis&#8217; eventually come, as well as some smaller breadboards and some resistors.</p>
<p>Just got an email this morning that Bizoner.com has finally processed our order of 4wd chassis&#8217; so hopefully they will come next week.</p>
<p>Matt</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.matthewrobbins.co.uk/blog/raspberry-pi-endeavors-3-battery-and-other-components/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
