<?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>The MagPi Magazine</title>
	<atom:link href="https://www.raspberrypi.org/magpi/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.raspberrypi.org/magpi</link>
	<description>The official Raspberry Pi magazine</description>
	<lastBuildDate>Mon, 01 Aug 2016 13:52:00 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.9</generator>
	<item>
		<title>Pi Wars 2017 applications open!</title>
		<link>https://www.raspberrypi.org/magpi/pi-wars-2017-applications-open/</link>
		<comments>https://www.raspberrypi.org/magpi/pi-wars-2017-applications-open/#disqus_thread</comments>
		<pubDate>Mon, 01 Aug 2016 13:52:00 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[pi wars]]></category>
		<category><![CDATA[robots]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2207</guid>
		<description><![CDATA[<p>Get registered for the biggest Raspberry Pi-robot battle around so you can get started on your incredible robots</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/pi-wars-2017-applications-open/">Pi Wars 2017 applications open!</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Pi Wars is the great yearly robot challenge for Raspberry Pi-enthusiasts. You may remember that the next instalment of the mechanical challenge is missing 2016 in favour of a better tournament in April 2017.</p>
<p>For those interested in taking part, applications to enter the challenge are now open and you can get yourself entered by <a href="http://piwars.org/2017-competition/application/">heading to the Pi Wars website</a>. Entries are open until Thursday 22 September and you&#8217;ll be notified if you&#8217;ve been selected on Saturday 1 October.</p>
<p>Pi Wars 2017 will be held during the weekend of 1 April and 2 April 2017, with spectators able to attend and watch the battles as well! Stay tuned for an announcement for when those tickets will go on sale&#8230;</p>
<div id="attachment_1082" style="width: 2010px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/12/DSC_0607.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/12/DSC_0607.jpg" alt="It's great fun at Pi Wars!" width="2000" height="1330" class="size-full wp-image-1082" /></a><p class="wp-caption-text">It&#8217;s great fun at Pi Wars!</p></div>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/pi-wars-2017-applications-open/">Pi Wars 2017 applications open!</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/pi-wars-2017-applications-open/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make with Windows 10 IoT Core in The MagPi 48</title>
		<link>https://www.raspberrypi.org/magpi/windows-10-magpi-48/</link>
		<comments>https://www.raspberrypi.org/magpi/windows-10-magpi-48/#disqus_thread</comments>
		<pubDate>Thu, 28 Jul 2016 08:03:30 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[iot]]></category>
		<category><![CDATA[scratc]]></category>
		<category><![CDATA[windows 10]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2184</guid>
		<description><![CDATA[<p>A new Windows 10 kit is on the horizon for the Raspberry Pi 3, here's how to get a headstart in using Windows 10 on Pi</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/windows-10-magpi-48/">Make with Windows 10 IoT Core in The MagPi 48</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Whenever a new piece of hardware comes out, there&#8217;s always people trying to port or emulate different operating systems onto them. The Raspberry Pi was no different, with several attempts at differing OSs when it was first launched. For over a year now though, Microsoft has officially supported Windows on the Raspberry Pi through Windows 10 IoT Core.</p>
<p>In <a href="https://www.raspberrypi.org/magpi/issues/48/">The MagPi 48</a> we cover the latest developments in Windows 10 IoT Core that have come about since the Raspberry Pi 3 was launched, and how to maker use of them in your own projects. We&#8217;ve also got exclusive news on an upcoming kit specifically for the Raspberry Pi 3 that lets you create amazing projects right out of the box.</p>
<div id="attachment_2186" style="width: 1240px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/issues/48/"><img class="wp-image-2186 size-full" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/ScratchOlympicsspread.png" alt="Compete in the Scratch Olympics. You don't even have to leave your house" width="1230" height="869" /></a><p class="wp-caption-text">Compete in the Scratch Olympics. You don&#8217;t even have to leave your house</p></div>
<p>As well as all the Windows talk, we invite you to take part in the Scratch Olympics, continue building the arcade machine of your dreams, learn about Twitch-controlled robots, and read a review on the long-awaited NatureBytes wildlife camera.</p>
<p><a href="https://www.raspberrypi.org/magpi/issues/48/">The MagPi 48</a> is out today in WH Smith, Tesco, Asda, and Sainsburys in the UK and will be in Microcenters and selected Barnes &amp; Nobles when it comes to America. You can also buy a copy <a href="https://www.raspberrypi.org/magpi/buy-now/">online from our store</a>, or get it digitally on our app that&#8217;s available for <a href="https://itunes.apple.com/us/app/the-magpi-magazine/id972033560">iOS</a> and <a href="https://play.google.com/store/apps/details?id=com.raspberry.magpi">Android</a>.</p>
<p>We hope you enjoy the issue!</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/windows-10-magpi-48/">Make with Windows 10 IoT Core in The MagPi 48</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/windows-10-magpi-48/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AlexaPhone</title>
		<link>https://www.raspberrypi.org/magpi/alexaphone/</link>
		<comments>https://www.raspberrypi.org/magpi/alexaphone/#disqus_thread</comments>
		<pubDate>Wed, 27 Jul 2016 10:49:17 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[alexa]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[retro]]></category>
		<category><![CDATA[vintage]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2175</guid>
		<description><![CDATA[<p>The Raspberry Pi inside this 1970s telephone calls up Amazon’s Alexa voice assistant and gets the answers to almost any question</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/alexaphone/">AlexaPhone</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.instructables.com/member/MisterM/">Martin Manders</a> has a passion for upcycling vintage technology. He’s well-known for using the Raspberry Pi to add ‘smarts’ to classic VCR and radio technology, but his latest project, the AlexaPhone, makes an old telephone ultra-smart with a connection to Amazon’s Alexa voice search system.</p>
<p><em>The full article can be found in <a href="/magpi/issues/47">The MagPi 47</a> and was written by Lucy Hattersley</em></p>
<p>Martin has stripped out a classic 1970s Trimphone and fitted a Raspberry Pi inside. “You lift the handset, speak your query, and the response from Alexa is read out via a built-in speaker,” explains Martin.</p>
<p>Alexa provides users with information on the web via voice search, including weather, news, and vital facts like ‘how old is Graham Norton?’ or ‘why is the sky blue?’. </p>
<p>“She has a fun side too,” Martin tells us, “with a seemingly bottomless selection of dad jokes and preprogrammed responses to odd questions like ‘would you like to build a snowman?’.” Beyond the jokey façade, Alexa also sets timers and reminders, plays music, and reads audiobooks.</p>
<div id="attachment_2177" style="width: 656px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/image2_alexa.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/image2_alexa.jpg" alt="Some of the many parts packed into the phone. Apart from the pirate" width="646" height="1024" class="size-full wp-image-2177" /></a><p class="wp-caption-text">Some of the many parts packed into the phone. Apart from the pirate</p></div>
<p>“I have a real weakness for retro design,” says Martin, “especially telephones and televisions.” The Trimphone was the height of technology in the 1970s, replacing the bell ring of classic phones with an electronic warbler. “I think I picked it up at a car boot sale in Brighton about 15 years ago,” he recalls. “It proved perfect for the AlexaPhone project, as the internal wiring has convenient modern ribbon cables for connection to the Raspberry Pi.”</p>
<p>Martin used an old USB internet phone to connect the Trimphone’s microphone to the Raspberry Pi. A cheap portable speaker is stripped down and fitted inside to play back the responses.</p>
<p>“After some digging around, I came across Sam Machin’s excellent <a href="https://github.com/sammachin/AlexaPi">AlexaPi code on GitHub</a>,” reveals Martin. “It offers Alexa integration for the Raspberry Pi with a physical button connected to the GPIO pins.</p>
<div id="attachment_2178" style="width: 1510px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/anno_alexa.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/anno_alexa.jpg" alt="It&#039;s a very tight fit for everything in the phone" width="1500" height="912" class="size-full wp-image-2178" /></a><p class="wp-caption-text">It&#8217;s a very tight fit for everything in the phone</p></div>
<p>“The AlexaPhone started out as a quick distraction,” he continues, “but was so much fun to build it just took over. “I got the AlexaPi software fully working on my Raspberry Pi 3 in the workshop, then repeated all the steps, removing cables as it gradually became wireless-enabled and headless. Getting all of the components to fit inside the phone body was a bit of a tight squeeze, but with some liberal plastic trimming it came together in the end.”</p>
<p>The only thing Martin updated was the name of an MP3 file in the script. This was a straightforward change so that the AlexaPhone would sound its signature Trimphone ringtone on boot instead of Alexa’s usual chirpy ‘Hello!’.</p>
<p>“I’ve found it accurate, the voice recognition is good, and even when I’ve stumbled over words, Alexa usually figures out what was said. I have it on my office desk and use it nearly every day, sometimes to get information, but often just asking questions out of curiosity to see whether Alexa will understand them. She’s particularly good at maths as well, so the AlexaPhone comes in handy for double-checking the kids’ homework answers.”</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/alexaphone/">AlexaPhone</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/alexaphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack a  remote control with Pi Zero</title>
		<link>https://www.raspberrypi.org/magpi/hack-a-remote-control-with-pi-zero/</link>
		<comments>https://www.raspberrypi.org/magpi/hack-a-remote-control-with-pi-zero/#disqus_thread</comments>
		<pubDate>Tue, 26 Jul 2016 09:48:16 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Step by Step]]></category>
		<category><![CDATA[pi zero]]></category>
		<category><![CDATA[rc car]]></category>
		<category><![CDATA[remote control]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2169</guid>
		<description><![CDATA[<p>Control an Arduino-powered custom Lego car with a simple remote control and a Raspberry Pi Zero</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/hack-a-remote-control-with-pi-zero/">Hack a  remote control with Pi Zero</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Ever wanted to use a Raspberry Pi to remotely control an Arduino, but using something smaller and more portable than a keyboard? Here we’ll show you how to add a Pi Zero and wireless radio to a controller from an RC toy, turning it into a versatile and customisable project controller!</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a> and was written by James Lacey</em></p>
<h3>You&#8217;ll need</h3>
<p>Large RC car controller</p>
<p><a href="https://www.wirelessthings.net/slice-of-radio-wireless-rf-transciever-for-the-raspberry-pi">Slice of Radio</a></p>
<p><a href="https://www.wirelessthings.net/xinorf-100-arduino-uno-r3-based-dev-board-with-radio-transceiver">XinoRF</a></p>
<p><a href="http://www.maplin.co.uk/p/ultramax-1800mah-power-bank-blue-n24ek">USB power bank</a></p>
<p><a href="http://www.maplin.co.uk/p/ultra-miniature-toggle-switch-spst-fh97f">Toggle switch</a></p>
<p>Hook-up wire</p>
<p>Micro USB cable</p>
<p><strong>STEP-01</strong> Prepare the controller</p>
<p>Open up the controller by removing any screws and plastic retention clips. Locate and remove the main PCB of the controller. You will see contacts on the PCB, which the joysticks or buttons on the controller touch to send signals to the integrated circuit (IC) on the board. Using a multimeter, you should be able to follow each contact to a pin on the main IC. On this controller there are four contacts, so four IC pins should be found and labelled.</p>
<p><strong>STEP-02</strong> Remove the main IC</p>
<p>The IC will probably be soldered to the PCB, so cut off all the legs with pliers and desolder all the legs from the board. Now is also the time to remove other large components from the PCB that may interfere with the placement of the Pi Zero. Remembering which pin hole connects to which IC, solder differently coloured wires to each hole and the other half of the contacts (which are usually connected via a common trace). It’s now time to prepare the Pi Zero.</p>
<p><strong>STEP-03</strong> Preparing the Raspberry Pi</p>
<p>Solder on only the first ten pins of a male GPIO header to the Pi Zero, so the serial pins are populated with connectors. Leave the rest of the GPIO holes unpopulated so you can solder on the pin connectors. Prepare a microSD card with Raspbian Jessie Lite on it, then connect to an HDMI monitor, mains power, and a keyboard to run raspi-config. Next, get the code from the <a href="https://github.com/jameslacey/carcontroller/blob/master/control.sh">GitHub repository</a> and place it in your home directory.</p>
<p><strong>STEP-04</strong> Wiring up the Pi</p>
<p>If you are using the code without alterations, solder the contact for the forward position to GPIO 27, the backward contact to GPIO 22, the right contact to GPIO 23, and the left contact to GPIO 24. Connect the other half of each contact to a 3.3V pin. Bend over the wires so they are as flush with the PCB as possible, so you can still attach the Slice of Radio transceiver. Turn on the Pi and run the code; the HDMI monitor should display no signal, and the LEDs on the Slice of Radio should flash when you move the levers.</p>
<div id="attachment_2171" style="width: 1510px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/controllerinside.jpg"><img class="size-full wp-image-2171" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/controllerinside.jpg" alt="The Pi Zero fits neatly inside" width="1500" height="1125" /></a><p class="wp-caption-text">The Pi Zero fits neatly inside</p></div>
<p><strong>STEP-05</strong> Running the code at boot</p>
<p>Edit the /boot/cmdline.txt file to include the line &#8220;init=/home/pi/filename-of-code.sh&#8221;. Verify that the code is correct and chmod +x the script. This is your last chance to change anything – the Pi will not boot to a terminal again without manual editing of cmdline.txt. Disconnect your HDMI monitor and keyboard, then reboot the Pi Zero. The LEDs on the Slice of Radio should flash to show that data is being transmitted.</p>
<p><strong>STEP-06</strong> Fitting the Pi in the controller</p>
<p>You may have to use a Dremel tool or wirecutters/pliers to remove parts of the internal structure of the controller, so that the Pi fits. We had to remove most of the battery compartment. After fitting, check that all the wires are still securely attached to the Pi and the controller. Test the controller again, ensuring the LEDs flash. You’ve completed most of the controller, but if you have sufficient space available, continue to the next step to get rid of that annoying power cable.</p>
<p><strong>STEP-07</strong> Fitting the battery</p>
<p>Prise the two halves of the power bank apart with a knife or screwdriver. You should see a cylindrical battery and a small PCB with a USB and micro USB socket. Remove these from the housing and desolder the large USB socket from the board. Using a multimeter, find and label the positive pad that the USB socket was soldered to. Cut off the large USB plug from the micro USB cable, then solder the red wire to the positive pad and the black wire to a terminal of the switch. Connect the other terminal to the negative pad on the PCB. Make a hole in the controller for the micro USB connector and glue it in place. You’re done!</p>
<h3>Code listing</h3>
<p></p><pre class="crayon-plain-tag">#!/bin/bash
# put this code in /etc/rc.local to execute at boot
mount /dev/mmcblk0p2 / -o remount,ro # prevent SD card corruption by mounting read-only
mount proc /proc -t proc # as this is executed just after the kernel has finished booting, /proc doesn't exist. This creates it.
tvservice -o # Turn off HDMI
stty -F /dev/ttyAMA0 9600 # set the baudrate of the Slice of Radio
gpio -g mode 27 down # configure internal pull ups
gpio -g mode 22 down
gpio -g mode 23 down
gpio -g mode 24 down
TTY=/dev/ttyAMA0 
while true; do
A=0 
B=0
C=0
D=0
[[ $(gpio -g read 27) == 1 ]] &amp;&amp; A=1 # forward  
[[ $(gpio -g read 22) == 1 ]] &amp;&amp; B=2 # backward
[[ $(gpio -g read 23) == 1 ]] &amp;&amp; C=4 # right
[[ $(gpio -g read 24) == 1 ]] &amp;&amp; D=8 # left
SWSTATE=$(($A+$B+$C+$D))
case $SWSTATE in
0)
echo "aAASTOP-----" &gt; $TTY # stop and center, as there is no input on any switch
echo "aAACENTER---" &gt; $TTY
sleep 0.5
;;
1)
echo "aAAFORWARD--" &gt; $TTY
echo "aAACENTER---" &gt; $TTY
;;
2)
echo "aAABACKWARD-" &gt; $TTY
echo "aAACENTER---" &gt; $TTY
;;
4)
echo "aAASTOP-----" &gt; $TTY
echo "aAARIGHT----" &gt; $TTY
;;
5)
echo "aAAFORWARD--" &gt; $TTY
echo "aAARIGHT----" &gt; $TTY
;;
6)
echo "aAABACKWARD-" &gt; $TTY
echo "aAARIGHT----" &gt; $TTY
;;
8)
echo "aAASTOP-----" &gt; $TTY
echo "aAALEFT-----" &gt; $TTY
;;
9)
echo "aAAFORWARD--" &gt; $TTY
echo "aAALEFT-----" &gt; $TTY
;;
10)
echo "aAABACKWARD-" &gt; $TTY
echo "aAALEFT-----" &gt; $TTY
;;
*)
echo "DEBUG: $SWSTATE" # print to a debug terminal if there is an unknown option
;;
esac
done</pre><p></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/hack-a-remote-control-with-pi-zero/">Hack a  remote control with Pi Zero</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/hack-a-remote-control-with-pi-zero/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RasPiO Pro HAT review</title>
		<link>https://www.raspberrypi.org/magpi/raspio-pro-hat-review/</link>
		<comments>https://www.raspberrypi.org/magpi/raspio-pro-hat-review/#disqus_thread</comments>
		<pubDate>Mon, 25 Jul 2016 08:38:53 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[GPIO]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[raspio]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2165</guid>
		<description><![CDATA[<p>Is this electronics prototyping HAT the easiest-to-use ever?</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspio-pro-hat-review/">RasPiO Pro HAT review</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>One obstacle that newcomers to Raspberry Pi physical computing come up against is trying to figure out which pin does what on the Pi’s GPIO header, particularly since they’re not labelled. Previous solutions have included printing out a GPIO pin reference guide on such items as rulers and key-rings. Alternatively, users could just refer to an online diagram, such as at <a href="http://pinout.xyz/">pinout.xyz</a>. Even then, you still need to count down the two lines of pins on the Pi to locate the one required, which increases the chance of a potentially damaging wiring mistake.</p>
<p><em>The full article can be found in <a href="/magpi/issues/47">The MagPi 47</a> and was written by Phil King</em></p>
<p>Enter the <a href="http://rasp.io/prohat/">RasPiO Pro HAT</a>. Designed by Alex Eames of <a href="http://raspi.tv/">RasPi.TV</a>, it makes using the GPIO pins a whole lot easier. Around the edges of its built-in breadboard are female header sockets connected to the Pi’s GPIO pins, arranged and labelled in numerical (BCM) order. So, for instance, if you want to hook up a component to GPIO 18, you simply plug its jumper wire into that labelled socket: no more pin-counting! Nor is any extra software required. The HAT works perfectly with GPIO Zero, as well as other libraries. It’s such as simple solution, it’s a wonder no one’s thought of it before.</p>
<p>The third female header comprises six extra connections apiece for 3V3 and GND; this comes in handy, since the mini 72-point breadboard doesn’t feature the ‘+’ and ‘–’power rails of larger versions. In addition, you won’t need quite so many jumper wires to power/ground all your components as they are, in effect, wired straight to the relevant GPIO pins. You may need to stock up on a few more male-to-male cables, though.</p>
<p>The other big advantage of the RasPiO is that it makes prototyping a lot safer, since a protection circuit with a 330Ω resistor and 3V3 Zener diode is built into each GPIO port. This means that you can use LEDs without extra resistors, and you won’t damage your Pi’s GPIO by wiring something up incorrectly, although you still need to take care not to directly short 3V3 or 5V power to GND! One side effect of this protection circuitry is that some components requiring more than the 10mA limit, such as buzzers, may be underpowered; fortunately, a line of unprotected through-hole ports is included for this purpose.</p>
<h3>Last word</h3>
<p>5/5</p>
<p>The RasPiO Pro HAT really does make electronics easier, eliminating the need for counting GPIO pins while also protecting them against incorrect wiring. About the only drawback is a lack of room on its half-size breadboard, but if you do need extra space for components, you could easily hook it up to another breadboard.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspio-pro-hat-review/">RasPiO Pro HAT review</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/raspio-pro-hat-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mod Minecraft Pi with our latest Essentials books</title>
		<link>https://www.raspberrypi.org/magpi/mod-minecraft-pi-with-our-latest-essentials-books/</link>
		<comments>https://www.raspberrypi.org/magpi/mod-minecraft-pi-with-our-latest-essentials-books/#disqus_thread</comments>
		<pubDate>Fri, 22 Jul 2016 08:38:20 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[essentials]]></category>
		<category><![CDATA[minecraft]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2161</guid>
		<description><![CDATA[<p>Make games, transform your Minecraft world, give Steve super powers, and have Steve interact with the real world in Hacking and Making with Minecraft</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/mod-minecraft-pi-with-our-latest-essentials-books/">Mod Minecraft Pi with our latest Essentials books</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>We&#8217;re back again with yet another amazing book in our Essentials series. We know you love them, and we also know that a lot of you love Minecraft. So here is Hacking and Making with Minecraft, the best place to learn about how to mod Minecraft Pi using the power of code.</p>
<p><a href="https://www.raspberrypi.org/magpi/issues/essentials-minecraft-v1/">Hacking and Making with Minecraft</a> is out this very second for you to go and get online.</p>
<div id="attachment_2162" style="width: 1128px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/MinecraftSplat.png"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/MinecraftSplat.png" alt="Stay fresh with this Minecraft version of Splatoon" width="1118" height="793" class="size-full wp-image-2162" /></a><p class="wp-caption-text">Stay fresh with this Minecraft version of Splatoon</p></div>
<p>Packed into its pages, which you can <a href="https://raspberrypi.org/magpi-issues/Essentials_Minecraft_v1.pdf">download for free as a PDF</a>, are a load of chapters based on articles in the magazine, as well as plenty of brand new tutorials created by the Minecraft Pi Mastermind himself, <a href="http://www.stuffaboutcode.com/">Martin O&#8217;Hanlon</a>. You may have heard of him – he helped get the <a href="https://astro-pi.org/competition/winners/#spacecraft">SpaceCRAFT</a> code working that was run on the International Space Station by Tim Peake!</p>
<p>Here&#8217;s some of the amazing things you&#8217;ll find in the 13 chapters squeezed into the book:</p>
<ul>
<li>Play the game and write your first program</li>
<li>Learn how to control blocks using code</li>
<li>Create your first mini games</li>
<li>Interact with the GPIO pins through Minecraft</li>
<li>Control Minecraft with Node-RED and Sonic Pi</li>
<li>And lots more exciting stuff!</li>
</ul>
<p>We reckon it will help improve your coding skills, which you should remember when your parents start asking why you&#8217;re playing a bit more Minecraft than usual.</p>
<p>You can buy <em>Hacking and Making with Minecraft</em> in our app for <a href="https://play.google.com/store/apps/details?id=com.raspberry.magpi">Android</a> and <a href="https://itunes.apple.com/us/app/the-magpi-magazine/id972033560">iOS</a>, as well as grabbing <a href="https://raspberrypi.org/magpi-issues/Essentials_Minecraft_v1.pdf">the free PDF</a>. Print versions are coming soon too.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/mod-minecraft-pi-with-our-latest-essentials-books/">Mod Minecraft Pi with our latest Essentials books</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/mod-minecraft-pi-with-our-latest-essentials-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fish-eye</title>
		<link>https://www.raspberrypi.org/magpi/fish-eye/</link>
		<comments>https://www.raspberrypi.org/magpi/fish-eye/#disqus_thread</comments>
		<pubDate>Thu, 21 Jul 2016 13:37:09 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[aquarium]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[fish]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2153</guid>
		<description><![CDATA[<p>There’s something fishy about Thomas Hudson’s new monitor. We investigate the display that’s also an aquarium</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/fish-eye/">Fish-eye</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>We adore this hybridised fish-tank and LCD screen. Known as the ‘Fish-eye’, the project was build by <a href="http://thomashudson.org/">Thomas Hudson</a>, a developer at the Oregon Museum of Science &#038; Technology.</p>
<p>The Fish-eye is a fascinating creature. Unexpectedly, the LCD monitor is situated at the front of the tank, and the Raspberry Pi software superimposes the fish onto the display. “A Raspberry Pi Camera Module sits on top of the fish tank, looking down,” explains Thomas.</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a> and was written by Lucy Hattersley</em></p>
<p>Fish have a tranquil, calming effect, and watching them glide serenely around a tank while you work is awesome. And if you want to watch space fish, then the Earth or Moon make great fishy backdrops.</p>
<p>“I built the tank out of acrylic using acrylic glue,” Thomas tells us. “It is amazing stuff: fairly toxic, but it welds the acrylic together so it is watertight.</p>
<p>“The monitors were free,” he adds. “One from a free box on the sidewalk and another from a friend. Everyone is getting rid of 19-inch monitors right now.”</p>
<div id="attachment_2155" style="width: 1510px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/Step2_FishEye.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/Step2_FishEye.jpg" alt="A closer look at the setup on its side" width="1500" height="1120" class="size-full wp-image-2155" /></a><p class="wp-caption-text">A closer look at the setup on its side</p></div>
<p>With the custom tank constructed, Thomas stripped down the LCD screen and fixed it to the front of the fish tank.</p>
<p>“The camera captures live video of the fish from the top view and streams it live to the LCD on the front of the tank. So when you’re looking at the front of the tank, you are looking at both live video of the fish from the top view while watching the ‘real’ fish as seen through the LCD screen.”</p>
<p>The Fish-eye uses quite a bit of bit of software to achieve its unique effect. It runs a picture program called Feh (feh.finalrewind.org) to flash full-screen images of space fish on the Moon. <a href="http://elinux.org/Omxplayer">Oxmplayer</a> is used to show the live stream and also recorded video of the fish. Finally, the Raspberry Pi runs a surveillance script based on <a href="https://github.com/dozencrows/motion/tree/mmal-test">Motion MMAL</a> to identify moving fish and attach bubbles to those fish displayed on the live video feed.</p>
<p>“I worked on the project for about a month,” reveals Thomas. “Two shows were happening, so I made two Fish-eyes. One [was] for an annual electronics art exhibition called ByteMe! 5.0; the second was for the Portland Winter Light Festival.”</p>
<p>This intersection of moving life and still pixels gave the project its artistic message. “It was important for something to [be] living in the box,” explains Thomas. “This is juxtaposed against how much time we spend staring at a ‘box’ that is not living, and is very much dead, with the exception of all those electrons buzzing through them and the cold emitting light.”</p>
<div id="attachment_2156" style="width: 1510px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/step3_fisheye.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/step3_fisheye.jpg" alt="Fish on the moon sounds like a song idea" width="1500" height="1120" class="size-full wp-image-2156" /></a><p class="wp-caption-text">Fish on the moon sounds like a song idea</p></div>
<p>The Fish-eye was retired after the Portland Winter Light Festival was over, and the goldfish returned to a regular tank. “It was a sculptural piece,” says Thomas. “I feel that kids got it right away. They loved the idea of ‘fish on the Moon’ and ‘fish in space’.</p>
<p>“I think there is something very beautiful about having depth to your monitor. You can still focus on your work, as the screen is crystal clear.” Indeed, we think the Fish-eye is a fabulous display.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/fish-eye/">Fish-eye</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/fish-eye/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Command line Pi</title>
		<link>https://www.raspberrypi.org/magpi/command-line-pi/</link>
		<comments>https://www.raspberrypi.org/magpi/command-line-pi/#disqus_thread</comments>
		<pubDate>Fri, 15 Jul 2016 11:18:16 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Walkthrough]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[task manager]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2140</guid>
		<description><![CDATA[<p>As close to perfect as Raspbian is, things can go wrong. In this tutorial, we learn that there’s no need to turn the Raspberry Pi off and on again: just kill the process!</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/command-line-pi/">Command line Pi</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Ever lost the ‘off switch’ for a program? Sometimes software you’re running seems to have no inclination to stop: either you can’t find out how to quit, or the app has a problem and won’t respond to your <strong>q</strong>, <strong>CTRL+C</strong>, or whatever command should close it down.</p>
<p>There’s no need to panic, and certainly no need to reboot: just identify the process and quietly kill it. We’ll show you how, and look at what else can be done with knowledge of processes.</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a> and was written by Richard smedley. If you like this tutorial, you can find more in our Essentials book, <a href="/magpi/issues/essentials-bash-vol1/">Conquering the Command Line</a></em></p>
<div id="attachment_699" style="width: 410px" class="wp-caption aligncenter"><a href="/magpi/issues/essentials-bash-vol1/"><img class="wp-image-699" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Bash-Vol-1-Cover1.jpg" alt="Conquer the command line on your Raspberry Pi" width="400" height="568" /></a><p class="wp-caption-text">Conquer the command line on your Raspberry Pi</p></div>
<h3>Processes</h3>
<p>Find the many processes running on your Pi with the <strong>ps</strong> command. On Raspbian, it’s usually called with the <strong>a</strong> and <strong>x</strong> switches which give all processes, rather than just those belonging to a user, the <strong>u</strong> switch shows processes by user, attaching it to a <strong>tty</strong>. <strong>w</strong> adds wider output, and <strong>ww</strong> will wrap over the line end to display information without truncating.</p>
<p>Type <strong>ps auxww</strong> to see, then try with just <strong>a</strong> or other combinations. You’ll notice that these options work without the leading dash seen for other commands. Both the lack of dashes, and the letters <strong>a</strong> and <strong>x</strong>, date back to the original Unix ps of the early 1970s; this was maintained through various revisions by one of Unix’s two family branches, <strong>BSD</strong>, and baked into the first GNU/Linux ps. Unix’s other branch, System V, extended and changed ps with new options and new abbreviations for command switches, so for <strong>ps ax</strong> you may also see <strong>ps -e</strong> (or <strong>-ef</strong> or <strong>-ely</strong> to show in long format).</p>
<p>The <strong>ps aux</strong> listing has various headers, including the <strong>USER</strong> which owns the process, and the <strong>PID</strong> (process identification number). This starts with 1 for init, the parent process of everything that happens in userspace after the Linux kernel starts up when you switch the Pi on. Knowing the <strong>PID</strong> makes it easy to kill a process, if it’s the easiest way of shutting it down. For example, to kill a program with a <strong>PID</strong> of 3012, simply enter <strong>kill 3012</strong>. To quickly find the process in the first place, use <strong>grep</strong> on the ps list. For example, locating vi processes:</p><pre class="crayon-plain-tag">ps aux | grep -i vi</pre><p>The <strong>-i</strong> (ignore case) isn’t usually necessary, but occasionally a program may break convention and contain upper-case letters in its file name. You can also use <strong>killall</strong> to kill by program name; for example, with <strong>killall firefox</strong>.</p>
<h3>Piping commands</h3>
<p>Naturally, you can pipe ps’s output to select the PID and feed directly to the kill command:</p><pre class="crayon-plain-tag">kill $(ps aux | grep ‘[f]irefox’ | awk ‘{print $2}’)</pre><p>We don’t have space for an in-depth look at <strong>awk</strong> (we’re using it here to print the second field of grep’s output, the <strong>PID</strong>), but the <strong>[f]</strong> trick at the beginning of Firefox (or whatever named process you want to kill) singles out the Firefox process. In the vi example above, grep found the grep process itself as well as vi (and anything with the letter sequence vi in its name).</p>
<p>The output of ps also shows you useful information like percentage of memory and CPU time used, but it’s more useful to see these changing in real time. For this, use <strong>top</strong>, which also shows total CPU and memory use in the header lines, the latter in the format that you can also find by issuing the command <strong>free</strong>. For an improved top:</p><pre class="crayon-plain-tag">apt-get install htop</pre><p><strong>htop</strong> is scrollable, both horizontally and vertically, and allows you to issue commands (such as <strong>k</strong> for kill) to highlighted processes. When you’ve finished, exit both top and htop with <strong>q</strong>, although in htop you may care to practise by highlighting the htop process and killing it from there (see below). htop also shows load over the separate cores of the processor if you have a Pi 2 or 3.</p>
<div id="attachment_2143" style="width: 1029px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/htop.jpg"><img class="size-full wp-image-2143" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/htop.jpg" alt="htop tells you what’s running, what resources it’s using, and lets you interact with the process, even killing htop from within htop" width="1019" height="711" /></a><p class="wp-caption-text">htop tells you what’s running, what resources it’s using, and lets you interact with the process, even killing htop from within htop</p></div>
<h3>Background job</h3>
<p>Placing an ampersand after a command in the shell places the program in the background – try with: <strong>man top &amp;</strong> and you’ll get an output like <strong>[1] 12768</strong>.</p>
<p>The first number is a job number, assigned by the shell, and the second the PID we’ve been working with above. man top is now running in the background, and you can use the job control number to work with the process in the shell. Start some other processes in the background if you wish (by appending &amp;), then bring the first – man top – to the foreground with <strong>fg 1</strong>. Now you should see man running again.</p>
<p>You can place a running shell program in the background by ‘suspending’ it with <strong>CTRL+Z</strong>. fg will always bring back the most recently suspended or backgrounded job, unless a job number is specified. Note that these job numbers apply only within the shell where the process started. Type <strong>jobs</strong> to see background processes; <strong>jobs -l</strong> adds in process IDs (PIDs) to the listing.</p>
<h3>Signals</h3>
<p>When we sent a kill signal from htop, we were given a choice of signal to send. The most important are <strong>SIGTERM</strong>, <strong>SIGINT</strong>, and <strong>SIGKILL</strong>. The first was the default when we killed from htop, and is the signal that kill sends if not called with a modifier. It tells a process to stop, and most programs will respond by catching the signal, saving any data they need to save, and releasing system resources before quitting.</p>
<p><strong>kill -2</strong> sends <strong>SIGINT</strong>, the equivalent to stopping a program from the terminal with <strong>CTRL+C</strong>: you could lose data. Most drastic is <strong>kill -9</strong> to send <strong>SIGKILL</strong>, telling the kernel to let the process go with no warning. Save this one for when nothing else works.</p>
<p>Mildest of all is the Hang Up (<strong>HUP</strong>) signal, called with <strong>kill -1</strong>, which many daemons are programmed to treat as a call to simply reread their configuration files and carry on running. It’s certainly the safest signal to send on a critical machine.</p>
<h3>Staying on</h3>
<p>nohup will run a program which will continue after the terminal from which it’s started has closed, ignoring the consequent <strong>SIGHUP (hangup)</strong> signal. As the process is detached from the terminal, error messages and output are sent to the file <strong>nohup.out</strong> in whichever directory you were in when you started the process. You can redirect it, as we did in part 4 (issue 34), with <strong>1&gt;</strong> for stdout and <strong>2&gt;</strong> for <strong>stderr; &amp;&gt;</strong> is a special case for redirecting both <strong>stdout</strong> and <strong>stderr</strong>:</p><pre class="crayon-plain-tag">nohup myprog &amp;&gt;backgroundoutput.txt &amp;</pre><p>One use of <strong>NOHUP</strong> for Pi users is to be able to set something in motion from an SSH session, that will continue after an interruption to that session. For example, restarting the network connection to which you are connected:</p><pre class="crayon-plain-tag">sudo nohup sh -c "ifdown eth0 &amp;&amp; ifup eth0"</pre><p>Note that the <strong>nohup.out</strong> log file created here will need sudo privileges to read – or reassign with:</p><pre class="crayon-plain-tag">sudo chown pi:pi nohup.out</pre><p></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/command-line-pi/">Command line Pi</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/command-line-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ProtoZero review</title>
		<link>https://www.raspberrypi.org/magpi/protozero-review/</link>
		<comments>https://www.raspberrypi.org/magpi/protozero-review/#disqus_thread</comments>
		<pubDate>Thu, 14 Jul 2016 09:35:36 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[breadboard]]></category>
		<category><![CDATA[pi zero]]></category>
		<category><![CDATA[prototyping]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2135</guid>
		<description><![CDATA[<p>An easy-to-use prototyping board with perfect Pi Zero proportions</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/protozero-review/">ProtoZero review</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Breadboards are great for testing out electronics projects, but the end result may well look messy, often featuring a spaghetti-like tangle of jumper wires. Not only that, but such a setup isn’t all that portable, as some loose wires or resistors could easily fall out if you dare to move it. If you’re looking to make your project more permanent and practical, you’ll want to solder the components to a prototyping board like this one.</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a> and was written by Phil King</em></p>
<p>The subject of a successful KickStarter campaign, the <a href="http://www.protoboards.co.uk/2016/01/protozero.html">ProtoZero</a> is the brainchild or Richard Saville, author of the popular <a href="http://www.averagemanvsraspberrypi.com/">Average Man vs Raspberry Pi blog</a>. Resembling the little brother of his previous ProtoPal prototyping board, it’s made of perfboard and is designed to match the dimensions of the Pi Zero perfectly, although it can also be used on any other 40-pin model, including the Pi 3, 2, A+, and B+. While it is can not technically be described as a HAT, as it lacks an EEPROM, the ProtoZero does sit neatly on top of the Pi’s GPIO pins, for which it has two corresponding rows of connector holes with helpful labels. The remaining 154 holes – likewise featuring high-quality ENIG (electroless nickel immersion gold) PCB plating – are arranged in printed lanes of three or four. Components may be soldered to the front or (similarly labelled) rear, if you want to hide unsightly wires and suchlike. Example project ideas include an LED array, temperature monitor, and four-character digital display, but the only limit is your imagination.</p>
<p>Note that since the ProtoZero comes in kit form, you’ll first need to solder the supplied 40-pin GPIO header to the board, but this is no more difficult than doing so for the Pi Zero itself – and you’ll be soldering components to it anyhow. One advantage, as well as reduced cost, is that you may elect to use a stacking header (not supplied) instead, enabling you to stack multiple ProtoZeros and/or HATs.</p>
<p>While some veteran electronics project makers may prefer to create their own custommade prototyping boards from inexpensive perfboard, the ProtoZero is ideal for lessexperienced users who want to take their projects one step up from the breadboard. With its perfectly rounded edges and matching form factor, it also gives a professional look to Pi Zero projects.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/protozero-review/">ProtoZero review</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/protozero-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4bot</title>
		<link>https://www.raspberrypi.org/magpi/4bot/</link>
		<comments>https://www.raspberrypi.org/magpi/4bot/#disqus_thread</comments>
		<pubDate>Wed, 13 Jul 2016 12:03:00 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[connect 4]]></category>
		<category><![CDATA[lego]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[robot]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2129</guid>
		<description><![CDATA[<p>A robot that plays Connect 4 against a human opponent thanks to a bit of maths and code</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/4bot/">4bot</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>You may have seen computers that can defeat grandmasters at chess, win at trivia game shows or, more recently, beat a human at Go, but have you ever played Connect 4 against a robot? Humour us by answering no (statistically speaking, you probably haven’t) and then prepare to be amazed at the 4bot created by David Pride.</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a></em></p>
<p>The 4bot has humble beginnings, as David explains its origins to us:</p>
<p>“My wife bought me the brilliant MeArm kit and I used it to build a Lego block sorter, as you do. This used the Pi Camera Module and a colour recognition script I wrote in Python to identify the different coloured blocks, and then used the arm to drop them in the correct ‘buckets’.”</p>
<p><iframe width="500" height="281" src="https://www.youtube.com/embed/FJ8WV1uLhFA?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>“Based on this, I was then looking for other uses for the colour-capture code,” David continues. “Connect 4 seemed like a really good choice. Research soon led me to find that the game, and the logic behind it, is far from simple. There is good information online; however, whilst I found many versions of Connect 4 for Python, few of them ran successfully on the Pi.”</p>
<p>The robot works by taking a picture of the game board, processing the colours, and then giving the game program the state of the board to calculate the next move.</p>
<p>“In terms of how well it plays, Connect 4 is a ‘perfect’ game in mathematical terms,” David reveals. “There are a huge but finite number of solutions, and they can all be calculated with enough processing power. The trade-off is in the depth of search and therefore the time taken to calculate each move… If you increase the search depth, this massively increases the calculation time. So I selected a middle ground where the bot plays a pretty meangame, but the total time per move is still acceptable. With capturing and processing the image, calculating the next move, and delivering thecounter, the total time per turn is around 25 seconds.”</p>
<div id="attachment_2131" style="width: 1510px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/4botplay.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/4botplay.jpg" alt="Eben has a bit of fun at the big birthday bash" width="1500" height="1125" class="size-full wp-image-2131" /></a><p class="wp-caption-text">Eben has a bit of fun at the big birthday bash</p></div>
<p>Recognising the colours currently in play is not easy, though, and took a bit of trial and error to get right.</p>
<p>“The trickiest part was undoubtedly capturing the game board accurately every time,” David tells us. “It is extremely lightdependent, as the Python module works by capturing the RGB value of the 42 spaces on the board. These values, however, do change dramatically depending on the lighting. I wrote a ‘testcard’ script that can be run with counters in known locations. This script then reports back what it thinks it sees, and the tolerances for the RGB components can then be adjusted until the result matches what is actually there on the real game board. This made the game more portable, as it can be adjusted to its surroundings each time.”</p>
<p>Current upgrades for the robot involve a stronger frame, as it came in for heavy use at the fourth Pi birthday party. Maybe it’s time to bring robot Connect 4 battles to the next Pi Wars?…</p>
<p><iframe width="500" height="281" src="https://www.youtube.com/embed/rbFIqerYCKc?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/4bot/">4bot</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/4bot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi night vision camera hack</title>
		<link>https://www.raspberrypi.org/magpi/raspberry-pi-night-vision-camera-hack/</link>
		<comments>https://www.raspberrypi.org/magpi/raspberry-pi-night-vision-camera-hack/#disqus_thread</comments>
		<pubDate>Tue, 12 Jul 2016 09:30:38 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Step by Step]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[night-vision]]></category>
		<category><![CDATA[noir]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2121</guid>
		<description><![CDATA[<p>Have a spare Raspberry Pi Model B lying about? Turn it into a night-vision CCTV camera with this simple case hack…</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspberry-pi-night-vision-camera-hack/">Raspberry Pi night vision camera hack</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Many people have a number of Raspberry Pis at home. Some might say those folks are obsessed, but Pis are so versatile that trying out new projects where possible is great fun! Putting them to good use is always exciting, so why not turn a spare Model B into a night-vision CCTV camera, using an inexpensive case, the Camera Module, and a nifty little accessory called the Lisiparoi to provide infrared lighting? If you saw the previous guide on adding push notifications to MotionEyeOS (issue 43), then combining this with night vision would be a great addition!</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a> and was written by <a href="http://www.raspberrycoulis.co.uk/">Wesley Archer</a></em></p>
<h3>You&#8217;ll need</h3>
<p><a href="https://shop.cyntech.co.uk/products/lisiparoi-led-light-ring-for-raspberry-pi-camera?variant=1312264744">Lisiparoi LED light ring (infrared version)</a><br />
<a href="https://shop.cyntech.co.uk/collections/sale/products/berryblack">Cyntech Raspberry Pi case</a><br />
Raspberry Pi NoIR Camera Module<br />
USB WiFi adapter<br />
<a href="https://github.com/ccrisan/motioneyeos/wiki/Supported-Devices">MotionEyeOS</a><br />
Drill and small drill bit (1mm or 2mm ideal sizes)<br />
Small file (we used a metal nail file)<br />
Pencil and a sharp knife (craft or Stanley knife)</p>
<p><strong>STEP-01</strong> Mark where you will cut</p>
<p>Before cutting into the case, it makes things easier to mark it out first. Grab your pencil, place your Camera Module and Lisiparoi on the case, and then draw around them. You should be able to see the pencil line, and it’s easy to remove if you need to. Make sure you allow enough room around the outside so that it’s not too close to the edge of the case, though! You’ll also need to cut out space for the pins on the Lisiparoi, holes to mount the Camera Module board, and a hole for the camera lens itself.</p>
<p><strong>STEP-02</strong> Drill the mounting holes</p>
<p>Using a small drill bit (1mm / 2mm is ideal), drill two small holes in the case. If you are very careful, you can use the Lisiparoi as a template. You should now have two small holes in the case and a pencilled outline of the Lisiparoi. It’s now time to drill holes for the header pins, which are a few millimetres away from the bottom edge of the Lisiparoi. It’s best to start small and increase the size of the holes as you go; it doesn’t have to be exact, as the Lisiparoi will hide everything once in place.</p>
<p><strong>STEP-03</strong> Drill, file, test, and repeat</p>
<p>Whilst doing this, remember – you can always cut more off! To make sure our header pins on the Lisiparoi fit nicely, we drilled the holes to the approximate width of the header and then used a small file to square off the holes. We then placed the Lisiparoi in place to see if it fit; if it didn’t, a little more was filed off until it did. It doesn’t have to be surgically accurate, since the Lisiparoi sits on top of the holes; even so, take your time, as you can’t undo a hole if it’s too big!</p>
<p><strong>STEP-04</strong><br />
Raspberry Pi NoIR Camera Module<br />
It’s now time to mark and cut a hole for the Camera Module. Again, we drew around the module with a pencil and then drilled small holes along the inside edge of the outline (otherwise the hole will be too big). Next, very carefully use a sharp knife to cut out the hole; the drilled holes along the outline should help with this step. Make sure this is done on a tough, steady surface (we used an old chopping board). Fine-tune the fit by filing the hole and testing that the Camera Module fits. Repeat until it does.</p>
<p><strong>STEP-05</strong> Put everything together</p>
<p>Now that the holes are all cut and fit nicely, it’s time to put everything together. Make sure you’ve soldered the header onto your Lisiparoi first, though! The header needs to be soldered so the pins are on the inside of the case and pointing downwards, so that the jumper cables can be fitted to the Pi’s GPIO once fully assembled. Screw your nuts and bolts together and connect up your cables, including the ribbon cable for the Camera Module. For more information on using the Lisiparoi, including wiring diagrams, check out the <a href="http://www.lisiparoi.com/how-to-use/">official site</a>.</p>
<p><strong>STEP-06</strong> Install MotionEyeOS and test everything</p>
<p>If you have connected the Lisiparoi so that it turns on whenever the Pi does, then you just need a CCTV operating system. MotionEyeOS is perfect for this, because it’s simple to use and works very well! Download the <a href="https://github.com/ccrisan/motioneyeos/wiki/Supported-Devices">relevant image</a>, then write it to your SD card. You won’t be able to see if the infrared LEDs are on, but test it out in the dark and you should see more than you would normally without them! As the LEDs are small, they’re not very powerful, but should provide enough illumination to see better in the dark!</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspberry-pi-night-vision-camera-hack/">Raspberry Pi night vision camera hack</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/raspberry-pi-night-vision-camera-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LiV Pi review &#8211; air-quality monitoring</title>
		<link>https://www.raspberrypi.org/magpi/liv-pi-review/</link>
		<comments>https://www.raspberrypi.org/magpi/liv-pi-review/#disqus_thread</comments>
		<pubDate>Mon, 11 Jul 2016 08:57:46 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[air quality]]></category>
		<category><![CDATA[hong kong]]></category>
		<category><![CDATA[liv pi]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2117</guid>
		<description><![CDATA[<p>A powerful air quality monitor made for the modern and slightly polluted world, powered by Raspberry Pi</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/liv-pi-review/">LiV Pi review &#8211; air-quality monitoring</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Coming from Hong Kong, the <a href="http://www.livpi.com/">LiV Pi</a> is a curious, Raspberry Pi-compatible product. Marketed somewhat as a device for businesses to keep an eye on the air quality inside their buildings, it’s a product that’s been created mainly to suit the situation in Hong Kong. The city has some serious air pollution problems, which you can read more about elsewhere. So, with that and general building safety in mind, it does start to make more sense.</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a></em></p>
<p>What the LiV Pi boils down to is a large, colourful acrylic case with a two-line LCD display on the front. Inside, you’re supposed to install a Raspberry Pi along with the specially provided add-on board that functions almost like a HAT. This HAT allows you to plug in some supplied sensors and a real-time clock, and then you’re basically ready to go.</p>
<p>LiV Pi ships with three main sensors: a carbon dioxide (CO2) sensor, a temperature/humidity sensor, and an air pressure sensor. The CO2 sensor is the main component here, and the LiV Pi team explain on their website that a rise in CO2 levels in the air is a good indication of air quality, since it’s likely to have bought much nastier air with it. The humidity and temperature sensor allows you to keep track of the environment indoors in other ways, and it sounds like the barometric pressure sensor was thrown into the system just because they could.</p>
<p>There’s some fun to be had constructing the full LiV Pi. On the website, you can buy a bare-bones kit of the sensors and board (pre-soldered or not). Alternatively, you can get the full version with a case, which is what we’re looking at here. The price does seem quite steep; $350 for the full LiV Pi is not an easy number to swallow, although it’s not ‘targeted’ towards consumers per se.</p>
<p>The construction is quite simple. With the full kit you get the acrylic case, which almost snaps together and is made up of six pieces. The snapping isn’t very firm, so there are screws and spacers to keep it together, making it fairly easy to assemble and disassemble when needed. This version also comes with everything already soldered up on the boards. Then again, there’s not a huge amount of soldering to be done with the basic kit version (from $35): the odd resistor and connector is all that’s required, with the trickiest bit being the 40‑pin connector for the GPIO.</p>
<p>Once the case is together, it’s just a matter of plugging the sensors into the correct ports, putting a battery in the RTC, and hooking it up to the LCD screen. The guides online and the markings on the boards show more than enough to do this accurately. Finally, you’ll need to install an SD card with the custom LiV Pi image before packing it all in the case. With the full pre-soldered kit this is all quite quick; in fact, writing the SD card will take longer than constructing the rest, so you should probably get that started beforehand.</p>
<p>The software requires a bit of setup to get working at full capacity. You need to make sure it has a network connection and that the hardware clock is working, and you can also set up email and other message alerts. This does allow you to keep the LiV Pi in its box most of the time, though; you can dial in with a browser to view data and get email updates about the current readings instead of manually plugging it back into a monitor. The whole system is pretty complete and is continually getting updates; at the time of writing, they had recently added Raspberry Pi 3 support and have even begun selling the full kit with a Pi 3. So, for the moment, it’s well supported and with upgrades to come in the future.</p>
<p>However good it is, with decent sensors and good software to keep an eye on them, we do wonder how useful a device this will be. We can definitely report that it does what it sets out to do: it monitors the air, and it does it well. If this is something you or a business have been looking for, then it’s definitely worth a look due to its extra network connectivity and customisation over other solutions.</p>
<h3>Last word</h3>
<p>4/5</p>
<p>It has very limited uses and is quite expensive, but the design is good and it does what it sets out to do very well. Building it is pretty fun, too.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/liv-pi-review/">LiV Pi review &#8211; air-quality monitoring</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/liv-pi-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scott TV</title>
		<link>https://www.raspberrypi.org/magpi/scott-tv/</link>
		<comments>https://www.raspberrypi.org/magpi/scott-tv/#disqus_thread</comments>
		<pubDate>Fri, 08 Jul 2016 09:10:45 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[autism]]></category>
		<category><![CDATA[kodi]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2108</guid>
		<description><![CDATA[<p>One MagPi reader has built a customised television that his autistic son can use unaided</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/scott-tv/">Scott TV</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Having a child with autism isn’t easy. Alain Mauer’s son, Scott, can’t make eye contact and doesn’t talk. He also requires constant supervision.</p>
<p>“Communication with Scott is very difficult,” says Alain. “He understands us, but can’t tell us what he wants. You can’t leave him alone for a single second.</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a> and was written by Lucy Hattersley</em></p>
<p>“But from time to time he has to stay in his room,” adds Alain. The answer was to make Scott’s bedroom “Scottcompatible! You can lock everything from the wardrobe to the window, and we’ve installed a camera in the wardrobe too.”</p>
<p>But this isn’t much fun for Scott. He doesn’t like staying alone in his room and finds it boring. “He doesn’t play with toys or use his imagination to play. But we know that he likes cartoons with music,” reveals Alain. </p>
<p>“Scott had a 32-inch TV in his room because he loves to watch cartoons, but one day he destroyed it. So we tried another one with a Plexiglass sheet in front of it, but he tried to destroy it too.” </p>
<div id="attachment_2110" style="width: 853px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/ScottTV_Main.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/ScottTV_Main.jpg" alt="The insides of the Scott TV are mostly empty due to the small size of the components" width="843" height="1342" class="size-full wp-image-2110" /></a><p class="wp-caption-text">The insides of the Scott TV are mostly empty due to the small size of the components</p></div>
<p>Alain started to wonder if the problem wasn’t the television, but what was playing. “He has no ability to tell us, or to stop it, on his own,” explains Alain. “So he gets frustrated, and tapping against the noisy thing is his only way of stopping it.”</p>
<p>The answer was to build a television that was Scott-proof, and the result is Scott TV: an unbreakable television with the screen hidden inside. Six large, easily bashable buttons start and stop cartoons playing. A Raspberry Pi – tucked safely inside the wooden case – powers the whole project.</p>
<p>Built out of 18mm multiplex wood, the Scott TV case houses the television, but it still needs protection. A sheet of 8mm Plexiglass in front of the display is the solution. “It wasn’t complicated to build,” says Alain. “With a jigsaw, a drill machine, and a little table saw, all is possible.</p>
<p>“The Raspberry Pi is the main part of the project. Normally, I tell everybody that the Pi is optimised for controlling stuff and not as a media player. But I was wrong: it plays full HD videos.”</p>
<p>The Scott TV has six large buttons, handbuilt by Alain with piezo switches on the inside. “The buttons were the challenge,” says Alain, “but you can use any kind of buttons.”</p>
<div id="attachment_2111" style="width: 1609px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/ScottTV_Image2.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/ScottTV_Image2.jpg" alt="The finished product, an indestructible cartoon-playing machine" width="1599" height="901" class="size-full wp-image-2111" /></a><p class="wp-caption-text">The finished product, an indestructible cartoon-playing machine</p></div>
<p>The menu displays previews from six cartoons (one next to each button). If Scott pushes a button, the cartoon starts playing. If he pushes any button when a movie is playing, it returns to the menu screen.</p>
<p>“I used NOOBS to install Arch Linux. For [a] console-based media player, I used Omxplayer. I then used Python 3.5 to write the scripts. I’m not a Linux expert or a programmer, so Google was my friend. The scripts are available on <a href="https://github.com/awall9999/ScottTV">GitHub</a>.</p>
<p>“Since it was set up in his room, Scott likes to stay longer and push the buttons,” Alain tells us. “Sometimes he sits in front of the media player and just looks at the animated menu, or he plays the Twinkle Twinkle Little Star video ten times and laughs. To see him so happy was the biggest thank you from him to me.”</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/scott-tv/">Scott TV</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/scott-tv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free-falling with Sense HAT</title>
		<link>https://www.raspberrypi.org/magpi/sense-hat-gravity/</link>
		<comments>https://www.raspberrypi.org/magpi/sense-hat-gravity/#disqus_thread</comments>
		<pubDate>Thu, 07 Jul 2016 10:01:24 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Walkthrough]]></category>
		<category><![CDATA[gravity]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[sensehat]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2099</guid>
		<description><![CDATA[<p>Why do astronauts on the ISS float? Find out with our experiments into gravity</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/sense-hat-gravity/">Free-falling with Sense HAT</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Ask most people why astronauts like Tim Peake float around on the International Space Station and there is a good chance they’ll say, “Because there is no gravity.” If you think about it, this can’t be the case. The ISS orbits the planet at 400km, but the Moon is nearly 100 times further away and is still subject to Earth’s gravitational pull. So why are astronauts weightless? It’s because the ISS is constantly in free fall, and so the astronauts living inside it experience weightlessness.</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a> and was written by Richard Hayler. If you like this tutorial, you can find more in our Essentials book, <a href="/magpi/issues/essentials-sense-hat-v1/">Experiment with Sense HAT</a></em></p>
<div id="attachment_1313" style="width: 410px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/issues/essentials-sense-hat-v1/"><img class="wp-image-1313" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/01/Essentials_SenseHAT_Cover.jpg" alt="Essentials_SenseHAT_Cover" width="400" height="567" /></a><p class="wp-caption-text">Experiment with a Sense HAT to find out more about the world around you</p></div>
<p>This can be difficult to wrap your head around, so we’ll use the Sense HAT to explain it.</p>
<h3>You&#8217;ll need</h3>
<p><a href="https://www.raspberrypi.org/products/sense-hat/">A Sense HAT</a></p>
<p>Python 3 sense_hat, <a href="https://pypi.python.org/pypi/evdev">evdev</a> &amp; select libraries</p>
<p>Something to provide a soft landing</p>
<p>A charged power bank</p>
<p>If you’ve been following the previous Sense HAT Science articles, this should all be familiar now: attach the Sense HAT to your Pi and power it up. Open IDLE3, or just type python3 in a terminal window, and then import the SenseHat library and connect to the board:</p><pre class="crayon-plain-tag">from sense_hat import SenseHat
sh = SenseHat()</pre><p>There are a number of ways we can measure motion, forces, and orientation with the Sense HAT: it has a gyroscope, magnetometer, and an accelerometer. We’re going to use the accelerometer, and the line of code we need probably won’t be a surprise:</p><pre class="crayon-plain-tag">sh.get_accelerometer_raw()</pre><p>We’re using _raw() as it returns results in Gs. One G is equal to the force of gravity on the Earth’s surface (9.8m/s), and you often hear jet planes, spacecraft, and even roller-coasters described in terms of how many Gs their riders experience.</p>
<p>The three values measured by the Sense HAT – x, y, and z – correspond to the pitch, roll, and yaw axes. If we run the following Python snippet:</p><pre class="crayon-plain-tag">while True:
   print(sh.get_accelerometer_raw())</pre><p>…then we should see a continuous stream of the x, y, and z values displayed on screen. Jiggle and wiggle the Pi and Sense HAT around and see how the numbers change. Can you carefully move the Pi so that just one of the axis values changes?</p>
<h3>Taking readings</h3>
<p>For our experiment, we need to able to record x, y, and z readings constantly and save them to a file so that we can analyse them later. To make things easier (and to make our data file smaller), we will use the joystick to start and stop recording. There are several ways of doing this with Python, but the code uses the evdev library to register joystick presses.</p>
<p>To run the experiment, power the Pi up from a battery pack and secure the two together using rubber bands or cable ties. Start the code and then disconnect the keyboard, mouse, and display cables.</p>
<p>Now find somewhere from where you can drop the Pi. The greater the distance it falls, the easier it is to see the free-fall period. However, don’t forget that you need a big, soft landing zone!</p>
<p>When you’re ready, press the joystick and you should see the 8×8 LED matrix light up all green. That means data is being recorded, so bombs away! Once the Pi has landed, press the joystick again to end the logging (the LEDs should briefly flash red, then turn off completely).</p>
<h3>Analysing the data</h3>
<p>For the data analysis, we can also use the Pi. Plug all the cables back in and start up LibreOffice Calc. The code conveniently writes the data into a CSV format that can easily be ingested by this (or any other) spreadsheet program, which can be used to plot graphs of our data.</p>
<p>From the graph, you should see that before the drop, the Sense HAT accelerometer measures approximately +/-1G, then falls/rises to 0 while it is falling. You’ll probably also see the ‘bump’ corresponding to the landing (hopefully not too big).</p>
<p>So, now we’ve shown that a falling object will experience zero G, we can see why astronauts on the ISS appear to float. However, if the ISS is constantly falling, why doesn’t it just crash into the Earth? This is because the Space Station is also moving ‘forward’ at a speed fast enough to ensure that it keeps missing the Earth and stays (falling) in orbit.</p>
<p>You can, of course, use the Sense HAT to measure forces greater than 1G, too. Try taking your portable Pi and Sense HAT on a playground ride or, for some serious Gs, a theme park attraction. If you’re going to take your Pi and battery pack on a roller-coaster, though, make sure it is securely stowed away in a zippable pocket!</p>
<h3>Code listing</h3>
<p><a href="https://github.com/topshed/SenseHatSci-Gravity">Download gravity.py</a> or type it up from below</p><pre class="crayon-plain-tag">from sense_hat import SenseHat
from datetime import datetime
import sys
from time import sleep
from evdev import InputDevice, ecodes, list_devices
from select import select
import logging

# Use the logging library to handle all our data recording
logfile = “gravity-”+str(datetime.now().strftime(“%Y%m%d-%H%M”))+”.csv”
# Set the format for the timestamp to be used in the log filename
logging.basicConfig(filename=logfile, level=logging.DEBUG,
	format=’%(asctime)s %(message)s’)

def gentle_close(): # A function to end the program gracefully
	sh.clear(255,0,0) # Turn on the LEDs red
	sleep(0.5) # Wait half a second
	sh.clear(0,0,0) # Turn all the LEDs off
	sys.exit() # Quit the program

sh = SenseHat() # Connect to SenseHAT
sh.clear() # Turn all the LEDs off
# Find all the input devices connect to the Pi
devices=[InputDevice(fn) for fn in list_devices()]
for dev in devices:
	# Look for the SenseHAT Joystick
	if dev.name==”Raspberry Pi Sense HAT Joystick”:
		js=dev
# Create a variable to store whether or not we’re logging data
running = False # No data being recorded (yet)
try:
	print(‘Press the Joystick button to start recording.’)
	print(‘Press it again to stop.’)
	while True:
		# capture all the relevant events from joystick
		r,w,x=select([js.fd],[],[],0.01)
		for fd in r:
			for event in js.read():
				# If the event is a key press...
				if event.type==ecodes.EV_KEY and event.value==1:
					# If we’re not logging data, start now
					if event.code==ecodes.KEY_ENTER and not running:
						running = True # Start recording data
						sh.clear(0,255,0) # Light up LEDs green 
					# If we were already logging data, stop now
					elif event.code==ecodes.KEY_ENTER and running:
						running = False
						gentle_close()
		# If we’re logging data...
		if running:
			# Read from acceleromter
			acc_x,acc_y,acc_z = [sh.get_accelerometer_raw()[key] for key in [‘x’,’y’,’z’]]
			# Format the results and log to file
			logging.info(‘{:12.10f}, {:12.10f}, {:12.10f}’.format(acc_x,acc_y,acc_z))
			print(acc_x,acc_y,acc_z) # Also write to screen except: # If something goes wrong, quit
	gentle_close()</pre><p></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/sense-hat-gravity/">Free-falling with Sense HAT</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/sense-hat-gravity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RoboHAT review</title>
		<link>https://www.raspberrypi.org/magpi/robohat-review/</link>
		<comments>https://www.raspberrypi.org/magpi/robohat-review/#disqus_thread</comments>
		<pubDate>Wed, 06 Jul 2016 09:10:14 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[motorboard]]></category>
		<category><![CDATA[robot]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2095</guid>
		<description><![CDATA[<p>A full-sized Raspberry Pi robotics controller and the bigger sibling of the Picon Zero. Should this be your controller of choice?</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/robohat-review/">RoboHAT review</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Another month, another robot board for your Raspberry Pi; this time we’re looking at the <a href="http://4tronix.co.uk/store/index.php?rt=product/product&#038;product_id=547">RoboHAT</a> from 4tronix, basically a bigger version of the Picon Zero we looked at last issue. This board is designed to work with all 40-pin Raspberry Pis (so no original Model A or B, sadly) and as it’s a HAT, it attaches neatly on top of a compatible Raspberry Pi without hanging off the sides.</p>
<p>Like the Picon Zero, the RoboHAT comes with an amazing number of inputs, outputs, and general robot connections to make use of. It all comes presoldered on a very sturdy piece of PCB, so you’re ready to start using it right away. On the board are the requisite DC motor screw terminals; the RoboHAT comes with two, enabling it to control two motors. There’s a set of pins forconnecting the popular HC-SR04 ultrasonic distance sensor, and a mixture of ten input and output pins, along with a series of I2C breakout pins. It’s powered by a DC jack that can also handily power the Raspberry Pi while in use, cutting down on power inputs.</p>
<p>It’s all more spread out than on the Picon Zero, so the board becomes a bit less of a mess when everything is connected up and in use. There are also custom Python scripts and libraries to get it all working, making programming very easy. For example, importing the robohat module allows for robohat.forward() to move the robot forward. There are many examples included to get your head around how the library works, and they’re all very easily installed using the instructions on the <a href="http://4tronix.co.uk/blog/?p=1196">4tronix blog</a>.</p>
<p>It’s a good board for novices and also some advanced users, allowing you to take the skills you may have learnt from a very simple kit and apply them to a custom project of your own design quite easily. It’s easy to find out which GPIO pin controls which aspect, so you can create further custom code if that’s your thing, making it fairly open and versatile. It’s also a pretty good price at only £20.</p>
<h3>Last word</h3>
<p>5/5</p>
<p>A well-designed robot HAT that works very well with the Raspberry Pi and many common robotics components. Definitely worth a look if you’re planning to advance your Raspberry Pi robotics.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/robohat-review/">RoboHAT review</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/robohat-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi Coffee Roaster</title>
		<link>https://www.raspberrypi.org/magpi/raspberry-pi-coffee-roaster/</link>
		<comments>https://www.raspberrypi.org/magpi/raspberry-pi-coffee-roaster/#disqus_thread</comments>
		<pubDate>Tue, 05 Jul 2016 08:35:49 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[coffee]]></category>
		<category><![CDATA[roaster]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2088</guid>
		<description><![CDATA[<p>Want to up your coffee-making game even further? Make a cheap yet accurate coffee roaster, like Mark Sanders did, for a better cup</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspberry-pi-coffee-roaster/">Raspberry Pi Coffee Roaster</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Making a truly good cup of coffee takes a lot of effort. Essential oils evaporate from ground coffee within minutes, so pre-ground coffee is out. Boiling water will burn the coffee as it’s brewed, so you need it at about 80-85°C. Grind size, exact weights, precise timing, brewing method: all of it is important when making coffee. Possibly the most extreme step you can take is to roast your own beans to make sure they’re fresh and to your own requirements, and this is what Mark Sanders has found himself doing.</p>
<p>“While in search of quality coffee, I stumbled upon a webpage that suggested home roasting as a source of tasty coffee,” Mark tells us. “Getting started is as simple as purchasing a used popcorn popper from the local thrift store for $4-$8.”</p>
<div id="attachment_2090" style="width: 1954px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/coffee1.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/coffee1.jpg" alt="The electronics needed to roast some coffee" width="1944" height="2592" class="size-full wp-image-2090" /></a><p class="wp-caption-text">The electronics needed to roast some coffee</p></div>
<p>Popcorn poppers are popular among home-roasters, as they stir the beans while very hot air blows on them – very similar to commercial coffee roasters. There was a small problem, though, according to Mark:</p>
<p>“It roasted the coffee too fast, as I frequently finished roasts in under five minutes [when they should take 7-12]. In order to slow the roast down, I would unplug the popper for 30-second intervals. This grew tiresome and I started to ponder how I could add temperature control to the popper. This was the beginning of my Raspberry Pi project.”</p>
<p>The solution is familiar to those who have tried (or at least seen) sous vide projects: controlling the heating apparatus. In this case, Mark cannibalised the parts from the popper and used them in another vessel.</p>
<div id="attachment_2091" style="width: 925px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/step2.png"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/step2.png" alt="Controlling the temperature via a browser is very easy" width="915" height="587" class="size-full wp-image-2091" /></a><p class="wp-caption-text">Controlling the temperature via a browser is very easy</p></div>
<p>“I took the heater and fan from a popper and added several other components to create a temperature-controlled coffee roaster,” Mark explains. “A thermocouple was added to measure the temperature inside the roasting chamber. A GPIO pin was connected to an AC relay that allowed the Raspberry Pi to control the popper’s heater. I developed a web interface to set the temperature and save roast data for archiving. The web interface shows the current temperature using an analogue dial gauge, as well as a chart that graphs the temperature for the entire roast. For some extra flair, four LEDs were added to the front of the roaster to simulate a flame when the heater is turned on.”</p>
<p>A full list of parts and instructions to build a roaster yourself is <a href="http://coffeehacks.blogspot.co.uk/2016/02/electric-lights-and-fire-elf-raspberry.html">available online</a>. The build is quite fiddly, with a lot of soldering and patience required, according to Mark. However, the results speak for themselves:</p>
<p>“[The roaster] has completed over 20 roasts and it has worked very well. I’m able to control the temperature throughout the entire roast process, log notes about the roast, and save the roast data for reference later. It’s much better than unplugging and plugging in the popper by hand.”</p>
<div id="attachment_2092" style="width: 1610px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/coffee2.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/coffee2.jpg" alt="Roast it, grind it, brew it" width="1600" height="1200" class="size-full wp-image-2092" /></a><p class="wp-caption-text">Roast it, grind it, brew it</p></div>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspberry-pi-coffee-roaster/">Raspberry Pi Coffee Roaster</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/raspberry-pi-coffee-roaster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Jenkins build status light</title>
		<link>https://www.raspberrypi.org/magpi/build-status-light/</link>
		<comments>https://www.raspberrypi.org/magpi/build-status-light/#disqus_thread</comments>
		<pubDate>Mon, 04 Jul 2016 12:10:56 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Step by Step]]></category>
		<category><![CDATA[jenkins]]></category>
		<category><![CDATA[status light]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2081</guid>
		<description><![CDATA[<p>Jenkins is a great tool to monitor code quality. For greater visibility of the build status, you can build an awesome tower light that uses it</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/build-status-light/">Create a Jenkins build status light</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Imagine being able to show the status of your Jenkins projects to anyone in the same room without the hassle of logging in to the dashboard. With some LEDs, a few other cheap components, and some soldering skills, you can complete this project. You can take it to the next level, however, by using an industrial tower light instead of regular LEDs. Employing an existing API, you can retrieve almost any data from Jenkins and get a nice visual indicator of the status of your project.</p>
<h3>You&#8217;ll need</h3>
<p>IRLB8721 MOSFETs</p>
<p>220-ohm resistors</p>
<p><a href="https://www.adafruit.com/products/2993">12V DC tower light</a></p>
<p>12V power supply and jack</p>
<p>12V to USB converter</p>
<p><a href="https://www.adafruit.com/products/2310">Perma-Proto HAT</a></p>
<p>Micro-USB to Ethernet adaptor</p>
<p>Miscellaneous other parts</p>
<p><strong>STEP-01</strong> Make a HAT</p>
<p>First, we need to create the HAT. We used a Perma-Proto board from Adafruit, but you can also use a breadboard if you don’t want a permanent solution. In this version, the following GPIO pins were used, since they best fit the layout:</p>
<p>Pin 18: Red<br />
Pin 23: Buzzer<br />
Pin 24: Yellow<br />
Pin 27: Green</p>
<p>You can use the GPIO output voltage in combination with a MOSFET and a resistor to switch 12V safely to the LEDs. There’s also a 12V to USB converter to power the Raspberry Pi from the barrel jack, and a small power switch.</p>
<div id="attachment_2086" style="width: 1555px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/tower-light_bb.png"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/tower-light_bb.png" alt="The fritzing diagram for a breadboard" width="1545" height="1524" class="size-full wp-image-2086" /></a><p class="wp-caption-text">The fritzing diagram for a breadboard</p></div>
<p><strong>STEP-02</strong> The Python Jenkins-API</p>
<p>You need to start off with a clean Raspbian Jessie image (not the Lite version) and a Raspberry Pi Zero (make sure to solder the GPIO header pins!). After you have burned the image and completed the basic setup, make sure to set up an internet connection. You can either use a standard WiFi dongle or a micro‑USB to Ethernet adaptor. Once you are ready, proceed with the installation of the Jenkins API. In the terminal window, enter the following command:</p><pre class="crayon-plain-tag">sudo apt-get install python-jenkinsapi</pre><p><strong>STEP-03</strong> Create the Python script</p>
<p>Most of the coding work has already been done for you and is available on GitHub. To get everything you need for this project, clone the project from GitHub on your Raspberry Pi by using the following command in your terminal:</p><pre class="crayon-plain-tag">git clone https://github.com/BramDriesen/rpi-jenkins-tower-light.git</pre><p>Make sure to clone the project in a directory where you can easily find it afterwards, such as the home directory. You can use cd [folder]/[name] and cd ../ commands to navigate through folders in your terminal. You can also download a ZIP file of the source code <a href="https://github.com/BramDriesen/rpi-jenkins-tower-light/releases">from the versions page</a>.</p>
<p><strong>STEP-04</strong> Configure the code</p>
<p>Now we have cloned the project, we’ll browse into the directory to configure the Python script. Copy the default configuration file default-config.py and rename it to config.py. You can use the command cp default-config.py config.py to do this all in one go. After you have copied the file, edit it with your favorite text editor; we like to use nano, so in this case we’d issue the command nano settings.py. Now change the default configuration lines so it contains your credentials, job name(s), and correct GPIO pins according to your situation. If you have only one job, make sure the jobs parameter remains an array with one item inside.</p>
<p><strong>STEP-05</strong> Auto-run on boot</p>
<p>Since we’re working on a permanent solution, we want to ensure that our script launches immediately on boot. We can edit our rc.local file to launch the script when the Raspberry Pi is booted up. Edit your rc.local file with sudo nano/etc/rc.local and add the following line to direct the script to auto-start upon boot:</p><pre class="crayon-plain-tag">python /path/to/the/script/rpi-jenkins-tower-light/jenkinslight.py &amp;</pre><p>Reboot your Pi and you should be good to go! For maintenance, you can always SSH into the Raspberry Pi in the future.</p>
<h3>Code listing</h3>
<p></p><pre class="crayon-plain-tag"># Default configuration file for Jenkins
# Copy this file and name it config.py
jenkinsurl = "http://example-url.com:8080"
username = "your-username"
password = "your-password"
jobs = ['job-name-1', 'job-name-2']
gpios = {
    'red': 18,
    'buzzer': 23,
    'yellow': 24,
    'green': 27,
}</pre><p></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/build-status-light/">Create a Jenkins build status light</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/build-status-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu MATE (16.04) Review</title>
		<link>https://www.raspberrypi.org/magpi/ubuntu-mate-review/</link>
		<comments>https://www.raspberrypi.org/magpi/ubuntu-mate-review/#disqus_thread</comments>
		<pubDate>Fri, 01 Jul 2016 09:31:11 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[mate]]></category>
		<category><![CDATA[raspbian]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2068</guid>
		<description><![CDATA[<p>Ubuntu 16.04 LTS runs really well on the Raspberry Pi using the lightweight MATE desktop environment</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/ubuntu-mate-review/">Ubuntu MATE (16.04) Review</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>With its 1.2GHz processor, plus WiFi and Bluetooth, the Raspberry Pi 3 has the chops to match some laptops. This speed boost has thrown new light on alternatives to Raspbian, the officially supported operating system.</p>
<p>On Intel-based desktops, Ubuntu is one of the biggest names in Linux. Canonical, the maker of Ubuntu, has just released version 16.04 LTS of the Ubuntu operating system. Surely this would be a splendid time to get Ubuntu on the Raspberry Pi?</p>
<p><em>The full article can be found in <a href="/magpi/issues/46">The MagPi 46</a> and was written by Lucy Hattersley</em></p>
<p>This is where <a href="http://ubuntu-mate.org/">Ubuntu MATE</a> steps in. Ubuntu MATE isn’t quite the full edition of Ubuntu: it swaps out the Unity desktop interface for a lighter version known as ‘MATE’.</p>
<p>Ubuntu MATE for the Raspberry Pi was developed by Martin Wimpress and Rohith Madhavan, and it intersects nicely with the recently released Raspberry Pi 3. Ubuntu MATE is built on the brand new 16.04 LTS edition, but with an older and less demanding interface. Sounds perfect, right?</p>
<p>We found the installation to be a relative breeze, although a 16GB microSD card was required (the instructions hint that you might want to use one). When you start up Ubuntu MATE, a welcome screen offers specific Raspberry Pi information. Here you can resize the file system to use the full space on the SD card (rather than the default 3.9GB image size).</p>
<h3>A familiar MATE</h3>
<p>MATE is a slicker interface than LXDE (the desktop included with Raspbian). While the two are functionally similar in many ways, MATE has rounded windows and more colourful buttons. It’s also vastly more customisable, with a range of preferences to change how it looks and works. A MATE Tweak setting enables you to determine the appearance and included elements for the desktop, interface, and windows.</p>
<p>Ubuntu MATE comes packaged with a comprehensive set of default programs. Caja is the default file management app, which is on a par with PCMan, although not as feature-rich as Nautilus (included with the desktop version of Ubuntu). Pluma is the default text editor; again, we find this slightly more stylish than LeafPad, although both are basic as regards functionality.</p>
<p>Beyond this, you get the LibreOffice suite and Firefox web browser. Programming is covered with Scratch, IDLE, and Sonic Pi. One area where it excels is multimedia, with big-name apps like Rhythmbox, VLC media player, and Shotwell working out of the box.<br />
Although you get access to the Ubuntu repository in Ubuntu MATE, you don’t get access to the Raspbian repository by default (and so we needed to add it from magpi.cc/24IM2D8). </p>
<p>It’s a good idea to manage your expectations on software. You still only get access to AArch32 (ARMv7) software, not Intel i86 packages. Programs like VirtualBox, Minecraft Java, and Adobe Flash remain out of reach.</p>
<p>While Ubuntu has a lot of consumer software, Raspbian has better programming tools in the box: Blue J Java, Node-RED, and a free version of Mathematica (software that costs £190 on other Linux operating systems). </p>
<div id="attachment_2071" style="width: 1930px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/Ubuntu_Firefox.png"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/Ubuntu_Firefox.png" alt="Firefox is the web browser of choice for Ubuntu MATE" width="1920" height="1080" class="size-full wp-image-2071" /></a><p class="wp-caption-text">Firefox is the web browser of choice for Ubuntu MATE</p></div>
<h3>An educational OS</h3>
<p>Raspbian remains a much better choice for learning the nuts and bolts of programming, thanks to its wider range of coding programs. This is also because Raspbian features in so many tutorials, while Ubuntu MATE leaves you to figure things out.</p>
<p>It’s not a complete loss. Ubuntu MATE comes with RPI.GPIO and gpiozero installed, and we found it just as easy to get an LED blinking in Ubuntu as Raspbian.</p>
<p>Even so, with most tutorials aimed at Raspbian users, you’d be better off sticking with the official distro for education and learning.</p>
<p>We put both Raspbian and Ubuntu MATE through a series of speed tests to determine which has the edge for performance.</p>
<p>Our first test was a stopwatch for startup (from the time the power was connected to the point you can click and get a response from the menu). We disabled the welcome screen on Ubuntu MATE and turned on automatic login. Ubuntu MATE started up in 39.59 seconds while Raspbian was ready in 20.91 (almost twice as fast).</p>
<p>The slower performance extended to opening apps. LibreOffice took 9.18 seconds to start in Raspbian, and 16.25 seconds in MATE.</p>
<p>We installed HardInfo on both operating systems and ran a series of system benchmarks with the winners in bold:</p>
<div id="attachment_2073" style="width: 398px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/UbuntuMATEbench.png"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/07/UbuntuMATEbench.png" alt="The winners of each test are in bold" width="388" height="525" class="size-full wp-image-2073" /></a><p class="wp-caption-text">The winners of each test are in bold</p></div>
<p>Raspbian was faster in every test apart from CPU CryptoHash, where having a higher score is better (and the 0.3-second difference seems negligible to us).</p>
<p>Having said that, Ubuntu MATE is perfectly usable on the Raspberry Pi, and we had no problem running multiple apps and programs. If your focus is to run a Raspberry Pi as a regular computer, then Ubuntu MATE has a lot to offer over Raspbian.</p>
<h3>Last word</h3>
<p>4/5</p>
<p>While Raspbian remains a better choice for project building and education, we have oodles of admiration for this fully rounded desktop operating system running on the Raspberry Pi 3 microcomputer.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/ubuntu-mate-review/">Ubuntu MATE (16.04) Review</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/ubuntu-mate-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Blast off with The MagPi 47 Astro Pi special!</title>
		<link>https://www.raspberrypi.org/magpi/magpi-47-astro-pi/</link>
		<comments>https://www.raspberrypi.org/magpi/magpi-47-astro-pi/#disqus_thread</comments>
		<pubDate>Thu, 30 Jun 2016 10:06:04 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[astro pi]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[poster]]></category>
		<category><![CDATA[tim peake]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2064</guid>
		<description><![CDATA[<p>Read about Tim Peake's life on the ISS as well as the results of the Astro Pi experiments in the latest   MagPi, complete with an exclusive Tim Peake poster and Astro Pi mission patch!</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/magpi-47-astro-pi/">Blast off with The MagPi 47 Astro Pi special!</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>We&#8217;ve been following Tim Peake&#8217;s adventures in space closely in The MagPi for the last six months, especially all the excellent work he&#8217;s been doing with the Astro Pis running code from school students across the UK. Tim returned to Earth a couple of weeks ago so we thought we&#8217;d celebrate in <a href="/magpi/issues/47/">The MagPi 47</a> with a massive feature about his time in space, along with the results and future of Astro Pi…</p>
<p>The space celebration doesn&#8217;t stop there, print copies of <a href="/magpi/issues/47/">The MagPi 47</a> come with an exclusive Astro Pi mission patch and an exclusive Tim Peake Astro Pi poster!</p>
<div id="attachment_2059" style="width: 1201px" class="wp-caption aligncenter"><a href="/magpi/issues/47/"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/06/014-015_TheMagPi47-SAMPLE.jpg" alt="The results of what Tim, Ed, and Izzy have been up to for the past six months" width="1191" height="842" class="size-full wp-image-2059" /></a><p class="wp-caption-text">The results of what Tim, Ed, and Izzy have been up to for the past six months</p></div>
<p>The issue also has our usual range of excellent tutorials, from programming dinosaurs to creating motion-sensor games and optical illusions. We also have the hottest news on high-altitude balloons and how you can get involved sending a Pi to the edge of space, as well as the details on the next Pi Wars Pi-powered robot competition.</p>
<p>You can get your latest space-worthy issue instore from WH Smith, Tesco, Sainsburys, and Asda. It&#8217;s also available in print on our <a href="https://thepihut.com/products/the-magpi-47">online store</a>. If you prefer digital, it&#8217;s ready to download on the <a href="https://play.google.com/store/apps/details?id=com.raspberry.magpi">Android</a> and <a href="https://itunes.apple.com/us/app/the-magpi-magazine/id972033560">iOS</a> app.</p>
<p>Want to make sure you never miss an issue? <a href="/magpi/subscribe/">Subscribe today</a> and start with issue 47 to not only get the poster and mission patch but also a Pi Zero bundle featuring the new, camera-enabled Pi Zero and a cable bundle that includes the camera adapter.</p>
<p>This is not the end of Astro Pi, only the beginning.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/magpi-47-astro-pi/">Blast off with The MagPi 47 Astro Pi special!</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/magpi-47-astro-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Submersible drone, powered by Pi</title>
		<link>https://www.raspberrypi.org/magpi/submersible-drone-powered-by-pi/</link>
		<comments>https://www.raspberrypi.org/magpi/submersible-drone-powered-by-pi/#disqus_thread</comments>
		<pubDate>Wed, 29 Jun 2016 12:38:57 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[drone]]></category>
		<category><![CDATA[submarine]]></category>
		<category><![CDATA[submersible]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=2051</guid>
		<description><![CDATA[<p>Rather than taking to the skies like most Pi-powered drones, this ingenious ROV dives beneath the surface for some underwater exploration</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/submersible-drone-powered-by-pi/">Submersible drone, powered by Pi</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>A keen scuba diver and RC model maker, Niels Affourtit had always been fascinated by the possibility of building a remote-control submarine, but was deterred due to the expense and the potential for leakages. When he saw footage of a VideoRay underwater ROV (remotely operated vehicle) in 2014, however, his enthusiasm was rekindled and he set out to see if it was feasible to build a <a href="https://www.raspberrypi.org/blog/submersible-raspberry-pi-drone/">video ROV of his own</a>.</p>
<p>“When I started Googling, it was the first time I read about the Raspberry Pi,” Niels tells us.“When I found out that the Pi can control servos and ESCs (electronic speed controllers) directly via PWM, has the option for a camera, and has a low power consumption, I realised it was a perfect platform for my ROV.”</p>
<p>Naturally, a waterproof hull would also be required. Niels constructed his in just 15 hours using PVCu, similar to drainpipe material. Indeed, the closure is a standard connection for pressure piping, while Niels cut out its transparent screen with a router. The use of brushless motors also helped greatly: “Since the motors are running in water, there are no moving parts through the hull and leakage is almost impossible.” The only parts that pass through the hull are wires for the motors, lights, echosounder, depth and temperature sensors, and communication with a laptop.</p>
<p>Since high-frequency wireless signals can’t penetrate water, while low-frequency ones are too slow to send live video, the ROV is tethered to its laptop controller via a long cable. “From <a href="http://www.openrov.com/">OpenROV</a>, I learned to modify a specific Ethernet-over-power adaptor, which reduces the standard four-wire patch cable to only two and makes the wire very insensitive to interference and bad connections. The cable is now 100 metres long, but the maximum reach of the adaptors is in the order of 300m.”</p>
<div id="attachment_2054" style="width: 1510px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/06/Main-pic-for-annos.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/06/Main-pic-for-annos.jpg" alt="Live video and sensor data are viewed on a tethered laptop" width="1500" height="1125" class="size-full wp-image-2054" /></a><p class="wp-caption-text">Live video and sensor data are viewed on a tethered laptop</p></div>
<h3>3D-printed parts</h3>
<p>For the propellers and Pi camera tilt system, Niels drafted designs in AutoCAD and 3D-printed them with an Inno3D printer borrowed from a neighbour. “I have experience in 3D drawing via my work [as an engineer for offshore pipelines], so that is an advantage.”</p>
<p>Niels’s background in mechanical engineering also came in useful for assembling the electrical components, as did his experience with Python and Linux machines for programming the sensors. Even so, he found the process a real challenge, taking around 200 hours in total. “Every step in the design, you search for solutions and you have to select the best option.” It wasn’t without its setbacks, either: “I burned quite [a few] parts, too, and some stuff I learned by trial and error. I managed to solder a LiPo [12V battery] connector the wrong way and the connector vaporised when I connected it to another LiPo by accident… No injuries, luckily.”</p>
<p>Tucked safely inside the hull, the Raspberry Pi reads commands sent from the laptop via Ethernet, and controls the ROV’s brushless motors via ESCs. A single servo is used to tilt the Pi camera up and down. All the sensors are connected via I2C, except the depth sensor and MaxBotix echosounder (to determine the height above the seabed). “For these, I attached an Arduino via USB to the Pi.”</p>
<h3>Plumbing the depths</h3>
<p>To take depth readings, Niels’s original design featured a standard diving computer suspended in front of the ROV, to be viewed by the camera, but he has since added an inexpensive depth sensor. After testing the ROV in a swimming pool, Niels has taken it out to local lakes for dives of up to 14m deep, although muddy water can make visibility tricky. “The lakes are dark, so I have powerful LEDs.”</p>
<div id="attachment_2053" style="width: 1510px" class="wp-caption aligncenter"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/06/boxout-1-camera-view.png"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2016/06/boxout-1-camera-view.png" alt="A terror from the murky depths" width="1500" height="835" class="size-full wp-image-2053" /></a><p class="wp-caption-text">A terror from the murky depths</p></div>
<p>So, how deep could the ROV dive? According to Niels, a key limitation is the hull end-caps: “They will deflect too much when it goes deeper than 30m. I did an FE analysis at work to see the strains in the ROV, but I am not sure how it will behave in reality.”</p>
<p>Niels’s ultimate dream is to use his ROV for exploration at sea, “where I can do a quick survey of shipwrecks before we go down with divers.” In the immediate future, he plans to use it to map the depth of lakes, using the echosounder and depth sensor while towing a surface GPS close behind. “I would also like to experiment with an autopilot, to make it into an AUV (automated unmanned vehicle) that can do a search pattern for lost items and come back to the surface to send the data to shore.”</p>
<p><iframe width="500" height="281" src="https://www.youtube.com/embed/-AUEswQq_v0?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/submersible-drone-powered-by-pi/">Submersible drone, powered by Pi</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The MagPi Magazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.raspberrypi.org/magpi/submersible-drone-powered-by-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
