<?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>Raspberry Pi Spy</title>
	<atom:link href="http://www.raspberrypi-spy.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raspberrypi-spy.co.uk</link>
	<description>Raspberry Pi tutorials, scripts, help and downloads</description>
	<lastBuildDate>Wed, 22 May 2013 20:11:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Taking Hi-Res Photos With The Pi Camera Module</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/05/taking-hi-res-photos-with-the-pi-camera-module/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/05/taking-hi-res-photos-with-the-pi-camera-module/#comments</comments>
		<pubDate>Wed, 22 May 2013 20:11:06 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Camera Module]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[time lapse]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=1604</guid>
		<description><![CDATA[Taking photos with the Pi Camera Module is easy once you have plugged it in and made the correct configuration changes. In order to do this make sure you have read my Installing The Raspberry Pi Camera Module page. Once &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/05/taking-hi-res-photos-with-the-pi-camera-module/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-1590" alt="pi_camera_module_17" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_17-150x150.jpg" width="150" height="150" />Taking photos with the Pi Camera Module is easy once you have plugged it in and made the correct configuration changes. In order to do this make sure you have read my <a title="Installing The Raspberry Pi Camera Module" href="http://www.raspberrypi-spy.co.uk/2013/05/installing-the-raspberry-pi-camera-module/">Installing The Raspberry Pi Camera Module</a> page.</p>
<p>Once you&#8217;ve completed the camera installation you won&#8217;t need to do it again and you can concentrate on taking photos and recording HD video.</p>
<p><span id="more-1604"></span></p>
<p><strong>Basic Photo Capture</strong></p>
<p>Capturing stills is done using the raspistill command line utiltity and is as easy as typing :</p>
<pre>raspistill -o myimage.jpg</pre>
<p><img class="alignright  wp-image-1577" alt="pi_camera_module_04" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_04-300x225.jpg" width="240" height="180" />This takes a photo which is then saved as &#8220;myimage.jpg&#8221;. By default the image is previewed on the screen and is captured after a 5 second delay. You can change the delay by using the &#8220;-t&#8221; option and supplying a time in milliseconds.</p>
<p>In the example below we take a photo with a delay of 3 seconds (3000 milliseconds) :</p>
<pre>raspistill -o myimage.jpg -t 3000</pre>
<p>This is a list of some of the more common options available when using raspistill :</p>
<pre>-?,   --help       : This help information
-w,   --width      : Set image width &lt;size&gt;
-h,   --height     : Set image height &lt;size&gt;
-q,   --quality    : Set jpeg quality &lt;0 to 100&gt;
-o,   --output     : Output filename &lt;filename&gt;
-v,   --verbose    : Output verbose information during run
-t,   --timeout    : Time (in ms) before taking picture
                    (if not specified, set to 5s)
-th,  --thumb      : Set thumbnail parameters (x:y:quality)
-d,   --demo       : Run a demo mode
-e,   --encoding   : Output format (jpg, bmp, gif, png)
-tl,  --timelapse  : Timelapse mode. Takes a picture every &lt;t&gt;ms

-p,   --preview    : Preview window settings &lt;'x,y,w,h'&gt;
-f,   --fullscreen : Fullscreen preview mode
-n,   --nopreview  : Do not display a preview window

-sh,  --sharpness  : Set image sharpness (-100 to 100)
-co,  --contrast   : Set image contrast (-100 to 100)
-br,  --brightness : Set image brightness (0 to 100)
-sa,  --saturation : Set image saturation (-100 to 100)
-ISO, --ISO        : Set capture ISO

-vs,  --vstab      : Turn on video stablisation
-rot, --rotation   : Set image rotation (90,180,270)
-hf,  --hflip      : Set horizontal flip
-vf,  --vflip      : Set vertical flip</pre>
<p>To get a full list of options that can be used type :</p>
<pre>raspistill | less</pre>
<p>Scroll using the arrow keys and press q to return to the command line.</p>
<p>Depending on how you position your camera you may need to use the &#8220;-rot&#8221; option to ensure your photos are the right way around.</p>
<p><strong>Time Lapse Photo Capture</strong></p>
<p>Another great feature of the utility is the easy capture of a series of images over a specified period of time. You could write your own software to do this but for speed you can&#8217;t beat the time lapse options provided :</p>
<pre>raspistill -o myimage_%d.jpg -tl 2000 -t 25000</pre>
<p>The -tl option sets the time between photos (in milliseconds) and the -t option sets the total time the sequence will last. So in this example a photo will be taken every two seconds (2000ms) for a total time of twenty five seconds (25000ms).</p>
<p>In this example we take a photo every minute (60000 milliseconds) for a total time of 2 hours (60 x 2 x 1000 milliseconds) :</p>
<pre>raspistill -o myimage_%d.jpg -tl 60000 -t 7200000</pre>
<p>The &#8220;%d&#8221; results in a sequence of numbered images being produced. In this case you would get images named :</p>
<pre>myimage_1.jpg
myimage_2.jpg
myimage_3.jpg
myimage_4.jpg
...</pre>
<p>If you change the &#8220;%d&#8221; to &#8220;%04d&#8221; you can pad the numbers with zeroes to always give four digits. I much prefer this as it gives you a sequence that looks like :</p>
<pre>myimage_0001.jpg
myimage_0002.jpg
myimage_0003.jpg
myimage_0004.jpg
...</pre>
<p>Much neater!</p>
<p>As I experiment with the camera I will add other posts and cover some more advanced techniques but until then have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/05/taking-hi-res-photos-with-the-pi-camera-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing The Raspberry Pi Camera Module</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/05/installing-the-raspberry-pi-camera-module/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/05/installing-the-raspberry-pi-camera-module/#comments</comments>
		<pubDate>Wed, 22 May 2013 19:55:52 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Camera Module]]></category>
		<category><![CDATA[camera]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=1595</guid>
		<description><![CDATA[The Official Raspberry Pi camera module is here at last. The full specification can be found on my Official Raspberry Pi Camera Module page. This page aims to show how to get the camera connected and ready to go. Depending &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/05/installing-the-raspberry-pi-camera-module/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="size-thumbnail wp-image-1575 alignright" alt="pi_camera_module_02" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_02-150x150.jpg" width="150" height="150" />The Official Raspberry Pi camera module is here at last. The full specification can be found on my <a title="The Official Raspberry Pi Camera Module" href="http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/" target="_blank">Official Raspberry Pi Camera Module</a> page. This page aims to show how to get the camera connected and ready to go. Depending on the current state of your SD card this will take between 2 and 20 minutes.</p>
<p><span id="more-1595"></span></p>
<p><strong>Step 1 &#8211; Connect the camera to the Pi</strong></p>
<p>The camera ribbon cable connects to the special connector on the Pi next to the ethernet port. The easiest way to see how the cable is connected is to watch this video. It&#8217;s fairly easy you just need to be careful you don&#8217;t crease the ribbon cable.</p>
<p><a href="http://www.youtube.com/watch?v=GImeVqHQzsE">http://www.youtube.com/watch?v=GImeVqHQzsE</a></p>
<p><strong>Step 2 &#8211; Update the SD card<br />
</strong></p>
<p>In order to use the camera you must be using a recent operating system that knows that the camera exists. The easiest way to do this is to grab the latest Raspbian image from the RaspberryPi.org site and create a fresh SD card.</p>
<p>Regardless of what version of Raspbian you are using it is highly recommended to update the system using the following commands :</p>
<pre class="brush: plain; title: ; notranslate">sudo apt-get update</pre>
<pre class="brush: plain; title: ; notranslate">sudo apt-get-upgrade</pre>
<p>Depending on how up-to-date your SD card is the second process may take a while.</p>
<p><strong>Step 3 &#8211; Enable camera in raspi-config settings<br />
</strong></p>
<p>Reboot. If you are using a fresh image the raspi-config utility should load. If it doesn&#8217;t then you can run it manually using :</p>
<pre class="brush: plain; title: ; notranslate">sudo raspi-config</pre>
<p>Sekect the &#8220;Camera&#8221; option and press &#8220;Enter&#8221;.</p>
<p><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/raspi_config_camera_01.png"><img class="aligncenter size-medium wp-image-1599" alt="raspi_config_camera_01" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/raspi_config_camera_01-300x171.png" width="300" height="171" /></a></p>
<p>Select &#8220;Enable&#8221; and press &#8220;Enter&#8221;.</p>
<p><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/raspi_config_camera_02.png"><img class="aligncenter size-medium wp-image-1600" alt="raspi_config_camera_02" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/raspi_config_camera_02-300x171.png" width="300" height="171" /></a><br />
Select &#8220;Yes&#8221; and press &#8220;Enter&#8221;. Your Pi will reboot.</p>
<p><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/raspi_config_camera_03.png"><img class="aligncenter size-medium wp-image-1601" alt="raspi_config_camera_03" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/raspi_config_camera_03-300x171.png" width="300" height="171" /></a></p>
<p>Updating your operating and enabling the camera using raspi-config did two things. It told your Pi that there is a camera attached and it added two command line utilities.</p>
<ul>
<li>raspistill</li>
<li>raspivid</li>
</ul>
<p>These allow you to capture still photos and HD video respectively.</p>
<p>You are now ready to start having fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/05/installing-the-raspberry-pi-camera-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Disable The Red LED On The Pi Camera Module</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/05/how-to-disable-the-red-led-on-the-pi-camera-module/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/05/how-to-disable-the-red-led-on-the-pi-camera-module/#comments</comments>
		<pubDate>Sat, 18 May 2013 17:31:04 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Camera Module]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[LED]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=1636</guid>
		<description><![CDATA[The Pi camera module includes a red LED in one corner of the PCB. This lights up when the camera is active. It&#8217;s really useful in giving a visual indication that the camera is doing something and most of the &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/05/how-to-disable-the-red-led-on-the-pi-camera-module/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>The Pi camera module includes a red LED in one corner of the PCB. This lights up when the camera is active. It&#8217;s really useful in giving a visual indication that the camera is doing something and most of the time you will be glad it is there.</p>
<p>However there are a number of reasons you might wish it wasn&#8217;t.</p>
<p>In my testing here are some of the reasons it can get in the way :</p>
<ul>
<li><img class="size-medium wp-image-1637 alignright" alt="Pi Camera Module Red LED" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_red_led-300x169.jpg" width="300" height="169" />It can cause reflections on objects you are trying to photograph giving them a red glow.</li>
<li>For nature photography it scares animals.</li>
<li>For security applications it may draw unnecessary attention to the device.</li>
<li>It consumes power.</li>
</ul>
<p><span id="more-1636"></span></p>
<p>To disable the red LED you simply need to add the following line to your config.txt file :</p>
<pre>disable_camera_led=1</pre>
<p>To edit the config.txt file you can use Nano :</p>
<pre>sudo nano /boot/config.txt</pre>
<p>Use the arrow keys to scroll to the end of the file and add &#8220;disable_camera_led=1&#8243; to the last line. Press &#8220;CTRL-x&#8221; to quit. If prompted press &#8220;Y&#8221; followed by &#8220;Return&#8221; or &#8220;Enter&#8221;.</p>
<p>Reboot your Pi with &#8220;sudo reboot&#8221; and when you next use the camera the red LED will be disabled.</p>
<p>To enable the light again you can either use Nano to remove the line you added above or you can change it to &#8220;disable_camera_led=0&#8243;. Reboot the Pi and you will have your camera light back.</p>
<p><strong>GPIO Control</strong></p>
<p>Thanks to a hint by @TeamRaspi on Twitter I checked the schematics of the Rev 2 Pi and discovered that once disabled using the process above you can control camera LED using GPIO5. I tested this in Python and it works fine. Here is an example script that blinks the camera LED five times :</p>
<pre class="brush: python; title: ; notranslate">#!/usr/bin/env python
import time
import RPi.GPIO as GPIO

# Use GPIO numbering
GPIO.setmode(GPIO.BCM)

# Set GPIO for camera LED
CAMLED = 5

# Set GPIO to output
GPIO.setup(CAMLED, GPIO.OUT, initial=False) 

# Five iterations with half a second
# between on and off
for i in range(5):
  GPIO.output(CAMLED,True)  # On
  time.sleep(0.5)
  GPIO.output(CAMLED,False) # Off
  time.sleep(0.5)</pre>
<p>Here is a short clip showing the camera LED being turned on and off using Python :</p>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/ZPGNaFIUcSs?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p><strong>UPDATE</strong> : Since the latest update to Raspbian the disable_camera_led feature appears to have stopped working. Hopefully it will be restored soon! The Python script still allows control of the LED.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/05/how-to-disable-the-red-led-on-the-pi-camera-module/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Pi Camera Module Mechanical Dimensions</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/05/pi-camera-module-mechanical-dimensions/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/05/pi-camera-module-mechanical-dimensions/#comments</comments>
		<pubDate>Fri, 17 May 2013 19:42:46 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Camera Module]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[dimensions]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=1626</guid>
		<description><![CDATA[Having played around with the Pi camera I quickly realised I needed to make some sort of stand for it. The module weighs almost nothing and is tiny so it can be quite hard to keep in one place when &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/05/pi-camera-module-mechanical-dimensions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-1587" alt="pi_camera_module_14" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_14-150x150.jpg" width="150" height="150" />Having played around with the Pi camera I quickly realised I needed to make some sort of stand for it. The module weighs almost nothing and is tiny so it can be quite hard to keep in one place when you are experimenting. The Raspberry Pi Foundation apparently recommends <a href="http://en.wikipedia.org/wiki/Blu-Tack" target="_blank">Blu-tack</a>, based on cost, simplicity and plain, old fashioned versatility.</p>
<p>I thought it would be best to create a template that I could print out and use to create a camera holder without using the real module. That way I could get all the dimensions correct without worrying about squashing or dropping the module itself.</p>
<p>So here is a diagram showing the main module measurements.</p>
<p><span id="more-1626"></span></p>
<div id="attachment_1628" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/Raspberry-Pi-Camera-Module-Diagram.png"><img class="size-large wp-image-1628" alt="Raspberry Pi Camera Module Diagram" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/Raspberry-Pi-Camera-Module-Diagram-853x1024.png" width="640" height="768" /></a><p class="wp-caption-text">Raspberry Pi Camera Module Diagram</p></div>
<p>The PCB is 25x24mm and is approximately 1mm thick. The distance between the reverse side of the PCB and the face of the camera is 6mm. The mounting holes will accept a 2mm machine screw according to various posts and photos I have seen.</p>
<p><strong>Printing</strong></p>
<p>You can either print the image above (click to get a bigger version) or use the <a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/Raspberry-Pi-Camera-Module-Diagram.pdf">Raspberry Pi Camera Module Diagram PDF</a>. The image outline and the rectangle in the PDF are 50 x 60mm. You may need to set your printer driver to scale the diagram by 50% to ensure the module comes out 25mm wide.</p>
<p>If I manage to create a camera stand or mount that isn&#8217;t too embarrassing I will be sure to write an article about it and share photos.</p>
<p><strong>Disclaimer :</strong> I&#8217;ve attempted to measure and represent the measurements as best I can using a set of plastic calipers I got free on the cover of a magazine. Please check before cutting or drilling anything.</p>
<p>If there is anything incorrect please let me know and I will correct it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/05/pi-camera-module-mechanical-dimensions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Official Raspberry Pi Camera Module</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/#comments</comments>
		<pubDate>Tue, 14 May 2013 09:13:53 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=1361</guid>
		<description><![CDATA[The first add-on from the Raspberry Pi Foundation is the official camera module &#8220;RaspiCam&#8221;. It&#8217;s been a long time coming but it is finally available to buy from Farnell, CPC (order code SC13023) and RS. The module attaches directly to &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>The first add-on from the Raspberry Pi Foundation is the official camera module &#8220;RaspiCam&#8221;. It&#8217;s been a long time coming but it is finally available to buy from <a href="http://www.farnell.com/pi" target="_blank">Farnell</a>, <a href="http://cpc.farnell.com/" target="_blank">CPC (order code SC13023)</a> and RS. The module attaches directly to the Pi PCB via a ribbon cable and the CSI connector.</p>
<p><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_09.jpg"><img class="size-thumbnail wp-image-1582 alignright" alt="Raspberry Pi Camera Module" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_09-150x150.jpg" width="150" height="150" /></a>The camera module is an <a href="http://www.ovt.com/products/sensor.php?id=66" target="_blank">OV5647 made by OmniVision</a> and measures 8.5 x 8.5 x 5mm. The whole unit including the PCB measures 25mm x 20mm x 9mm. The camera contains a fixed focus 5-megapixel CMOS image sensor and is capable of recording 720p and 1080p HD video at 30 fps.</p>
<p><span id="more-1361"></span></p>
<ul>
<li>5 megapixel</li>
<li>2592&#215;1944 stills</li>
<li>1080p at 30 frames per second</li>
<li>720p at 60 frames per second</li>
<li>640x480p at 60/90 frames per second</li>
<li>CSi interface with 150mm ribbon cable</li>
<li>PCB+Camera module weighs 2.4g, ribbon cable weighs 1.0g</li>
</ul>
<p>The camera is officially supported by the <a href="http://www.raspberrypi.org/downloads" target="_blank">latest Raspbian SD card image</a> but you will need to follow the setup instructions in <a href="http://www.raspberrypi.org/archives/3890" target="_blank">Eben&#8217;s post</a> first.</p>
<p>Here is a video showing how the camera modules ribbon cable should attached to the connector on the Raspberry Pi.</p>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/GImeVqHQzsE?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>For full instructions on getting the camera working with Raspbian see this excellent <a href="http://www.raspberrypi.org/archives/3890" target="_blank">camera setup and use post</a> on the RaspberryPi.org site. It includes instructions on taking video and stills. Their is also a detailed set of <a href="https://github.com/raspberrypi/userland/raw/master/host_applications/linux/apps/raspicam/RaspiCamDocs.odt" target="_blank">camera documentation</a> available which details all the command line options for the camera utilities (raspistill, raspivid and raspistillyuv).</p>
<p>Here are some photos of my Camera Module :</p>

<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_01/' title='pi_camera_module_01'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_01-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_01" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_02/' title='pi_camera_module_02'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_02-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_02" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_03/' title='pi_camera_module_03'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_03-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_03" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_04/' title='pi_camera_module_04'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_04-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_04" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_05/' title='pi_camera_module_05'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_05-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_05" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_06/' title='pi_camera_module_06'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_06-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_06" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_07/' title='pi_camera_module_07'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_07-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_07" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_08/' title='pi_camera_module_08'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_08-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_08" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_09/' title='pi_camera_module_09'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_09-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_09" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_10/' title='pi_camera_module_10'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_10-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_10" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_11/' title='pi_camera_module_11'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_11-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_11" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_12/' title='pi_camera_module_12'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_12-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_12" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_13/' title='pi_camera_module_13'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_13-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_13" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_14/' title='pi_camera_module_14'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_14-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_14" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_15/' title='pi_camera_module_15'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_15-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_15" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_16/' title='pi_camera_module_16'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_16-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_16" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_17/' title='pi_camera_module_17'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_17-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_17" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/pi_camera_module_18/' title='pi_camera_module_18'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/pi_camera_module_18-150x150.jpg" class="attachment-thumbnail" alt="pi_camera_module_18" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/05/the-official-raspberry-pi-camera-module/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi CPU Usage Monitoring With A BerryClip</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/05/raspberry-pi-cpu-usage-monitoring-with-a-berryclip/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/05/raspberry-pi-cpu-usage-monitoring-with-a-berryclip/#comments</comments>
		<pubDate>Mon, 13 May 2013 18:28:27 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[BerryClip]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[berryclip]]></category>
		<category><![CDATA[cpu]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=1321</guid>
		<description><![CDATA[While wandering the internet I found an article Raspberry Pi: CPU usage monitoring using GPIO by chteuchteu. This explained how to display the current CPU usage on 7 LEDs attached to the GPIO header. I thought this would be a &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/05/raspberry-pi-cpu-usage-monitoring-with-a-berryclip/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="size-thumbnail wp-image-1283 alignright" alt="berryclip_with_pi_2013_03_#16" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/11/berryclip_with_pi_2013_03_16-150x150.jpg" width="150" height="150" />While wandering the internet I found an article <a href="http://www.chteuchteu.com/2012/11/05/raspberry-pi-cpu-usage-monitoring-using-gpio/" target="_blank">Raspberry Pi: CPU usage monitoring using GPIO</a> by chteuchteu. This explained how to display the current CPU usage on 7 LEDs attached to the GPIO header.</p>
<p>I thought this would be a great application to convert for use with a BerryClip 6 LED Buzzer board. So I modified the original code to use 6 LEDs and tweaked a few of the functions. Apart from the LED count I changed the script to use an array of GPIO references so it would be easier to update if you used different pins.</p>
<p><span id="more-1321"></span></p>
<p>I started with a fresh install of the latest Raspbian SD card image.</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
#--------------------------------------
#    ___                   ________
#   / _ )___ __________ __/ ___/ (_)__
#  / _  / -_) __/ __/ // / /__/ / / _ \
# /____/\__/_/ /_/  \_, /\___/_/_/ .__/
#                  /___/        /_/
#
#       BerryClip - 6 LED Board
#
# This script uses 6 LEDs to display the
# current CPU usage.
#
# Author : Matt Hawkins
# Date   : 12/05/2013
#
# http://www.raspberrypi-spy.co.uk/
#
# Original script created by chteuchteu
# http://www.chteuchteu.com/
#
# Modified by Matt Hawkins to use the 6 LEDs
# on the BerryClip addon board.
#
# BerryClip LED reference :
# LED 1  - Pin 7  - GPIO4
# LED 2  - Pin 11 - GPIO17
# LED 3  - Pin 15 - GPIO22
# LED 4  - Pin 19 - GPIO10
# LED 5  - Pin 21 - GPIO9
# LED 6  - Pin 23 - GPIO11
#
#--------------------------------------

# Create array of GPIO references
led[1]=&quot;11&quot;
led[2]=&quot;9&quot;
led[3]=&quot;10&quot;
led[4]=&quot;22&quot;
led[5]=&quot;17&quot;
led[6]=&quot;4&quot;

# Configure GPIOs to be outputs
echo ${led[1]} &gt; /sys/class/gpio/export 2&gt; /dev/null
echo ${led[2]} &gt; /sys/class/gpio/export 2&gt; /dev/null
echo ${led[3]} &gt; /sys/class/gpio/export 2&gt; /dev/null
echo ${led[4]} &gt; /sys/class/gpio/export 2&gt; /dev/null
echo ${led[5]} &gt; /sys/class/gpio/export 2&gt; /dev/null
echo ${led[6]} &gt; /sys/class/gpio/export 2&gt; /dev/null
echo &quot;out&quot; &gt; /sys/class/gpio/gpio${led[1]}/direction
echo &quot;out&quot; &gt; /sys/class/gpio/gpio${led[2]}/direction
echo &quot;out&quot; &gt; /sys/class/gpio/gpio${led[3]}/direction
echo &quot;out&quot; &gt; /sys/class/gpio/gpio${led[4]}/direction
echo &quot;out&quot; &gt; /sys/class/gpio/gpio${led[5]}/direction
echo &quot;out&quot; &gt; /sys/class/gpio/gpio${led[6]}/direction

#################################################
#                   FUNCTIONS                   #
#################################################

number=0
gpio=0

function LEDON {
  # Turn ON the LED &quot;number&quot;

  gpio=${led[number]}

  echo &quot;1&quot; &gt; /sys/class/gpio/gpio$gpio/value
  number=0
  gpio=0
}
function LEDOFF {
  # Allow you to turn off the del (the number of the del is contained in &quot;number&quot;)
  # number  pin is done at the begining of the function

  gpio=${led[number]}

  echo &quot;0&quot; &gt; /sys/class/gpio/gpio$gpio/value
  number=0
  gpio=0
}

function allON
{
  # Turn ON all the LEDs
  for i in {1..6}
  do
     number=i ; LEDON
  done

}
function allOFF
{
  # Turn OFF all the LEDs
  for i in {1..6}
  do
     number=i ; LEDOFF
  done

}
function flash
{
  counter=0
  while [ $counter -le $1 ]
  do
    allON ; sleep 0.2
    allOFF ; sleep 0.2
    counter=$(( $counter + 1 ))
  done

}

#################################################
#                   MAIN CODE                   #
#################################################

# Turn ON all LEDs in sequence
number=1 ; LEDON ; sleep 0.2
number=2 ; LEDON ; sleep 0.2
number=3 ; LEDON ; sleep 0.2
number=4 ; LEDON ; sleep 0.2
number=5 ; LEDON ; sleep 0.2
number=6 ; LEDON ; sleep 1

# Turn all LEDs OFF
allOFF

# Flash the LEDs 5 times
flash 5

# Start main loop
while true ; do

  # Obtain the current CPU usage percentage
  idle=`vmstat 2 3 | tail -n1 | sed &quot;s/\ \ */\ /g&quot; | cut -d' ' -f 16`
  cpu=$(( 100 - idle ))

  # Switch the LEDs ON or OFF the &quot;cpu&quot; value
  allOFF
  if [ ${cpu} -lt 5 ] ; then
    allOFF
  elif [ ${cpu} -lt 23 ] ; then
    number=1   ; LEDON
  elif [ ${cpu} -lt 41 ] ; then
    number=1   ; LEDON
    number=2   ; LEDON
  elif [ ${cpu} -lt 59 ] ; then
    number=1   ; LEDON
    number=2   ; LEDON
    number=3   ; LEDON
  elif [ ${cpu} -lt 77 ] ; then
    number=1   ; LEDON
    number=2   ; LEDON
    number=3   ; LEDON
    number=4   ; LEDON
  elif [ ${cpu} -lt 95 ] ; then
    number=1   ; LEDON
    number=2   ; LEDON
    number=3   ; LEDON
    number=4   ; LEDON
    number=5   ; LEDON
  else
    number=1   ; LEDON
    number=2   ; LEDON
    number=3   ; LEDON
    number=4   ; LEDON
    number=5   ; LEDON
    number=6   ; LEDON
  fi

done

# Turn all LEDs OFF
allOFF

exit 0
</pre>
<p>This script can be downloaded directly to your Pi using the following command :</p>
<pre class="brush: plain; title: ; notranslate">wget http://www.raspberrypi-spy.co.uk/berryclip/6_led/berryclip_cpu_01.sh</pre>
<p>The script must be made executable :</p>
<pre class="brush: bash; title: ; notranslate">chmod +x berryclip_cpu_01.sh</pre>
<p>It can then be run from the command line using :</p>
<pre class="brush: bash; title: ; notranslate">sudo ./berryclip_cpu_01.sh &amp;</pre>
<p>The ampersand on the end of the line is required to run the script as a background process and give you your command line back. The number displayed when you run the script is the process ID. You can check the process is still running by typing :</p>
<pre class="brush: bash; title: ; notranslate">ps aux | grep berryclip</pre>
<p>You should see a process with the same ID. If you want to close the process you can type :</p>
<pre class="brush: bash; title: ; notranslate">sudo kill 1234</pre>
<p>Where 1234 is your process ID.</p>
<p>The LEDs will light up based on the CPU utilisation. The percentages required to light each LED are shown below :</p>
<pre class="brush: plain; title: ; notranslate">None   less than 5%
1 LED  5% or greater
2 LED 23% or greater
3 LED 41% or greater
4 LED 59% or greater
5 LED 77% or greater
6 LED 95% or greater</pre>
<p>If you now run &#8220;startx&#8221; and use some applications (Midori for example) you will see the CPU monitor spring into life! If you don&#8217;t like the percentages used in this example they are easy enough to change by adjusting the appropriate numbers in the script.</p>
<p>Here are some photos of the monitor in action :</p>

<a href='http://www.raspberrypi-spy.co.uk/2013/05/raspberry-pi-cpu-usage-monitoring-with-a-berryclip/berryclip_cpu_monitor_01/' title='berryclip_cpu_monitor_01'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/berryclip_cpu_monitor_01-150x150.jpg" class="attachment-thumbnail" alt="berryclip_cpu_monitor_01" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/raspberry-pi-cpu-usage-monitoring-with-a-berryclip/berryclip_cpu_monitor_02/' title='berryclip_cpu_monitor_02'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/berryclip_cpu_monitor_02-150x150.jpg" class="attachment-thumbnail" alt="berryclip_cpu_monitor_02" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/05/raspberry-pi-cpu-usage-monitoring-with-a-berryclip/berryclip_cpu_monitor_03/' title='berryclip_cpu_monitor_03'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/05/berryclip_cpu_monitor_03-150x150.jpg" class="attachment-thumbnail" alt="berryclip_cpu_monitor_03" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/05/raspberry-pi-cpu-usage-monitoring-with-a-berryclip/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi AA Battery Shoot-out</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/#comments</comments>
		<pubDate>Fri, 12 Apr 2013 19:52:52 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[7dayshop]]></category>
		<category><![CDATA[aa]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[sanyo eneloop]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=1421</guid>
		<description><![CDATA[Having previously run my Raspberry Pi from a set of AA batteries I decided to test all the different types I had available to see which ones lasted the longest. This wasn&#8217;t going to be a scientific test but I &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Having previously run my <a title="Running a Raspberry Pi from 6 AA Batteries" href="http://www.raspberrypi-spy.co.uk/2013/02/running-a-raspberry-pi-from-6-aa-batteries/">Raspberry Pi from a set of AA batteries</a> I decided to test all the different types I had available to see which ones lasted the longest.</p>
<p>This wasn&#8217;t going to be a scientific test but I wanted a general feeling for how the batteries performed given their different capabilities and price.</p>
<p><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_01.jpg"><img class="alignright size-thumbnail wp-image-1453" alt="AA Battery Shoot-out" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_01-150x150.jpg" width="150" height="150" /></a>The batteries I decided to try were :</p>
<ul>
<li>Sanyo eneloop (2000mAh)</li>
<li>Sanyo eneloop XX (2550mAh)</li>
<li>7DayShop Rechargeables (2900mAh)</li>
<li>7DayShop &#8220;Good to Go&#8221; Rechargeables (2150mAh)</li>
<li>Maxell Alkaline Non-Rechargeables</li>
</ul>
<p>Due to the time required to run the tests and re-charge the batteries I opted for running the tests with a Raspberry Pi Model B (rev 2) rather than a Model A. Where possible I performed two tests with each set and took the average runtime.</p>
<p><span id="more-1421"></span></p>
<h2>The Test</h2>
<div id="attachment_1473" class="wp-caption alignright" style="width: 160px"><img class="size-thumbnail wp-image-1473" alt="Maplin Hybrid Charger" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/maplin_hybrid_charger-150x150.jpg" width="150" height="150" /><p class="wp-caption-text">Maplin Hybrid Charger</p></div>
<p>The equipment I used was :</p>
<ul>
<li>6 cell AA battery holder</li>
<li>HobbyKing UBEC voltage regulator</li>
<li>Maplin 4 cell battery charger</li>
<li>Raspberry Pi Model B (256mb, rev2)</li>
<li><a title="BerryClip 6 LED Add-on Board" href="http://www.raspberrypi-spy.co.uk/berryclip-6-led-add-on-board/" target="_blank">BerryClip</a> addon board</li>
<li>Kingston 2GB SD card with latest Raspbian image</li>
</ul>
<p>I used a BerryClip so a Python script could provide some visual indication using it&#8217;s LEDs. This proved the Pi was processing data throughout the test. I soldered a few pins to the PCB to allow me to attach the wires from the regulator.</p>
<p style="text-align: center;"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_14.jpg"><img class="aligncenter  wp-image-1484" alt="AA Battery Shootout Setup" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_14.jpg" width="600" height="450" /></a></p>
<p>With a fresh set of batteries I loaded up the battery holder, connected it to the UBEC and connected that directly to the GPIO Pin 2 (+5V) and Pin 6 (Ground) via the BerryClip PCB. For each test I measured the voltage of the battery pack and the voltage provided by the voltage regulator.</p>
<p>I then used Putty to connect to the Pi via SSH and grabbed the Python test script from my site using :</p>
<pre class="brush: bash; title: ; notranslate">wget http://www.raspberrypi-spy.co.uk/berryclip/6_led/battery_uptime_test.py</pre>
<p>Then ran it using :</p>
<pre class="brush: bash; title: ; notranslate">sudo python battery_uptime_test.py</pre>
<p>The Python script turned the 6 LEDs on and off in sequence while the uptime was displayed in the Putty terminal window on the PC. I simply waited for the batteries to run out of power at which point the terminal window would stop updating. The total runtime could then be noted for that set of batteries.</p>
<h2>Results</h2>
<p>Here are results :</p>
<table>
<thead>
<tr>
<th>Brand</th>
<th>Capacity<br />
(mAh)</th>
<th>Runtime<br />
(Hours:Minutes)</th>
</tr>
</thead>
<tbody>
<tr>
<td>7DayShop</td>
<td>2900</td>
<td>9:10</td>
</tr>
<tr>
<td>Sanyo eneloop XX</td>
<td>2550</td>
<td>8:50</td>
</tr>
<tr>
<td>7DayShop &#8220;Good To Go&#8221;</td>
<td>2150</td>
<td>8:00</td>
</tr>
<tr>
<td>Sanyo eneloop</td>
<td>2000</td>
<td>7:10</td>
</tr>
<tr>
<td>Maxell Alkaline</td>
<td>-</td>
<td>6:10</td>
</tr>
</tbody>
</table>
<h2>Conclusions</h2>
<p>The results clearly showed the dominance of high capacity rechargeables over standard Alkaline batteries. Given the huge cost per hour I can&#8217;t see any real point using Alkalines in Raspberry Pi projects.</p>
<p>When choosing between the others you&#8217;ve got a choice. The 7DayShop 2900mAh batteries last longer and are good value for money. For experimenting you should probably consider using these. The Sanyo eneloop and Sanyo eneloop XX are almost there in terms of runtime but are more expensive. They do however have one huge advantage which may justify the extra cost. They are &#8220;hybrids&#8221; using a more advanced technology and hold their charge over a much longer period of time (85%+ over 1 year). More information can be found on the<a href="http://en.wikipedia.org/wiki/Eneloop" target="_blank"> eneloop Wikipedia page</a>.</p>
<p>The 7DayShop &#8220;Good to Go&#8221; batteries sit in the middle. They are hybrids and hold their charge but have a modest capacity compared to the eneloops which is reflected in their lower price.</p>
<p>If you plan to charge and then use immediately go for the 7DayShop 2900mAh cells. I use these for kids toys and torches on camping trips etc. They are cheap and I don&#8217;t have to worry about the self-discharge.</p>
<p>If you want to charge and not lose much capacity over time then go for one of the Sanyo eneloop variants. The eneloop XX cells are great for digital cameras and long service items as you can depend on them working months or even years after you charged them up. For this reason I use them in my automatic cat feeder which spends a lot of time waiting to be used.</p>
<h2>Photos</h2>
<p>Here are some photos of the batteries I used in the tests :</p>

<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_02/' title='pi_aa_battery_shootout_02'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_02-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_02" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_01/' title='pi_aa_battery_shootout_01'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_01-150x150.jpg" class="attachment-thumbnail" alt="AA Battery Shoot-out" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_08/' title='pi_aa_battery_shootout_08'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_08-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_08" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_05/' title='pi_aa_battery_shootout_05'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_05-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_05" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_06/' title='pi_aa_battery_shootout_06'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_06-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_06" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_07/' title='pi_aa_battery_shootout_07'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_07-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_07" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_04/' title='pi_aa_battery_shootout_04'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_04-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_04" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_10/' title='pi_aa_battery_shootout_10'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_10-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_10" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_11/' title='pi_aa_battery_shootout_11'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_11-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_11" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_09/' title='pi_aa_battery_shootout_09'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_09-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_09" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_03/' title='pi_aa_battery_shootout_03'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_03-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_03" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_12/' title='pi_aa_battery_shootout_12'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_12-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_12" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_14/' title='pi_aa_battery_shootout_14'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_14-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_14" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/pi_aa_battery_shootout_13/' title='pi_aa_battery_shootout_13'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/04/pi_aa_battery_shootout_13-150x150.jpg" class="attachment-thumbnail" alt="pi_aa_battery_shootout_13" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/04/raspberry-pi-aa-battery-shoot-out/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Berryclip 6 LED Board Testing in C</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/04/berryclip-6-led-board-testing-in-c/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/04/berryclip-6-led-board-testing-in-c/#comments</comments>
		<pubDate>Fri, 05 Apr 2013 14:48:01 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[BerryClip]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[berryclip]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=837</guid>
		<description><![CDATA[This post is for the lucky owners of the BerryClip 6 LED add on board and is the first of a series of posts to get you started with an alternative to Python. This article covers using C, but there &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/04/berryclip-6-led-board-testing-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="size-thumbnail wp-image-1253 alignright" alt="BerryClip 6 LED Board" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/11/berryclip_2013_03_01-150x150.jpg" width="150" height="150" />This post is for the lucky owners of the <a title="BerryClip 6 LED Add-on Board" href="http://www.raspberrypi-spy.co.uk/berryclip-6-led-add-on-board/">BerryClip</a> 6 LED add on board and is the first of a series of posts to get you started with an alternative to Python.</p>
<p>This article covers using C, but there will be future posts for using the BerryClip directly from Scratch and also using the node.js javascript language.</p>
<p>The easiest way to do this in C, is to use the  very popular wiringPi C library developed by Gordon Henderson, aka <a href="http://projects.drogon.net/" target="_blank">drogon</a>.<span id="more-837"></span></p>
<p>The code is available from <a href="http://bitbucket.org/vinnievg/berryclip/src/default/6LED/c" target="_blank">BitBucket</a> or by cutting and pasting the text below into a file called <strong>test1.c :<br />
</strong></p>
<pre class="brush: cpp; title: ; notranslate">

#include &lt;wiringPi.h&gt;
#include &lt;stdlib.h&gt;

int leds[6] = { 7, 0, 3, 12, 13, 14 };
int BUZZER = 10;
int BUTTON = 11;
void all_leds_off();
void init_pins();

int main (void) {
  //Check we have wiringPi
  if (wiringPiSetup () == -1 ) exit (1);
  init_pins();
  all_leds_off();
  for (;;) {
    if (digitalRead (BUTTON) == 1 ) {
      for (int i = 0; i &lt; 6; i++) {
        digitalWrite (BUZZER,1);
        digitalWrite (leds[i],1);
        delay (50);
        digitalWrite (BUZZER,0);
        delay (450);
      }
      delay (1000);
      all_leds_off();
    }
    delay(50);
  }
  exit(0);
}

void init_pins() {
  //set leds as outputs...
  for (int i = 0; i &lt; 6; i++) {
    pinMode(leds[i], OUTPUT);
  }
  // set buzzer as output...
  pinMode(BUZZER, OUTPUT);

  // set button as an input...
  pinMode(BUTTON, INPUT);
}

void all_leds_off() {
  for (int i = 0; i &lt; 6; i++) {
    digitalWrite (leds[i],0);
  }
}

</pre>
<p>You will need wiringPi, so please pop over to Gordon&#8217;s site to learn how to <a href="https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/" target="_blank">install wiringPi.</a></p>
<p>You may notice the pin numbers used in the above example are different to those used in the Python examples.  This is due to wiringPi having it&#8217;s own pin numbering system. See Gordon&#8217;s <a title="wiringPi PINs" href="https://projects.drogon.net/raspberry-pi/wiringpi/pins/" target="_blank">pin page</a> for clarification.</p>
<p>To compile test1.c please create a file called <strong>Makefile</strong> in the same directory as test1.c with the following contents:</p>
<pre class="brush: bash; title: ; notranslate">
DEBUG = -O3
CC    = gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall -std=c99 $(INCLUDE) -Winline -pipe

LDFLAGS = -L/usr/local/lib
LIBS = -lwiringPi

OBJ = test1.o

BINS = test1

test1: test1.o
        @echo [link]
        $(CC) -o $@ test1.o $(LDFLAGS) $(LIBS)

.c.o:
        @echo [CC] $&lt;
        @$(CC) -c $(CFLAGS) $&lt; -o $@

clean:
        rm -f $(OBJ) *~ test1
</pre>
<p>In the same directory type</p>
<p><code>make</code></p>
<p>To run the program, type</p>
<p><code>sudo ./test1</code></p>
<p>Enjoy C, or watch for my next post &#8211; if I get a language request in the comments, then I&#8217;ll be happy to get the Berry Clip to learn another language in a subsequent post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/04/berryclip-6-led-board-testing-in-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bristol Mini Maker Faire 2013</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/#comments</comments>
		<pubDate>Sat, 23 Mar 2013 22:35:48 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bristol]]></category>
		<category><![CDATA[maker faire]]></category>
		<category><![CDATA[raspberry pi foundation]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=1379</guid>
		<description><![CDATA[The Bristol Mini Maker Faire was held on 23rd March 2013 at the M Shed on the waterfront. It was my first maker faire and my main objective was to hear Eben Upton from the Raspberry Pi Foundation speak. The &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-1381" alt="bristol_maker_fair_2013_02" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_02-150x150.jpg" width="150" height="150" />The Bristol Mini Maker Faire was held on 23rd March 2013 at the M Shed on the waterfront.</p>
<p>It was my first maker faire and my main objective was to hear Eben Upton from the Raspberry Pi Foundation speak. The traffic conditions resulted in his talk being delayed by one hour which gave me, my wife and my son a bit more time to look around.</p>
<p>I wasn&#8217;t quite sure how child friendly the event would be but my son loved it. He particularly enjoyed the weaving, spinning, sit on hovercraft and robots.</p>
<p>Meanwhile I wandered over to the Pibow stand and was pleasantly surprised to see Liz Upton. I&#8217;m not sure if she noticed the star-struck look on my face as I introduced myself but it was one of many highlights to my day.</p>
<p><span id="more-1379"></span></p>
<p><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_19.jpg"><img class="alignleft size-thumbnail wp-image-1398" alt="RepRapPro 3D Printers" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_19-150x150.jpg" width="150" height="150" /></a>It was great to finally see some 3D printers in action. <a href="http://reprappro.com/" target="_blank">Reprappro.com</a> had three models on display and were busily printing their own spare parts. My son would have happily bought one (with my money) to print an endless supply of Yoda heads.</p>
<p>Once you&#8217;ve got one printer you can print some of the parts for the next one!</p>
<p>My wife acquired a free <a href="http://www.element14.com/community/" target="_blank">Element14</a> bag. I acquired a <a href="http://www.pimoroni.com/" target="_blank">Pimoroni</a> bag. Apparently I no longer own the Pimoroni bag as she thinks it is pretty.</p>
<p>Some of the other highlights of the event included :</p>
<ul>
<li>Arthur Amarra and his <a href="http://www.aonsquared.co.uk/node/18" target="_blank">bluetooth controlled robot arm</a></li>
<li>Various robots</li>
<li>A BBC Micro sending Tweets</li>
<li><a href="http://www.mrgscienceshows.co.uk/" target="_blank">Mr. G</a>&#8216;s Sit-on hover craft</li>
<li>Fruit controlled music</li>
<li>Bristol Hackspace CNC mill</li>
</ul>
<p>There were lots of other bits and pieces and I can&#8217;t list them all here. I&#8217;m sure they will feature in the various photos appearing on other websites, blogs and social media streams.</p>
<p>At 3pm I joined the queue for Eben&#8217;s talk. There were two queues. One for the 50 people with tickets and another for everyone else that turned up anyway. Luckily for them there was some standing room! It was interesting hearing about the development of the Raspberry Pi from one of its creators. A show of hands revealed that most of the audience already owned a Raspberry Pi which was perhaps no surprise. I got a chance to speak to Eben afterwards and now have a pair of signed Pibow cases for my collection. The session was recorded so keep an eye out for the video when it is released.</p>
<p>Here are some random photos I took. There were so many people wandering around it was quite difficult to find the space to take a photo!</p>

<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_01/' title='bristol_maker_fair_2013_01'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_01-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_01" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_02/' title='bristol_maker_fair_2013_02'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_02-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_02" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_03/' title='bristol_maker_fair_2013_03'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_03-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_03" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_04/' title='bristol_maker_fair_2013_04'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_04-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_04" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_05/' title='bristol_maker_fair_2013_05'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_05-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_05" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_06/' title='bristol_maker_fair_2013_06'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_06-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_06" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_07/' title='bristol_maker_fair_2013_07'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_07-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_07" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_08/' title='bristol_maker_fair_2013_08'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_08-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_08" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_09/' title='bristol_maker_fair_2013_09'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_09-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_09" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_10/' title='bristol_maker_fair_2013_10'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_10-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_10" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_11/' title='bristol_maker_fair_2013_11'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_11-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_11" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_12/' title='bristol_maker_fair_2013_12'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_12-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_12" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_13/' title='bristol_maker_fair_2013_13'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_13-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_13" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_14/' title='bristol_maker_fair_2013_14'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_14-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_14" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_15/' title='bristol_maker_fair_2013_15'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_15-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_15" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_16/' title='bristol_maker_fair_2013_16'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_16-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_16" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_17/' title='bristol_maker_fair_2013_17'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_17-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_17" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_18/' title='bristol_maker_fair_2013_18'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_18-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_18" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_20/' title='bristol_maker_fair_2013_20'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_20-150x150.jpg" class="attachment-thumbnail" alt="bristol_maker_fair_2013_20" /></a>
<a href='http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/bristol_maker_fair_2013_19/' title='bristol_maker_fair_2013_19'><img width="150" height="150" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/bristol_maker_fair_2013_19-150x150.jpg" class="attachment-thumbnail" alt="RepRapPro 3D Printers" /></a>

<p>If there was something I didn&#8217;t take a photo of it is likely it was surrounded by enthusiastic children or my son was dragging me to the next table.</p>
<p>The event was clearly a fantastic success for Bristol and the growing maker community. The organisers, exhibitors and <a href="http://makerfairebristol.com/sponsors" target="_blank">sponsors</a> can be extremely proud of themselves. There are more details on the <a href="http://makerfairebristol.com/archives/1054" target="_blank">official Bristol Maker Faire website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/03/bristols-mini-maker-faire-2013/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Top 10 Things to Connect to Your Raspberry Pi</title>
		<link>http://www.raspberrypi-spy.co.uk/2013/03/top-10-things-to-connect-to-your-raspberry-pi/</link>
		<comments>http://www.raspberrypi-spy.co.uk/2013/03/top-10-things-to-connect-to-your-raspberry-pi/#comments</comments>
		<pubDate>Tue, 19 Mar 2013 21:14:31 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[BerryClip]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[berryclip]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[GPIO]]></category>
		<category><![CDATA[lcd]]></category>
		<category><![CDATA[nintendo]]></category>
		<category><![CDATA[pir]]></category>
		<category><![CDATA[sensors]]></category>
		<category><![CDATA[ultrasonic]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.raspberrypi-spy.co.uk/?p=1045</guid>
		<description><![CDATA[During my time with the Pi I&#8217;ve experimented with various devices and sensors. Here is my Top 10 list of devices to connect to the Raspberry Pi. In most cases they are very cheap and easy to interface and are &#8230; <a href="http://www.raspberrypi-spy.co.uk/2013/03/top-10-things-to-connect-to-your-raspberry-pi/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>During my time with the Pi I&#8217;ve experimented with various devices and sensors. Here is my Top 10 list of devices to connect to the Raspberry Pi. In most cases they are very cheap and easy to interface and are great building blocks for more complicated future projects. I&#8217;ve included links to more detailed posts where I can and many of these include example Python scripts to help you get going.</p>
<p>From robot cars to security systems there are plenty of ways of combining these mini-projects into some amazing creations! If you need to buy a present for a Pi owner then these are good starting point.</p>
<p><span id="more-1045"></span></p>
<h2>Ultrasonic Module</h2>
<div id="attachment_947" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/12/Ultrasonic-Sensor-03.jpg"><img class="size-thumbnail wp-image-947" alt="Ultrasonic Sensor" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/12/Ultrasonic-Sensor-03-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">Ultrasonic Sensor</p></div>
<p>Ultrasonic transducer modules are an easy way to add distance measuring capability to your Pi. The device shown in the photo has 2 power pins, 1 trigger pin and 1 echo pin.</p>
<p>Take a look at my &#8220;<a title="Ultrasonic Distance Measurement Using Python – Part 1" href="http://www.raspberrypi-spy.co.uk/2012/12/ultrasonic-distance-measurement-using-python-part-1/">Ultrasonic Distance Measurement Using Python</a>&#8221; posts to see how you can connect one to the GPIO header and read it via a simple Python script.</p>
<h2>PIR Movement Sensor</h2>
<div id="attachment_1002" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/01/pir_module_2.jpg"><img class="size-thumbnail wp-image-1002" alt="PIR Module #2" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/01/pir_module_2-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">PIR Module</p></div>
<p>Simple &#8220;Passive Infra-Red&#8221; sensors allow you to detect movement. The sensors I found on eBay only cost a few pounds. They have three pins which can be connected directly to the Raspberry Pi&#8217;s GPIO header. These are great for security systems or robotic sensors.</p>
<p>An example python script can be found on the &#8220;<a title="Cheap PIR Sensors and the Raspberry Pi – Part 1" href="http://www.raspberrypi-spy.co.uk/2013/01/cheap-pir-sensors-and-the-raspberry-pi-part-1/">Cheap PIR Sensors and the Raspberry Pi</a>&#8221; page.</p>
<h2>Stepper Motor</h2>
<div id="attachment_397" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/07/28BJY-48-Stepper-Motor.jpg"><img class="size-thumbnail wp-image-397" alt="28BJY-48 Stepper Motor" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/07/28BJY-48-Stepper-Motor-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">28BJY-48 Stepper Motor</p></div>
<p>This was one of the first bits of hardware I attempted to control from the GPIO. The stepper motor came with a controller board which interfaced directly with the GPIO. You feed the device a sequence of inputs and it turns the motor.</p>
<p>Instructions and some example Python can be found on my <a title="Stepper Motor Control In Python" href="http://www.raspberrypi-spy.co.uk/2012/07/stepper-motor-control-in-python/">Stepper Motor Control In Python page</a>.</p>
<h2>16&#215;2 or 20&#215;4 Character LCD Display</h2>
<div id="attachment_534" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/08/20x4_lcd_module1.jpg"><img class="size-thumbnail wp-image-534" alt="20x4 LCD Module" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/08/20x4_lcd_module1-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">20&#215;4 LCD Module</p></div>
<p>16 or 20 character LCD displays are cheap to buy and easy to hook up to the GPIO pins on the Pi. I wrote articles about the <a title="16×2 LCD Module Control Using Python" href="http://www.raspberrypi-spy.co.uk/2012/07/16x2-lcd-module-control-using-python/">16&#215;2 LCD</a> and <a title="20×4 LCD Module Control Using Python" href="http://www.raspberrypi-spy.co.uk/2012/08/20x4-lcd-module-control-using-python/">20&#215;4 LCD</a> screens both of which I got from eBay. It doesn&#8217;t matter which device you get as long as it is compatible with the &#8220;Hitachi HD44780&#8243; LCD controller. Luckily most are based on this very common controller.</p>
<p>With the addition of some basic components you can also adjust the brightness or turn the screen on and off.</p>
<h2>USB to Serial Module</h2>
<div id="attachment_1206" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/02/usb_serial_module.jpg"><img class="size-thumbnail wp-image-1206" alt="USB to Serial Module" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/02/usb_serial_module-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">USB to Serial Module</p></div>
<p>A USB to Serial device allows your Pi to communicate over a USB interface. The USB end can be plugged into a PC, Laptop or tablet and the pins can be connected to GPIO pins 8 and 10.</p>
<p>These pins are configured as a serial terminal interface by default and allow you to access the Linux command line from your PC or tablet. It is even possible to power the Pi from the host device if its USB port can supply enough power!</p>
<h2>USB WiFi Dongle</h2>
<div id="attachment_1205" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/02/edimax_7811un_wifi_dongle.jpg"><img class="size-thumbnail wp-image-1205" alt="Edimax 7811un WiFi Dongle" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/02/edimax_7811un_wifi_dongle-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">Edimax 7811un WiFi Dongle</p></div>
<p>WiFi dongles are fairly cheap and a great way to connect your Pi to a network without cables. The Edimax 7811 is a popular choice and is easy to configure using the WiFi utility included with the latest Raspbian image.</p>
<p>I&#8217;ve also used an Edimax 7711 dongle.</p>
<h2>Mini LCD Screen</h2>
<div id="attachment_738" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/11/lcd_screen_1.jpg"><img class="size-thumbnail wp-image-738" alt="3.5 inch LCD Screen" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/11/lcd_screen_1-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">3.5 inch LCD Screen</p></div>
<p>There are plenty of small screens available that accept a composite video input. Perfect for hooking up to the Raspberry Pi&#8217;s video output. Most of these screens are sold as car reversing camera screens, are powered from 12V and often have two video inputs available.</p>
<p>The one I&#8217;ve got was £16 on eBay and I wrote about it in my <a title="Permalink to Cheap Miniature LCD Screen" href="http://www.raspberrypi-spy.co.uk/2012/11/cheap-miniature-lcd-screen/" rel="bookmark">Cheap Miniature LCD Screen</a> article. I also used it to create a <a title="Matrix Pi – Running CMatrix on the Raspberry Pi" href="http://www.raspberrypi-spy.co.uk/2013/01/matrix-pi-running-cmatrix-on-the-raspberry-pi/">Matrix Screen</a>.</p>
<h2>BerryClip 6 LED Buzzer Board</h2>
<div id="attachment_947" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/11/berryclip_2013_03_06-150x150.jpg"><img class="size-thumbnail wp-image-947" alt="BerryClip Add-on Board" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/11/berryclip_2013_03_06-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">BerryClip Add-on Board</p></div>
<p>The BerryClip is an addon board for the Pi which plugs directly onto the GPIO header. It provides 6 coloured LEDs, 1 buzzer and 1 momentary switch. These can be controlled using whatever language you prefer but there are lots of example Python scripts to try.</p>
<p>For more details visit the <a title="BerryClip 6 LED Add-on Board" href="http://www.raspberrypi-spy.co.uk/berryclip-6-led-add-on-board/">BerryClip page</a> on this site.</p>
<h2>USB Bluetooth Dongle</h2>
<div id="attachment_1202" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/02/tesco_nano_bluetooth_dongle.jpg"><img class="size-thumbnail wp-image-1202" alt="Tesco Nano Bluetooth Dongle" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/02/tesco_nano_bluetooth_dongle-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">USB Bluetooth Dongle</p></div>
<p>Bluetooth dongles are cheap and are readily available on the high street or online. I have successfully used a &#8220;Origo&#8221; branded device and a Tesco &#8220;Technika&#8221; Nano Bluetooth Adapter. The Tesco dongle cost £5 and isn&#8217;t much bigger than the USB plug itself.</p>
<p>A dongle allows you to connect various Bluetooth enabled devices such as keyboards, mice and Wii Controllers.</p>
<h2>Nintendo Wii Controller</h2>
<div id="attachment_1105" class="wp-caption alignright" style="width: 160px"><a href="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/01/Nintendo_Wii_Remote.jpg"><img class="size-thumbnail wp-image-1105" alt="Nintendo Wii Remote" src="http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/01/Nintendo_Wii_Remote-150x150.jpg" width="150" height="150" /></a><p class="wp-caption-text">Nintendo Wii Remote</p></div>
<p>If you&#8217;ve got a Nintendo Wii then it is worth taking a look at my &#8220;<a title="Nintendo Wii Remote, Python and The Raspberry Pi" href="http://www.raspberrypi-spy.co.uk/2013/02/nintendo-wii-remote-python-and-the-raspberry-pi/" rel="bookmark">Nintendo Wii Remote, Python and The Raspberry Pi</a>&#8221; page. This explains how you can connect a Wiimote to your Pi and read the status of its buttons in Python. This opens up a whole world of remote control projects.</p>
<p>The <a title="Using Wiimote Wii remote to control Gertboard and Pi via Bluetooth" href="http://www.youtube.com/watch?v=7EAUJGyVNFUhttp://" target="_blank">YouTube video created by RasPi.TV</a> gives you a taster of the possibilities!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raspberrypi-spy.co.uk/2013/03/top-10-things-to-connect-to-your-raspberry-pi/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
