<?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>Tue, 03 Nov 2015 08:34:35 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.5</generator>
	<item>
		<title>Pi Spark supercomputer cluster</title>
		<link>https://www.raspberrypi.org/magpi/pi-spark-supercomputer/</link>
		<comments>https://www.raspberrypi.org/magpi/pi-spark-supercomputer/#disqus_thread</comments>
		<pubDate>Tue, 03 Nov 2015 08:34:35 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[supercomputer]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=756</guid>
		<description><![CDATA[<p>One data scientist shows us how to string six Raspberry Pis together to build a supercomputer and experiment with big data</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/pi-spark-supercomputer/">Pi Spark supercomputer cluster</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>The Raspberry Pi is great for learning computer science, but there’s one area that’s big news but requires big computers, and that’s ‘big data’.</p>
<p>Big data software typically runs on clusters of networked computers, working together to perform the heavy lifting required. This clustered nature makes learning big data tricky, because you need several computers wired together to practise. Sung-Taek Kim, a software engineer from Korea, decided that the Raspberry Pi would be perfectly suited to the task. “Raspberry Pi is a great education platform to learn how big data software works,” he tells us. “It is [comparatively] slow and low-powered, [so] that you would have hands-on experiences when your data manipulation methods execute as planned.”</p>
<div id="attachment_759" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/Main_Cluster.jpg"><img class="wp-image-759" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/Main_Cluster.jpg" alt="Six Raspberry Pi's make up the SparkPi" width="550" height="329" /></a><p class="wp-caption-text">Six Raspberry Pi&#8217;s make up the SparkPi</p></div>
<p>In fact, the light performance of the Raspberry Pi becomes an advantage when learning big data techniques. “Once you miss a small detail,” explains Sung-Taek, “you feel the operation processes slow down.”</p>
<p>“Sending data across [a] network takes time,” he adds. “All the CPUs in your cluster compete for resources such as memory or disk [space], and a node or two could suddenly refuse to work, just like [in] a Google-class data centre cluster.” He explains that the relative slowness of a Pi cluster is actually an advantage, enabling you to prepare for such events.</p>
<p>Sung-Taek’s cluster is based around six Raspberry Pi 2 boards wired together with Ethernet cables via a D-Link 8-port Gigabit Desktop Switch.</p>
<p>“Theoretically, you would only need one Raspberry Pi,” says Sung-Taek, “since Spark exploits the [nature] of a master-slave scheme. Prepare a Raspberry Pi as a slave and your laptop as a master. Connect two Raspberry Pi devices and you have a Spark cluster.”</p>
<p>Sung-Taek suggests using between three to eight Raspberry Pi boards for the project. “Once you have more than ten Raspberry Pis,” he says, “it’s a headache to find a proper power source, to arrange the network and power cord.”</p>
<div id="attachment_760" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/Step2_Cluster.jpg"><img class="wp-image-760" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/Step2_Cluster.jpg" alt="The cluster is made using a custom casing found on the GitHub" width="550" height="520" /></a><p class="wp-caption-text">The cluster is made using a custom casing found on the GitHub</p></div>
<p>The hardest part seems to be building the enclosure. Sung-Taek <a href="http://github.com/stkim1/pocketcluster">hosts schematics on GitHub</a>, but accuracy is vital. Even a half millimetre offset in the cutting template could render one of the acrylic tiers useless, he warns.</p>
<p>Aside from the Raspberry Pi units, the project isn’t expensive. The power supply, network switch, cables, screws, and enclosure only came to around $60. A complete list of materials is available via a Make: article (bit.ly/1J2jpDf) written by Sung-Taek.</p>
<p>The software requirements are quite intense. “Python is a must,” he says, “In order to fully exploit what a Spark cluster provides, it would be a good idea to learn Scala as well.” Java is another must, and the listed software packages include NumPY, Scipy, and Scikit-Learn. On top of that, you’ll be learning the MapReduce programming model, which is where you’ll encounter Hadoop and Spark.</p>
<p>They are all skills worth learning, though: big data is at the forefront of computer science and is an interesting area to study and work in. “The Raspberry Pi cluster lets you prepare [for] events that could take place in a production environment,” says Sung-Taek. “Further, the cluster lets you easily find where to apply optimisation work, since its hardware resource is limited indeed.”</p>
<p>“You might want to plan carefully and start with a small number of nodes,” he advises. “Pay attention to details in each step, and make sure your plan is checked with specifications. Once you’ve successfully built [a cluster], make a bigger one. One of the best strategies to avoid costly mistakes is to follow and observe what others have done.”</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/pi-spark-supercomputer/">Pi Spark supercomputer cluster</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-spark-supercomputer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi at the Festival of Code 2015</title>
		<link>https://www.raspberrypi.org/magpi/festival-of-code-2015/</link>
		<comments>https://www.raspberrypi.org/magpi/festival-of-code-2015/#disqus_thread</comments>
		<pubDate>Mon, 02 Nov 2015 12:15:17 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Features]]></category>
		<category><![CDATA[festival of code]]></category>
		<category><![CDATA[scratch]]></category>
		<category><![CDATA[teaching]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=747</guid>
		<description><![CDATA[<p>Festival of Code, the world’s biggest hacking event, saw over a thousand youngsters showcasing their projects, including some remarkable Raspberry Pi creations…</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/festival-of-code-2015/">Raspberry Pi at the Festival of Code 2015</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Mighty oaks from little acorns grow – and this applies to both the ethos and rapid growth of Young Rewired State’s annual <a href="http://hacks.youngrewiredstate.org/events/festival-of-code-2015">Festival of Code</a>. What began in 2009 as a weekend gathering of 50 self-taught young coders, aimed at introducing them to the benefits of open data, has since expanded to become the world’s largest annual hack event for young people. Some 1,200 under-18s attended this year’s finale at Birmingham’s ICC (International Convention Centre), showcasing the projects their teams had created over the previous week at one of 66 technology centres, most in the UK, plus a few overseas. So great was the attendance – along with parents, mentors and centre leads – that it took six hours to process them all through ICC registration on the Friday afternoon.</p>
<p><em>The full article can be found in <a href="/magpi/issues/38/">The MagPi 38</a></em></p>
<p>“This year it felt like we had finally come of age,” says YRS founder Emma Mulqueeny. “Every year we learn hard lessons! And every year we try to make sure we address those. This year it really seemed like we had managed to work out how to address the issues of scale… The feedback has been incredible and really wonderful to see. The standard of the hacks produced by the teams was also higher than ever.”</p>
<div id="attachment_749" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/Youngsters-coding.jpg"><img class="wp-image-749" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/Youngsters-coding.jpg" alt="The even had a lot of kids coding together or on their own" width="550" height="367" /></a><p class="wp-caption-text">The even had a lot of kids coding together or on their own. Image by Paul Clarke www.paulclarke.com</p></div>
<h3>Infectious enthusiasm</h3>
<p>The sheer level of enthusiasm is something noted by most attendees, including Raspberry Pi Foundation CEO Philip Colligan, who was on the judging panel for the heats and semi-finals. “The kids are awesome,” he tells us. “Walking around, you can see that they love every minute of it.” He’s also amazed at what the entrants managed to achieve in just a week: “They’re learning new programming languages, how to access and use open data, they’re doing physical hacks and physical computing projects.” Most of all, however, he stresses the importance of the kids solving problems that they care about, which means they’re totally driven to learn what need to create and showcase their project.</p>
<p>Fellow judge and Raspberry Pi Foundation colleague Marc Scott was equally impressed. Describing the scene on the Friday evening, as entrants continued to work on their projects, he says: “It’s quite an amazing sight to see that many kids all hunched over laptops, tablets, phones, and Raspberry Pis, with screens full of nothing more than text.”</p>
<p>“The atmosphere on the Friday is always a slightly anxious one,” adds Emma. “Everyone is nervous ahead of presentations the next day. However, for the ones coming back, it is a huge reunion – and the whopping amount of pizza always helps! On Saturday it is much more buzzy; everyone is showcasing what they have built, they have all connected again with each other or made new friends: sometimes these are lifetime friendships.”</p>
<h3>Social experience</h3>
<p>The benefits for the Festival’s young participants are manifold, according to Marc. “For many attendees it’s their first real experience of interacting with the ‘hacker community’ face-to-face. They’ll have people they know through social media that share their interests, and maybe one or two friends at school, but nothing on the scale of the Festival of Code. It’s nice to get together with a couple of friends to hack a project together, but being able to stand in a room filled with nearly a thousand people and know that each and everyone of them is as passionate about coding as you are is very empowering.”</p>
<p>Emma concurs: “Many of these young developers have taught themselves, and before the Festival existed, these youngsters were pretty isolated people, both at school and in their learning. Now they are growing up with hundreds/thousands of people exactly like them. They love teaching each other, they love learning from each other, and they love challenging themselves. What I see every year is a child spotting something that they want to learn by the time they come back, and then doing so; so the impact on the actual skill they are picking up is huge.”</p>
<p>Such is the lure of the annual Festival that many previous participants who pass the maximum age threshold of 18 (‘graduates’, as Emma calls them) return to mentor youngsters or act as judges. Most go on to university, while others have gone to work in startup companies or have formed their own with the aid of the US-based Y Combinator seeding fund.</p>
<div id="attachment_750" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/PollutionBits.jpg"><img class="wp-image-750" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/PollutionBits.jpg" alt="Presenting projects on stage is no easy task" width="550" height="367" /></a><p class="wp-caption-text">Presenting projects on stage is no easy task. Image by Paul Clarke www.paulclarke.com</p></div>
<h3>Hardware hacks</h3>
<p>The <a href="http://hacks.youngrewiredstate.org/events/festival-of-code-2015">wide range of projects this year</a> was impressive, particularly given the short development time. “I’m always blown away by what is produced for the Festival of Code,” says Marc. “There are apps, websites, and hardware hacks that range from the purely zany, to those that could genuinely do some social good, or even make some money. The standard is always high, and you can see that the attendees have really given it their all, no matter what the level of technical expertise they possess.”</p>
<p>While the majority of projects this year were software-based, hardware hacks seemed to find favour with the judges, including several Raspberry Pi-based projects. Most notable of these was Buoy (see boxout on left), a water pollution-detecting Pi-powered duck, which won the ‘Code A Better Country’ and ‘People’s Choice’ awards. It was a favourite of Philip’s: “They’d actually managed to get it to the stage in just a week where this thing was navigating itself around the pool, which was just amazing.” And while not all of the hardware projects made use of the Pi, Philip notes: “Most of the kids there that I spoke to owned one or more Raspberry Pis and they’re using them to learn on, which is exactly what we want.”</p>
<p>Another standout project was the Intelligent Elephant Alarm Clock designed by a trio of girls aged seven and eight, which was a finalist in the Should Exist category. Created using ScratchX and a PicoBoard, the clock makes use of local weather and traffic data to determine when the user is woken by one of five animal alarms. “They had one of the most complicated but effective Scratch programs I’ve ever seen,” says an astonished Philip. He was also impressed by ‘Best Example of Design’ winner ArduDuck, a USB dongle that instantly adapts any PC to the user’s special requirements so they can start using it straight away.</p>
<p>Considering the high standard of entries, Philip says it was really hard to judge them: “There was a fair bit of argument amongst the judges,” he reveals. Projects were assessed using four criteria: the quality of code, novelty factor, whether it addressed the problem that was being solved, and use of open data.</p>
<p>Following heats and semi-finals for four main categories, and final project presentations on the main stage, the winners were revealed on the Sunday afternoon. “When we announce the semi-finalists and the finalists, it is a bit like X Factor for geeks!” laughs Emma. “The finale is always emotional. Tears from parents, mentors and centre leads, nerves from the finalists, and huge sadness and grief when it is all over: no one wants it to end and to have to wait another year.”</p>
<div id="attachment_751" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/Everyone-on-stage.jpg"><img class="wp-image-751" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/11/Everyone-on-stage.jpg" alt="Maybe next year you can be among the great younger coders on stage!" width="550" height="320" /></a><p class="wp-caption-text">Maybe next year you can be among the great younger coders on stage! Image by Paul Clarke www.paulclarke.com</p></div>
<h3>Register for 2016</h3>
<p>If you want to get involved in next year’s Festival of Code – as a participant, mentor or centre – you can register your interest at <a href="http://festival.yrs.io/">festival.yrs.io</a>. The Festival is completely free to participate in and open to anyone under the age of 18, although you need to have at least some basic coding experience. Successful applicants are sent to a nearby technology centre, where mentors will help them to design their project during the Festival week, before it’s showcased at the weekend finale.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/festival-of-code-2015/">Raspberry Pi at the Festival of Code 2015</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/festival-of-code-2015/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi command line: Connect to storage</title>
		<link>https://www.raspberrypi.org/magpi/connecting-disks-with-the-command-line/</link>
		<comments>https://www.raspberrypi.org/magpi/connecting-disks-with-the-command-line/#disqus_thread</comments>
		<pubDate>Fri, 30 Oct 2015 13:33:53 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Walkthrough]]></category>
		<category><![CDATA[command lind]]></category>
		<category><![CDATA[disks]]></category>
		<category><![CDATA[mounting]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=737</guid>
		<description><![CDATA[<p>Richard Smedley presents your cut-out-and-keep guide to using the command line on the Raspberry Pi. In this part, we tackle the management of removable storage</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/connecting-disks-with-the-command-line/">Raspberry Pi command line: Connect to storage</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Although Raspbian will, when booted as far as the GUI, automatically mount any disk-type device (USB flash key, camera, etc.) plugged into the USB port and offer to open it for you, you may wish to get more direct control of the process. Or, as is more often the case, you may want to mount a disk when the Raspberry Pi is running a project that doesn’t involve anyone getting as far as typing startx at the command line, as such graphical fripperies aren’t necessary for most connected devices.</p>
<p>For more command line tips and projects such as this, you should check out our brand new Ebook, <a href="/magpi/issues/essentials-bash-vol1/">Conquer the Command Line</a>. It&#8217;s available on all the usual digital services so you could own it instantly.</p>
<p><a href="/magpi/issues/essentials-bash-vol1/" rel="/magpi/issues/essentials-bash-vol1/"><img class="aligncenter wp-image-698" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Bash-Vol-1-Cover.jpg" alt="Bash Vol 1 Cover" width="300" height="426" /></a></p>
<h3>Connected or mounted?</h3>
<p>Plugging a drive or flash memory device into your Pi (connecting it to your computer) is not the same as making it available for the Pi to interact with (mounting it) so that Raspbian knows what’s on it and can read, write, and alter files there. It’s an odd concept to accept: the computer knows there’s a disk plugged in, but its contents remain invisible until the Pi is told to mount it. It’s a bit like seeing a book on your shelf, but not being allowed to open or read it.</p>
<p>Disks and disk-like devices are mounted by Raspbian on a virtual file system, and you’ll rarely need to worry about what goes on beneath that layer of abstraction, but to see some of it, type mount. The information displayed is of the form device on mount point, file-system type, options. You’ll see a lot of device “none” for various bits of the virtual system that you don’t need to worry about; the devices that concern us start with <pre class="crayon-plain-tag">/dev/</pre>  and have names like <pre class="crayon-plain-tag">/dev/mmcblk0p1</pre>  for partitions of the Pi’s SD card, and <pre class="crayon-plain-tag">/dev/sda1</pre>  for plugged-in USB drives.</p>
<p>Plug in a USB drive (remember that the Pi is not happy to power drives itself: either use a powered drive, or plug a USB flash drive into a powered USB hub). If you haven’t yet typed <pre class="crayon-plain-tag">startx</pre> , then the disk will not get automatically mounted; if you have, then you need to unmount it. <pre class="crayon-plain-tag">mount</pre>  will show an entry beginning something like “<pre class="crayon-plain-tag">/dev/sda1 on /media/FLASH DRIVE…</pre> ” and you can unmount with <pre class="crayon-plain-tag">sudo umount /dev/sda1</pre>  (yes, that is umount without an “n”). An error will result if the device is in use, so change directory and/or close apps using files from the device. Now we can mount it just the way we want.</p>
<h3>Finding the disk</h3>
<p>The <pre class="crayon-plain-tag">/dev/sda1</pre>  refers to the first (or only) partition on <pre class="crayon-plain-tag">/dev/sda</pre> . The next device plugged in will be <pre class="crayon-plain-tag">/dev/sdb1</pre> . You can see what’s being assigned by running <pre class="crayon-plain-tag">tail -f /var/log/messages</pre> , then plugging in the USB device. On other Linux systems, if <pre class="crayon-plain-tag">/var/log/messages</pre>  draws a blank, try <pre class="crayon-plain-tag">/var/log/syslog</pre> . Stop the tail with <pre class="crayon-plain-tag">CTRL+C</pre> . Another way of seeing connected devices that aren’t necessarily mounted is with fdisk, a low-level tool used to divide disks up into partitions, before creating file systems on those disks (see the “Format” boxout). Called with the list option <pre class="crayon-plain-tag">sudo fdisk -l</pre> , it performs no partitioning, but simply lists partitions on those disks connected to your Pi. It also gives file-system information, which you need in order to mount the disk. Lastly, you need a mount point (somewhere to place the device on the file-system hierarchy) with appropriate permissions. Create one with:</p><pre class="crayon-plain-tag">$ sudo mkdir /media/usb
$ sudo chmod 775 /media/usb</pre><p>You can then mount the disk with <pre class="crayon-plain-tag">sudo mount -t vfat /dev/sda1 /media/usb</pre> , where vfat (or ntfs or ext2) is the file-system type.</p>
<h3>File-system table</h3>
<p>Raspbian knows which disks to mount at boot time by reading the file-system table (<pre class="crayon-plain-tag">/etc/fstab</pre> ), and we could put our <pre class="crayon-plain-tag">/dev/sda1</pre>  in there, but if we start up with two drives plugged in, the wrong one may be selected. Fortunately, disks (or rather, disk partitions) have unique labels known as UUIDs randomly allocated when the partition is created. Find them with <pre class="crayon-plain-tag">sudo blkid</pre> , which also helpfully tells you the label, if any, that often contains the make and model of external drives, or look in <pre class="crayon-plain-tag">/dev/disk/by-uuid</pre> .</p>
<p>For an NTFS-formatted drive, we called sudo nano /etc/fstab and added the following to the end of the file:</p><pre class="crayon-plain-tag">/dev/disk/by-uuid/E4EE32B4EE327EBC /media/usb1t ntfs defaults 0 0</pre><p>This gives the device name (yours will be different, of course), mount point, file-system type, options, and two numeric fields: the first of these should be zero (it relates to the unused dump backup program), while the second is the order of check and repair at boot: 1 for the root file system, 2 for other permanently mounted disks for data, and 0 (no check) for all others. <pre class="crayon-plain-tag">man mount</pre>  will tell you about possible options.</p>
<h3>Editing with nano</h3>
<p>We touched briefly on nano in part 2 of this series. Looking in a little more depth, the first thing to be aware of is the dozen shortcuts listed across the bottom two lines of the terminal: each is the <pre class="crayon-plain-tag">CTRL</pre>  key (represented by the caret <pre class="crayon-plain-tag">^</pre> ) held at the same time as a single letter key. For example, <pre class="crayon-plain-tag">^R</pre>  for ReadFile (i.e. open), <pre class="crayon-plain-tag">^O</pre>  for WriteOut (in other words, save), and <pre class="crayon-plain-tag">^X</pre>  for Exit. Remember those last two for now, and you’ll be able to manage nano. However, if you learn more of them, you will really race through your editing tasks.</p>
<p>Nano lacks the power features of Emacs and Vim, its two main command-line code editor rivals, but has useful features such as a powerful Justify (<pre class="crayon-plain-tag">^J</pre> ), which will reassemble a paragraph of line-break strewn text into an unbroken paragraph, or apply line breaks at a fixed character length.This is a legacy of its development for email composition. <pre class="crayon-plain-tag">^K</pre>  cuts the line of text the cursor is on, but it isn’t just a delete function: each cut is added to a clipboard. <pre class="crayon-plain-tag">^U</pre>  will paste the entire clipboard at the cursor position: it’s great for gathering together useful snippets from a longer text.</p>
<p>Hit <pre class="crayon-plain-tag">^O</pre>  to save fstab, and the shortcut listing changes, with many now beginning M instead of <pre class="crayon-plain-tag">^</pre>  – this is short for Meta, which means the <pre class="crayon-plain-tag">ALT</pre>  key on your keyboard (once upon a time, some computers had several modifier keys, such as Super and Hyper). One “hidden” shortcut after <pre class="crayon-plain-tag">^O</pre>  is that at this point, <pre class="crayon-plain-tag">^T</pre>  now opens a file manager to search for the file/directory where you want to save.</p>
<div id="attachment_739" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/mount-a-6.png"><img class="wp-image-739" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/mount-a-6.png" alt="Once we’ve put our removable disk in the file-system table  (/etc/fstab),  mount -a will read the config from there to mount your disks, saving you from having to remember the details" width="550" height="350" /></a><p class="wp-caption-text">Once the removable disk is in the file-system table (/etc/fstab), mount -a will read the config</p></div>
<p>After saving, exit nano; now <pre class="crayon-plain-tag">sudo mount -a</pre>  will mount the external drive at the desired mount point (above), regardless of what else is plugged in. If you have other new entries in <pre class="crayon-plain-tag">/etc/fstab</pre> , then sudo mount <pre class="crayon-plain-tag">/media/usb1t</pre>  (or whatever entry you put in fstab) will mount just that chosen device if you don’t want to mount any of the others.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/connecting-disks-with-the-command-line/">Raspberry Pi command line: Connect to storage</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/connecting-disks-with-the-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spookiest Raspberry Pi Halloween projects &#8211; part two</title>
		<link>https://www.raspberrypi.org/magpi/spookiest-raspberry-pi-halloween-projects-part-one-2/</link>
		<comments>https://www.raspberrypi.org/magpi/spookiest-raspberry-pi-halloween-projects-part-one-2/#disqus_thread</comments>
		<pubDate>Wed, 28 Oct 2015 13:17:47 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Features]]></category>
		<category><![CDATA[halloween]]></category>
		<category><![CDATA[halloween at 3]]></category>
		<category><![CDATA[mulder]]></category>
		<category><![CDATA[pumpkins]]></category>
		<category><![CDATA[scary door]]></category>
		<category><![CDATA[scary porch]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=684</guid>
		<description><![CDATA[<p>Get a look at more Raspberry Pi Halloween projects that are sinfully good...</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/spookiest-raspberry-pi-halloween-projects-part-one-2/">Spookiest Raspberry Pi Halloween projects &#8211; part two</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="/magpi/spookiest-raspberry-pi-halloween-projects-part-one/">Yesterday we looked at three spook-tastic Raspberry Pi Halloween projects</a>. If you think those were scary, then get a pillow ready for our remaining four frightfests&#8230;</p>
<p><em>The full article can be found in <a href="/magpi/issues/38/">The MagPi 38</a></em></p>
<h3>Scary Door (and Scary Porch)</h3>
<p><strong>Don’t get too close to this door if you value your sanity</strong></p>
<p>Maker: <a href="http://bit.ly/1p6VQpW">Cabe Atwell</a> &#8211; Electrical engineer, writer, crafter of cursed objects</p>
<p>You are entering the vicinity of an area adjacent to a location. The kind of place where there might be a monster, or some kind of weird mirror. These are just examples; it could also be something much better. Prepare to enter…</p>
<p>The Scary Door.</p>
<p>Or not in this case, as this is not a real door. Or a Twilight Zone parody. While the Haunted House we started off this feature with shows the entrance to a spooky residence, this kind of project is what you might find inside as you wander around. It’s a peculiar metal door, with a window you can see through. A knocking sound is coming from behind it; perhaps someone is lost? As you get closer, you see through the window a normal-looking lounge. You can’t see anyone, but the knocking is still there and as you reach for the handle, a monstrous face appears.</p>
<div id="attachment_686" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/scarydoor.png"><img class="wp-image-686" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/scarydoor.png" alt="Who’s that at the door?" width="550" height="309" /></a><p class="wp-caption-text">Who’s that at the door?</p></div>
<p>Cabe’s idea was to create a modern haunted house effect on the cheap that was different every time you saw it. As well as the pop-up scares, there’s ghosts and monsters flying around in the ‘window’ (actually an LCD screen), and the scares and sounds you can create are as many as you can imagine. The knocking sound comes from pistons smashing against the door.</p>
<p>As well as the door, Cabe has previously created a Scary Porch, which he describes as “[an] exploration of my idea of consuming someone with light and sound, to the point where they wanted to run away.” Unlike our Haunted House project from earlier, which was doorbell-activated, the porch could sense how far away you were from the door. As you started to approach, it would start playing creepy sounds and slowly turn on some bright red lights. As you got closer to the door, the louder the sounds became and the brighter the lights got, until screams and roars began playing when you were in knocking range.</p>
<div id="attachment_687" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/scaryporch.jpg"><img class="wp-image-687" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/scaryporch.jpg" alt="Significantly less scary with the lights on, nevertheless you can see the motion sensors mounted on crates that make it work" width="550" height="413" /></a><p class="wp-caption-text">Significantly less scary with the lights on, nevertheless you can see the motion sensors mounted on crates that make it work</p></div>
<p>“The Scary Porch was only set up in my shop,” Cabe explains to us. “But, people did see it and did what I thought&#8230; they wanted to get away from the sound.”</p>
<p>Both are quite elaborate projects and if you plan to make anything similar yourself, Cabe advises you exercise extreme caution unless you want to make yourself the centre of your Halloween display. This year he’s toning it down a bit: “I plan to&#8230; make a wooded path, or [the] front yard a bit more scary.”</p>
<p>At Cabe’s house, we’re sure it’ll be more than just a bit scary.</p>
<p><strong>MAGPI SPOOK-O-METER RATING:</strong> 5/5 &#8211; Abs-ghoul-utely terrifying</p>
<h3>Shot through the stomach</h3>
<p><strong>Take the scares around with you thanks to this gruesomely interactive costume</strong></p>
<p>Maker: <a href="http://bit.ly/1KNZW0t">Luis Martin</a> &#8211; Maker, R&amp;D engineer, major trauma victim</p>
<p>Scary pumpkins, doors, and houses are one thing, but a good scary costume is a big part of Halloween. While you can’t beat the classics of vampires and witches and zombies, more imaginative and horrific costumes are popping up every year. Luis Martin took his costume to a new level by adding a Pi and some clever coding to make it look like he’d been shot right through his stomach, something he’d seen on The Walking Dead.</p>
<div id="attachment_688" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/stomachshot.jpg"><img class="wp-image-688" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/stomachshot.jpg" alt="You don’t have to pull a face, but it does make for a batter picture" width="550" height="827" /></a><p class="wp-caption-text">You don’t have to pull a face, but it does make for a batter picture</p></div>
<p>It’s actually quite a simple and ingenious design. Using a Raspberry Pi as its main core, Luis took a Pi Camera Module and a 7-inch screen and had a live feed from the camera play onto the screen. By having the Pi and camera on his back, he was able to relay the live feed to the screen that was showing through his shirt, giving the illusion that there was indeed a hole in his stomach. Scary indeed – just don’t ask him to turn around to ruin the effect.</p>
<p>It also involves a bit more than electronics, though: a later border was created around the edge of the screen to simulate the gruesome look of flesh to better create the effect through his clothes. With skin-tone paint added along with blood and detailing to get the right effect, he also cut up an old T-shirt and stained it with fake blood. “You have to be eager to stain your hands,” Luis tells us. “Especially blood. The more blood in a zombie costume, the more realistic!”</p>
<div id="attachment_689" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/stomachlatex.jpg"><img class="wp-image-689" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/stomachlatex.jpg" alt="The screen’s fleshy border adds to the effect" width="550" height="413" /></a><p class="wp-caption-text">The screen’s fleshy border adds to the effect</p></div>
<p>With the shirt ready, Luis took a GoPro harness and had it hold the screen down to his stomach, as well as using it to attach the camera to the correct spot on his back for the illusion to work. This is then simply connected to the screen via the HDMI port on the Raspberry Pi &#8211; switch it on and you’re ready to go!</p>
<p>It certainly sounds gruesome, and you’d think seeing a zombie walk around with a hole in his stomach would make everyone scream and run away. “Everyone wanted a picture through the hole, like some kind of blood-coated selfie?”</p>
<p>Kids these days, eh? You put a hole in your stomach and they’re not even scared.</p>
<p><strong>MAGPI SPOOK-O-METER RATING:</strong> 2/5 &#8211; Gravely creepy</p>
<h3>HalloweenPi at 3</h3>
<p><strong>A yearly tradition that will rattle your bones and help out the local food bank</strong></p>
<p>Makers: <a href="http://on.fb.me/1OuScjv">Chris, Patrick and Elishe</a> &#8211; Solution architect, systems specialist, and artist respectively, purveyors of haunted numbers</p>
<p>Scaring people as they come to the door is big business in spooks, it seems. We’ve seen porches, doors, and monster parties that give at least some warning or try to build a scary atmosphere, but the HalloweenPi is taking the jump-scare approach over building suspense.</p>
<p>To understand HalloweenPi, we need to learn about the history of Halloween at 3. A yearly tradition from the people at 3 Michelle Court, a display of their scariest Halloween-themed ideas is created to wow (and maybe frighten) trick-or-treaters or passers-by. Constantly trying to figure out a way to make each year better by adding to the display, Chris Kyte had a bit of a brainstorm:</p>
<div id="attachment_690" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/halloweenat3.jpg"><img class="wp-image-690" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/halloweenat3.jpg" alt="What exactly happens at 3 Michelle Court?" width="550" height="367" /></a><p class="wp-caption-text">What exactly happens at 3 Michelle Court?</p></div>
<p>“We were considering how to draw in a few more trick-or-treaters to our haunt. We had decided to start collecting canned food donations for our local food bank when I remembered the Raspberry Pi B+ I had received as a birthday present earlier in the year. I started to wonder if I could build a pneumatic prop or two in order to ‘up our game’.”</p>
<p>Currently, the massive tunnel houses a laboratory of rainbow-coloured mixtures in beakers and test tubes that react to black light, a projected puppet that compliments kids on their costumes, and all the other trappings of a Halloween-themed display. This new addition will have a motion-controller prop attached to it that will spring up and scare people as they arrive for Halloween at 3.</p>
<p>“The HalloweenPi Controlled Pneumatic Prop will be a really spooky piece,” says Chris. “It will act as an ambassador to the haunt, reacting to the people who walk by: the prop will spread its wings wide and will scream a mighty scream! The way we’ve designed the props and pneumatics means that they are modular. They don’t have to remain the same each year!”</p>
<div id="attachment_691" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/3skulls.jpg"><img class="wp-image-691" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/3skulls.jpg" alt="The team are still hard at work on this year’s project so they can be ready for the big day" width="550" height="309" /></a><p class="wp-caption-text">The team are still hard at work on this year’s project so they can be ready for the big day</p></div>
<p>The frights are for a good cause, though, as Hallowen at 3 takes donations for the local food bank. “The extra excitement generated by the pneumatic props should make a big difference to the number of people that show up. Hopefully, we’ll see an increase in food donations as well.”</p>
<p>We question how such an endeavour can be truly evil in the Halloween spirit with such a wonderful result, but we’ll let it slide this time.</p>
<p><strong>MAGPI SPOOK-O-METER RATING:</strong> 4/5 &#8211; Spectre-cularly frightening</p>
<h3>Mulder</h3>
<p><strong>Featured in this very magazine, this spooky skull comes alive</strong></p>
<p>Maker: <a href="vimeo.com/channels/mikespibakery">Mike Cook</a> &#8211; Writer, bone wizard</p>
<p>Zombie head? Too much flesh. Meet Mulder the skull, a very interactive head that you can control to scare the living daylights out of anyone who makes the mistake of passing by. With full control over his jaw, neck, and eyes, he can move around to watch anybody. Not only that, but you can light him up in a variety of colours and have him give out deadly screams or creepy owl hoots.</p>
<p>Mulder was made by Mike Cook as part of the Pi Bakery, and featured as a project you can create in <a href="/magpi/issues/38/">The MagPi 38</a> &#8211; head to page 58 to get started.</p>
<div id="attachment_692" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/mulder.jpg"><img class="wp-image-692" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/mulder.jpg" alt="The skulls are out there" width="550" height="413" /></a><p class="wp-caption-text">The skulls are out there</p></div>
<p>We won’t spoil the surprise, but it involves a lot of soldering and tweaking as you install several servos and motors to articulate the eyes and jaw, along with several lights, a speaker system, and a way to control the neck. It’s all controlled from an interface written in Python, the code listing and files from which are available in the tutorial.</p>
<p>We suggest you put a hidden camera near the skull so you can track trick-or-treaters as they approach your door. That’s sure to scare them off, leaving more chocolate for you.</p>
<p><strong>MAGPI SPOOK-O-METER RATING:</strong> 3/5 &#8211; Deadly scary</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/spookiest-raspberry-pi-halloween-projects-part-one-2/">Spookiest Raspberry Pi Halloween projects &#8211; part two</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/spookiest-raspberry-pi-halloween-projects-part-one-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spookiest Raspberry Pi Halloween projects &#8211; part one</title>
		<link>https://www.raspberrypi.org/magpi/spookiest-raspberry-pi-halloween-projects-part-one/</link>
		<comments>https://www.raspberrypi.org/magpi/spookiest-raspberry-pi-halloween-projects-part-one/#disqus_thread</comments>
		<pubDate>Tue, 27 Oct 2015 09:47:10 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Features]]></category>
		<category><![CDATA[halloween]]></category>
		<category><![CDATA[haunted house]]></category>
		<category><![CDATA[pumpkin]]></category>
		<category><![CDATA[spooky]]></category>
		<category><![CDATA[zombie]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=669</guid>
		<description><![CDATA[<p>Get a look at these Raspberry Pi Halloween projects that are absolutely to die for...</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/spookiest-raspberry-pi-halloween-projects-part-one/">Spookiest Raspberry Pi Halloween projects &#8211; part one</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Gather round, ghouls and girls, it’s that time of the year again when scary rules supreme. Perhaps you’re planning on dressing up to go trick-or-treating or marathoning a ghastly amount of horror films, but we’ve found some people who are deep in their lairs experimenting with a Raspberry Pi to create the spookiest projects the world has ever seen.</p>
<p>We’ve hunted down the most horrifying and wicked projects for your reading pleasure, but don’t worry, the only dark art at work here is the odd bit of C programming. Beware, read any further and you’ll be doomed to be inspired by these seven unholy projects… and have to read many more awful puns.</p>
<p><em>The full article can be found in <a href="/magpi/issues/38/">The MagPi 38</a></em></p>
<div id="attachment_670" style="width: 540px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/spookometer.png"><img class="size-full wp-image-670" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/spookometer.png" alt="We'll be rating these projects using the all-knowing MagPi SPOOK-O-METER" width="530" height="685" /></a><p class="wp-caption-text">We&#8217;ll be rating these projects using the all-knowing MagPi SPOOK-O-METER</p></div>
<h3>Raspberry Pi Haunted House</h3>
<p><strong>Enter if you dare to the abode with home scare-tomation</strong></p>
<p>Maker: <a href="http://penguintutor.com/electronics/halloween">Stewart Watkiss</a> &#8211; data centre manager, father, part-time Count Dracula</p>
<p>It’s late. The night grows dark and you’re near the end of your trick-or-treat run – but what’s this? A house you’ve never seen before on your road. Eager for more sweets, you make your way to the door. A haunted house sign greets you, but you think it merely decoration. Approaching the door, you press the doorbell &#8211; only for glass to break and the light to go out. A door creaks, the sign you had dismissed flashes, and you hear screams as the lights come back on. Startled, you look to your right and realise monsters are partying in the garage next to you, celebrating another victim in their night of ghastly fun.</p>
<div id="attachment_671" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/hauntedhousesign.jpg"><img class="wp-image-671" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/hauntedhousesign.jpg" alt="What horrors await inside?" width="550" height="395" /></a><p class="wp-caption-text">What horrors await inside?</p></div>
<p>“I had been trying to think of something fun to do for Halloween and the Raspberry Pi was an obvious choice,” the owner of this nightmarish house, Stewart, tells us. “I’d recently built a circuit for home automation using remote-control sockets and had the idea of using that to turn lights on and off automatically. I also spent some time looking around at shops to see what other Halloween props I could add to the project.”</p>
<p>The system is deceptively simple, although there’s a lot of different components to it. A dedicated doorbell is hooked up to a PiFace board that interacts directly with the Raspberry Pi and some Python code. Stewart chose the PiFace for this, instead of wiring up directly to the Raspberry Pi’s GPIO pins, to make sure he didn’t send any unwanted signals through the GPIO port – although with the right amount of research and careful wiring on a breadboard, you could do this without the PiFace. The PiFace directly controls the LEDs on a jack-o’-lantern and the haunted house sign, while the porch lights and the monster party lights are controlled by a wireless home-automation remote control that he directly soldered into.</p>
<p>“They are not designed to be used that way,” Stewart mentions. “The solder joints were not very reliable and whilst they lasted for Halloween, they eventually came loose. Since I made the project, Energenie have released a Pi-mote Raspberry Pi board for their remote-control sockets, which is easier to use than having to solder onto the remote-control buttons.”</p>
<p><iframe width="500" height="281" src="https://www.youtube.com/embed/07NYZXLm35w?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>Speakers play the appropriate sounds and music as dictated by the code, and the system is waterproofed as, well… Stewart lives in England. The results?</p>
<p>“I just managed to finish it in time for Halloween. We had friends coming over for our children’s Halloween party who said they liked it, and the trick-or-treaters were certainly surprised by it. There was one young girl who was a little scared by it, but most thought it was fun rather than scary.”</p>
<p><strong>MAGPI SPOOK-O-METER RATING:</strong> 3/5 &#8211; Deadly scary</p>
<h3>Socrative Zombie</h3>
<p><strong>A philosophical zombie, or a frightening, brain-munching head?</strong></p>
<p>Maker: <a href="http://tecoed.co.uk/socrative-zombie.html">Dan Aldred</a> &#8211; lead schoolteacher for Computing At School, raiser of the dead</p>
<p>Out late at night, you should have known better than to enter the strange shed, but it was about to rain and you needed the shelter. A sense of unease comes over you as the door closes behind you. It’s probably just because it’s a bit of a creepy atmosphere. The winds begin to howl outside, but wait &#8211; that’s not a howl, it’s more of a gurgling groan. And it’s coming from inside the shed with you. As you turn to confront the noise, you see an eerie glow from the corner of your eye. You fumble for your phone and turn the torchlight on to see the source of the noise and light… only to find an animated, undead head hungry for your flesh.</p>
<div id="attachment_673" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/zombiehead.jpg"><img class="wp-image-673" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/zombiehead.jpg" alt="It's gruesome, even in the light of day" width="550" height="733" /></a><p class="wp-caption-text">It&#8217;s gruesome, even in the light of day</p></div>
<p>Luckily, it’s just a sculpture from a school project, but you get the picture. Its creator Dan Aldred tells us how he came up with such a horrifying idea:</p>
<p>“I wanted to create a Halloween hack that would scare people. Sheds are scary in the dark, but even more with a talking zombie head! I also wanted to create a interesting head that would ask my students questions related to their learning.”</p>
<p>We assume they learnt the true meaning of fear alongside their new-found coding and soldering skills. The head is one of the few projects in this feature that makes use of sensors to know when someone is approaching it. In this case, a PIR motion sensor detects changes in temperature that correspond to a warm body entering its field of view. This means it unfortunately would not be able to sense its fellow undead. The sensor is placed in the mouth and controls a Python script which also hooks into LEDs and a speaker to complete the effect.</p>
<div id="attachment_674" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/zombiepi_v2.jpg"><img class="wp-image-674" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/zombiepi_v2.jpg" alt="The ghastly exterior hides a more tame control system" width="550" height="733" /></a><p class="wp-caption-text">The ghastly exterior hides a more tame control system</p></div>
<p>If you plan to replicate this project, Dan recommends a Raspberry Pi A+ due to its small size, and to create a cron job to start the program once the Raspberry Pi is powered up. How did it fare on the night?</p>
<p>“I had it in the classroom, it got dark about 4pm, and the students were very intrigued and excited,” Dan tells us. “Then I moved it to my shed for the 31st and when the trick-or-treaters came around, they went in the shed and were scared. It made them jump; they really liked the zombie head.”</p>
<p><strong>MAGPI SPOOK-O-METER RATING:</strong> 4/5 &#8211; Spectre-cularly frightening</p>
<h3>Pumpkin Pi</h3>
<p><strong>Usually a delicious dish, can you stomach this version?</strong></p>
<p>Maker: <a href="http://bit.ly/1iIW2te">Drew Fustini</a> &#8211; Software developer for element14 community, gourd sorcerer</p>
<p>Carved pumpkins and jack-o’-lanterns are a big Halloween tradition in many countries. Thanks to the internet, there’s been an explosion in people wanting to make their own custom pumpkins to show off, which are a bit more than just a pair of eyes and spooky grin. These days, you can print off pumpkin carving patterns for just about anything, and it’s a great way to do something a little creative with some flesh left over to maybe make a delicious soup or dessert.</p>
<div id="attachment_675" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/pumpkinpi.png"><img class="wp-image-675" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/pumpkinpi.png" alt="A normal pumpkin, or a lost soul trapped in produce?" width="550" height="309" /></a><p class="wp-caption-text">A normal pumpkin, or a lost soul trapped in produce?</p></div>
<p>Carving a pumpkin isn’t the only way to express yourself, however. To truly create a ‘hack-o’-lantern’, we need to add some electronics to its innards and dial up the spook-factor. That’s exactly what Drew did with his Pumpkin Pi for the element14 community. Some of the projects he creates are inspired by upcoming holidays, and in this case Halloween was approaching.</p>
<p>The whole system is fairly simple: by activating a preset script from a web interface on his computer, the lights start rhythmically changing colour. The interface is mounted on the Pi and if you use his program for such a project, you can have multiple sounds and light sequences activating within the pumpkin.</p>
<p><iframe width="500" height="281" src="https://www.youtube.com/embed/lIv8H7WPfQw?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>The construction of the Pumpkin Pi requires a little more than just pressing a button, though. Taking a pre-carved pumpkin (you could carve one yourself), Drew then lined it with a large plastic food bag to make sure the electronics inside didn’t get too damp from the pumpkin’s moisture. A carving on the rear was used to pass the power cables through, and the breadboard with all the LEDs and such on was placed on the Raspberry Pi to save space. He also put on chopped-up drinking straws to diffuse the light better throughout the pumpkin. A speaker is attached and the pumpkin is done and ready for testing. If you want to make it a little more permanent, you can make use of a Pi Plate to solder the circuit and then mount it onto the Raspberry Pi.</p>
<p>The Pumpkin Pi is simple, but well thought out and put together. If you’re going to be inspired by any of these Halloween projects, we’d recommend starting out with this one just to get the feel of creating a creepy contraption for your window or porch.</p>
<p><strong>MAGPI SPOOK-O-METER RATING:</strong> 2/5 &#8211; Gravely creepy</p>
<p>Check back tomorrow for part two, if you dare&#8230;</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/spookiest-raspberry-pi-halloween-projects-part-one/">Spookiest Raspberry Pi Halloween projects &#8211; part one</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/spookiest-raspberry-pi-halloween-projects-part-one/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ultrasonic Theremin</title>
		<link>https://www.raspberrypi.org/magpi/ultrasonic-theremin/</link>
		<comments>https://www.raspberrypi.org/magpi/ultrasonic-theremin/#disqus_thread</comments>
		<pubDate>Mon, 26 Oct 2015 11:59:05 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[theremin]]></category>
		<category><![CDATA[ultrasonic]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=660</guid>
		<description><![CDATA[<p>An inventive use of the Raspberry Pi that makes use of the kind of components you might have lying around the workshop</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/ultrasonic-theremin/">Ultrasonic Theremin</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Thinking outside the box is what we like here at The MagPi. The Raspberry Pi is so versatile and so open that you can do so much with it that perhaps other people wouldn’t have dreamt of before. So here’s a good question: with a Raspberry Pi, some speakers, and an ultrasonic distance sensor used for robotics, what would you make? Linus Forslid decided to build a type of theremin.</p>
<p><em>The full article can be found in <a href="/magpi/issues/38/">The MagPi 38</a></em></p>
<div id="attachment_666" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/step3.jpg"><img class="wp-image-666" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/step3.jpg" alt="A compact device with one purpose - this is Linus' complete Theremin" width="550" height="743" /></a><p class="wp-caption-text">A compact device with one purpose &#8211; this is Linus&#8217; complete Theremin</p></div>
<p>“A theremin is a device that measures distances to objects nearby and turns that into sound, so that when you move your hands around it, you can generate music,” Linus explains. It’s not exactly like a normal theremin, though. “Unlike a classic theremin, my project uses an ultrasound sensor rather than measuring electrical fields with antennas, and currently my project only has a single sensor, so you can only control the tone it produces. Eventually, I plan to add another so that the beat can also be manually controlled.”</p>
<p>Theremins were used to create the eerie, creepy music for classic sci‑fi films. Due to this and its unusual method of operation, the theremin has become intriguing to many musicians and techies, including Linus:</p>
<p>“I’ve always wanted a theremin, from the first day I heard of it. It’s just such a cool thing. As it turns out, though, an actual theremin is not cheap or easy to build, but this project was easily doable and I had almost all of the components at home already, so the cost was minimal as well. I decided to use a PC speaker instead of the Pi’s own audio jack and an external speaker, mostly because I could, in addition to it not requiring an additional power source.”</p>
<div id="attachment_662" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/step2.jpg"><img class="wp-image-662" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/step2.jpg" alt="The set up is quite simple, but works very well" width="550" height="743" /></a><p class="wp-caption-text">The set up is quite simple, but works very well</p></div>
<p>The hardware is one thing, but actually translating it to sound, surely that takes a bit more work on the code to get it operational?</p>
<p>“Not really, I think.” Linus adapted some pre-existing code for the project. “The script that controls the theremin is coded in C using wiringPi, and it took maybe an hour to get it working. I’ve spent a couple of hours beyond that just tweaking the numbers to try out different sounds and find one I like. I wouldn’t say it was complex, even if the tuning took a while.”</p>
<div id="attachment_664" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/step1.jpg"><img class="wp-image-664" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/step1.jpg" alt="Wave your hand like you just don't care to get your spooky on" width="550" height="743" /></a><p class="wp-caption-text">Wave your hand like you just don&#8217;t care to get your spooky on</p></div>
<p>The whole process is deceptively simple then, even though it’s hardly your typical Pi-based project. There are a few caveats, however, and Linus’s Pi-powered theremin could do with a few improvements, as he explains:</p>
<p>“It’s surprisingly hard to operate well, as you need a very steady hand and good aim to get the exact tone you are after… I plan to add another sensor to control the beat of the sound. Right now, it is set entirely by the script, which means it’s basically static. By allowing the user to control the beat, my hope is that it will actually be useful as a musical instrument.”</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/ultrasonic-theremin/">Ultrasonic Theremin</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/ultrasonic-theremin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi fridge monitor</title>
		<link>https://www.raspberrypi.org/magpi/raspberry-pi-fridge-monitor/</link>
		<comments>https://www.raspberrypi.org/magpi/raspberry-pi-fridge-monitor/#disqus_thread</comments>
		<pubDate>Thu, 22 Oct 2015 07:30:56 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Walkthrough]]></category>
		<category><![CDATA[fridge monitor]]></category>
		<category><![CDATA[home automation]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=646</guid>
		<description><![CDATA[<p>Make sure your fridge doesn't lose too much heat with a Raspberry Pi-powered monitor and the help of renowned technology hacker and author, Simon Monk</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspberry-pi-fridge-monitor/">Raspberry Pi fridge monitor</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>The house is infested with cheese fairies who raid the fridge at all times of day and consume considerable quantities of tasty cheese. In this project, any fridge-door-opening activity will result in a notification email – or, if you prefer, a tweet or Facebook update – telling you the time that the fridge door was opened.</p>
<p>This may seem a somewhat trivial example, but it really serves to show just how easy it is to hook up a sensor that will cause your Raspberry Pi to notify you of events in a variety of ways using the <a href="https://ifttt.com/">If This Then That</a> framework.</p>
<p>As you’ll see from the below list of required components, this project uses a photoresistor connected to the Raspberry Pi GPIO header using a pair of female-to-female jumper wires.</p>
<p><em>This tutorial can be found in <a href="/magpi/issues/37/">The MagPi 37</a></em></p>
<h3>You&#8217;ll need</h3>
<p>Photoresistor (almost any one will work for this project)</p>
<p>2× female-to-female jumper wires</p>
<p>USB Wi-Fi adaptor (unless your fridge has an Ethernet socket nearby)</p>
<h3>Detecting Darkness</h3>
<p>Unlike an Arduino, for example, a Raspberry Pi does not have analogue inputs that can measure a voltage. It does, however, have digital inputs; if the voltage at a digital input exceeds about 1.65V (half of 3.3V), then the input is read by the Raspberry Pi as HIGH, otherwise it is counted as LOW. So, although you can’t use a photoresistor with a Raspberry Pi to give a measurement of the light level (not without a few extra components anyway), you can use a photoresistor to tell if it’s dark or light.</p>
<p>The digital input pin (GPIO pin 18) has its internal pull-up resistor enabled. So, while the pull-up resistor is trying to pull pin 18 HIGH, the photoresistor will try to pull it low. They are in a of tug-of-war and if the pull-up resistor is winning, the input will be HIGH; if the photoresistor is winning, it will be LOW.</p>
<p>The more light falling on a photoresistor, the lower the resistance (the stronger it pulls pin 18 towards 0V). Typically, a photoresistor will have a resistance of a few hundred to a few thousand ohms when it’s in the light. If you make a photoresistor really dark (say inside a fridge), then its resistance rises to several mega-ohms (millions of ohms). At this point, the built-in pull-up resistor (50 to 100 kilo-ohms) will be easily winning and the input will be HIGH.</p>
<h3>If This Then That (IFTTT)</h3>
<p><a href="https://ifttt.com/">IFTTT</a> is a web service that allows you to set up triggers that then cause an action. For example, you could create an IFTTT ‘Recipe’ that sends you an email (action) whenever someone mentions you on Twitter (trigger). As well as actions and triggers from all sorts of social media and email services, IFTTT can be set up to work with physical events, such as your fridge door opening.</p>
<p>The way this works is that the Raspberry Pi sends a web request to IFTTT as a trigger and then IFTTT performs whatever action you have specified for it. In this case, that is sending an email.</p>
<p>The various channels available to IFTTT often require their own logins, so IFTTT will, from time to time, ask you to enter a user name and password for that channel.</p>
<h3>Building the Project</h3>
<p><strong>STEP-01</strong> Connect the photoresistor</p>
<p>Connect the two leads of the photoresistor to the female-to-female jumper wires. It does not matter which way around the photoresistor is connected. The other ends of the jumper wires are connected to GND and GPIO 18 of the Raspberry Pi.</p>
<p><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/construction_01.jpg"><img class="alignnone wp-image-649" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/construction_01.jpg" alt="Photoresistor" width="550" height="450" /></a></p>
<p>If the photoresistor leads are a bit loose in the jumper wire sockets, bend a little zigzag into them so that they stay firmly in the sockets. If you are worried about the legs of the photoresistor touching each other, you can shorten them with snips.</p>
<p><strong>STEP-02</strong> Start a new recipe in IFTTT</p>
<p>If you don’t have one already, create an account on IFTTT (ifttt.com). Then click on the ‘Create a Recipe’ button.</p>
<p><strong>STEP-03</strong> Create a Maker Channel trigger</p>
<p>Click on the IF part of the new recipe and search for the Maker Channel in the list of channel icons that are shown. Select the only trigger option available (Receive a web request) and enter the text ‘fridge_alert’ into the Event Name field.</p>
<p><strong>STEP-04</strong> Choose an action</p>
<p>Now we come to the THAT part of IFTTT. So, click on Action, choose the Email action channel and then select ‘Send me an email’.</p>
<p><strong>STEP-05</strong> Complete the action fields</p>
<p>You now need to fill in the fields. The ‘subject’ field will become the email subject, while the body field will contain the text of the email. Notice the use of the special names contained between {{ and }}. These are called ‘ingredients’ and allow you to customise the text. In this case, the ‘OccuredAt’ is a timestamp for when the trigger event happened.</p>
<p><strong>STEP-06</strong> Complete the recipe</p>
<p>After you have completed the action, you will return to a summary of the recipe. Click the ‘Create a Recipe’ button to actually create the recipe and make it active.</p>
<p><strong>STEP-07</strong> Find your secret key</p>
<p>Bad things could happen if just anyone were allowed to trigger emails to be sent using IFTTT. So, when the web request is sent from Python to trigger the email, it must be accompanied by a secret key. To find that key, click on the Channels tab at the top of the IFTTT webpage and then find the Maker Channel. In a little while, you are going to need to paste the secret key into your Python program.</p>
<div id="attachment_652" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/ifttt.png"><img class="wp-image-652" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/ifttt.png" alt="Our If That Than This recipe is complete" width="550" height="342" /></a><p class="wp-caption-text">Our If This Than That recipe is complete</p></div>
<p>Now that the hardware side of the project is complete, and IFTTT has been configured, we need to look at the Python program that will send the web requests to trigger IFTTT.</p>
<p>Download the Python program for this project using the following commands:</p><pre class="crayon-plain-tag">$ cd /home/pi
$ git clone https://github.com/simonmonk/pi_magazine.git</pre><p>This command will actually bring down the code for all the projects in the author’s MagPi series, so if you have already issued this command for one of the earlier articles, change directory to pi_magazine and run the following command to update your directory with this project (07_fridge_monitor):</p><pre class="crayon-plain-tag">$ git pull</pre><p></p>
<h3>How the code works</h3>
<p>The Python code for this fridge monitor project is pretty straightforward. If you are interested in how the code works, load it up into a text editor while we go through it.</p>
<p>The first section of code includes all of the libraries you need. This includes the RPi.GPIO library that is needed to interface with the photoresistor and the urllib2 library responsible for sending the web request to IFTTT.</p>
<p>The next section contains variables that are used to configure the program. EVENT must match the text that you specified as the Event Name when you created the trigger. You need to replace the value of the KEY variable with your key that you found in step 7.</p>
<p>The function send_event will be called by the main part of the program when IFTTT needs to be notified. The response from the web request is printed out, just to provide useful information while you are getting the project working.</p>
<p>The main program loop is contained in a try: finally: block, so that the GPIO pins will be tidied up when the program exits. The main loop inside while True: will keep running until you quit the program with CTRL+C. It checks to see if LIGHT_PIN is 0, indicating that the fridge door has been opened. When this happens, send_event is called.</p>
<p>To prevent a whole series of events being sent every time the fridge door is opened, two measures are taken. First, a while loop does nothing while the door is still open, to prevent repeat triggering every time around the outer loop. Second, when the door is finally shut, the program sleeps for a minute to prevent any further triggerings within that minute.</p>
<h3>Using your fridge monitor</h3>
<p>If you want to make your project a bit more permanent, you could tape the photoresistor to the top-inside surface of the fridge, rather than just letting it dangle like we did.</p>
<p>Before running the Python program, you can test out your recipe from the command line using the wget utility. Type the following command into LXTerminal. You will need to substitute your secret key.</p><pre class="crayon-plain-tag">$ curl https://maker.ifttt.com/trigger/fridge_alert/with/key/cyR3vPNFlP9K32W4NZB9cd</pre><p>You’ll then see the message, ‘Congratulations! You’ve fired the fridge_alert event’.</p>
<p>Check your inbox and you should see an email from IFTTT. If anything went wrong, you should get an error message in place of the congratulations. You can also see the logs for your recipe on the IFTTT website by selecting the recipe and then clicking the icon that looks like a series of bullet points.</p>
<p>Start the fridge monitor program with the following command:</p><pre class="crayon-plain-tag">sudo python fridge_monitor.py</pre><p>IFTTT is a very powerful system, so you might like to experiment by editing the recipe and changing the action so that it tweets or changes your Facebook status instead of sending an email.</p>
<p>Having a keyboard, mouse, and monitor attached to your fridge-mounted Pi is fine during testing, but really, it would be better to have the fridge monitor program start automatically when the Raspberry Pi first starts up. To do this, run the following command to make the program executable.</p><pre class="crayon-plain-tag">sudo chmod +x fridge_monitor.py</pre><p>Then, edit the file /etc/rc.local with the command:</p><pre class="crayon-plain-tag">$ sudo nano /etc/rc.local</pre><p>Add the following line after the first block of comment lines that begin with #.</p><pre class="crayon-plain-tag">$ sudo /home/pi/pi_magazine/07_fridge_monitor/fridge_monitor.py &amp;</pre><p>Restart your Raspberry Pi and this time the fridge monitor program should start up automatically.</p>
<h3>Code listing</h3>
<p></p><pre class="crayon-plain-tag">import time
import RPi.GPIO as GPIO
import urllib2

LIGHT_PIN = 18   # photoresistor pin
EVENT = ‘fridge_alert’
BASE_URL = ‘https://maker.ifttt.com/trigger/’
KEY = ‘cyR3vPNFlP9K32W4NZB9cd’

# Configure the GPIO pin
GPIO.setmode(GPIO.BCM)
GPIO.setup(LIGHT_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)

def send_event():
    response = urllib2.urlopen(
BASE_URL + EVENT + ‘/with/key/’ + KEY)
    print(response.read())

try:
    while True:
        if GPIO.input(LIGHT_PIN) == 0:
            # Its light (door open)
            send_event()
            # Do nothing until the doior is closed again
            while GPIO.input(LIGHT_PIN) == 0:
                time.sleep(0.1)
            # Do nothing for a further minute anyway
            print(“Wait a minute”)
            time.sleep(60)
            print(“Monitoring again”)

finally:
    print(‘Cleaning up GPIO’)
    GPIO.cleanup()</pre><p><div id="attachment_651" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/installed.jpg"><img class="wp-image-651" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/installed.jpg" alt="The fridge monitor, protecting your fridge" width="550" height="984" /></a><p class="wp-caption-text">The fridge monitor, protecting your fridge</p></div></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspberry-pi-fridge-monitor/">Raspberry Pi fridge monitor</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-fridge-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First 30 issues of The MagPi free on Google Play and iTunes</title>
		<link>https://www.raspberrypi.org/magpi/first-30-issues-of-magpi-free-on-google-play-and-itunes/</link>
		<comments>https://www.raspberrypi.org/magpi/first-30-issues-of-magpi-free-on-google-play-and-itunes/#disqus_thread</comments>
		<pubDate>Tue, 20 Oct 2015 10:50:54 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[legacy]]></category>
		<category><![CDATA[magpi]]></category>
		<category><![CDATA[original]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=636</guid>
		<description><![CDATA[<p>Get every legacy issue for free on the dedicated MagPi Android and iOS app</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/first-30-issues-of-magpi-free-on-google-play-and-itunes/">First 30 issues of The MagPi free on Google Play and iTunes</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Did you know you could get The MagPi on <a href="https://play.google.com/store/apps/details?id=com.raspberry.magpi">Google Play</a> and <a href="https://itunes.apple.com/gb/app/the-magpi-magazine/id972033560?mt=8">Apple&#8217;s iTunes</a>? You can subscribe to the magazine from there and buy our individual issues &#8211; however they only used to go back to the relaunch from earlier in 2015. That’s over 30 issues missing from The MagPi’s history!</p>
<p>We’ve fixed that though. Not only are all the previous issues of The MagPi up on our app, but they’re all completely free, forever. So as well as being able to read all our new and current issues, you can catch up on all the past issues while waiting for the latest one to arrive.</p>
<div id="attachment_637" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/IMG_0092.jpg"><img class="wp-image-637" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/IMG_0092.jpg" alt="Old and new, every issue of the MagPi is now available" width="550" height="733" /></a><p class="wp-caption-text">Old and new, every issue of the MagPi is now available</p></div>
<p>Head over to the <a href="https://play.google.com/store/apps/details?id=com.raspberry.magpi">Play Store to grab the Android version</a>, and the <a href="https://itunes.apple.com/gb/app/the-magpi-magazine/id972033560?mt=8">iTunes Appstore for the iOS version</a> now to get some free mags!</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/first-30-issues-of-magpi-free-on-google-play-and-itunes/">First 30 issues of The MagPi free on Google Play and iTunes</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/first-30-issues-of-magpi-free-on-google-play-and-itunes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Scratch review</title>
		<link>https://www.raspberrypi.org/magpi/new-scratch-review/</link>
		<comments>https://www.raspberrypi.org/magpi/new-scratch-review/#disqus_thread</comments>
		<pubDate>Fri, 16 Oct 2015 15:32:36 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[GPIO]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scratch]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=629</guid>
		<description><![CDATA[<p>Tucked inside Raspbian Jessie is a revamped version of Scratch full of new features. Lucy Hattersley takes it for a spin</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/new-scratch-review/">New Scratch review</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="scratch.mit.edu">Scratch</a> is one of the best ways to introduce young people into the joys of coding.</p>
<p>Developed by MIT, specifically to help young people learn to code, Scratch is a visual editor with characters (known as Sprites) and blocks that react to, and control, the sprites. The blocks click together in much the same way that code is written, and clicking the blocks together creates programs.</p>
<p>The Raspberry Pi foundation&#8217;s aim to build tiny and affordable computers for kids gels pretty nicely with Scratch&#8217;s aim to help young people learn to code, so it&#8217;s no surprise to see Scratch form part of the stock Raspbian operating system.</p>
<p>What you may not have noticed, is that the recent Raspbian Jessie update contained a revamped version of Scratch packing some great new features.</p>
<p>The new version of Scratch is based upon the same edition of Scratch (version 1.4) but it now runs much faster (up to 10 times as fast in some instances) and has native support for the GPIO pins. Let&#8217;s handle the speed boost first.</p>
<h3>The need for Speed</h3>
<p>While Scratch is developed by MIT, it&#8217;s brought to the Raspberry Pi thanks to the hard work of a developer called Tim Rowledge (rowledge.org), and it&#8217;s from his endeavours that we should thank for Scratch&#8217;s souped-up engine.</p>
<p>Scratch was originally developed in a language called Smalltalk, and it runs inside a Squeak virtual machine (VM). Tim has spent time a lot of his time ensuring that Squeak runs on various ARM-based systems like the Raspberry Pi (mostly because he&#8217;s a RISC OS fan). Tim says he spent time &#8220;rewriting some of the more egregiously ugly code, improve algorithms, tweak VM configurations and so on.&#8221;</p>
<p>While direct speed comparisons depend on a lot of factors, a version of Pac-Man created in Scratch by Andrew Oliver is now running at a playable 30fps (up from 16fps on the Raspberry Pi model B and a mere 1 fps on the original Pi).</p>
<p>This faster speed isn&#8217;t just a nicety. The way Scratch gets kids coding is by recreating games, and game-like environments. The improved Scratch performance prevents young people from hitting a performance limitation and switching off.</p>
<h3>Using Pins</h3>
<p>If the speed boost wasn&#8217;t enough, Scratch now incorporates GPIOServer so you can directly access the pins on your Raspberry Pi.</p>
<p>It&#8217;s been referred as a &#8220;first pass&#8221; at GPIO implementation, and it&#8217;s a bit clunky. Scratch has no GPIO blocks. Instead, you use the Broadcast block to set up pins, monitor input and set them on or off. It follows the BCM standard, so you add a Broadcast block and enter config17out to set pin 17 to output, and then gpio17on and gpio17off to turn the pin on and off.</p>
<p>For input, you use config17in and then combine an If control block with an Operator and Sensing block to to get a block that says: If GPIO 17 sensor value = 0/1. When you add GPIO pins they appear in the sensor blocks</p>
<p>We would like an easier implementation for young coders to understand, but the good news is that there are lots of examples included with the installation, and tutorials are being developed (or rewritten) on the Raspberry Pi website. So, you won&#8217;t be short of assistance in getting to grips with it.</p>
<div id="attachment_633" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Scratch_GPIO.png"><img class="wp-image-633" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Scratch_GPIO.png" alt="The GPIO additions are a great way to open up Scratch" width="550" height="309" /></a><p class="wp-caption-text">The GPIO additions are a great way to open up Scratch</p></div>
<h3>Teaching with GPIO</h3>
<p>There is something truly joyous about combining Scratch with GPIO. It breaks the barrier between Scratch visual programming and physical hardware. You can create LED traffic lights that respond to sprites of cars; or build a joystick from switches to control on-screen characters. These are software and hardware projects that will inspire kids to get started.</p>
<p>As a bonus, many Hats are supported. We rather like the idea of hooking up Scratch characters to Pibrella, PiGlow and SenseHAT devices.</p>
<h3>Send in the clones</h3>
<p>If there is one slight wobble, it&#8217;s that this is still Scratch 1.4, rather than the newer Scratch 2.0. This is because MIT moved over to Adobe Flash for Scratch 2.0, and the offline app installs using Adobe Air. So we&#8217;re stuck with the older version of Scratch until either Adobe starts to support ARM devices with Adobe Air, or MIT either rewrites Scratch in a different language.</p>
<p>This isn&#8217;t a big deal for the most part, but Scratch 2.0 does include a feature called cloning (via the Create Clone Of block), which is very close to the object-orientated process of instantiation and inheritance. This is something we&#8217;d love to see in Scratch on the Raspberry Pi, but we&#8217;ll take GPIO access over it any day.</p>
<h3>Last Word</h3>
<p><strong>4/5</strong></p>
<p>The new version of Scratch breaks the barrier between hardware and software and creates an ever more fun learning environment. And the speed boost makes more exciting programs playable. It&#8217;s a shame development is revving on version 1.4, but don&#8217;t let that spoil things. This is a fantastic update.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/new-scratch-review/">New Scratch 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/new-scratch-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sonic Pi: Coded Beats</title>
		<link>https://www.raspberrypi.org/magpi/sonic-pi-coded-beats/</link>
		<comments>https://www.raspberrypi.org/magpi/sonic-pi-coded-beats/#disqus_thread</comments>
		<pubDate>Thu, 15 Oct 2015 18:03:50 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Walkthrough]]></category>
		<category><![CDATA[amen break]]></category>
		<category><![CDATA[sonic pi]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=621</guid>
		<description><![CDATA[<p>Sonic Pi creator Sam Aaron  continues his essential new series  with one of the most influential drum breaks in music history...</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/sonic-pi-coded-beats/">Sonic Pi: Coded Beats</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><em>This tutorial can be found in <a href="/magpi/issues/37/">The MagPi 37</a></em></p>
<p>One of the most exciting and revolutionary technical developments in modern music was the invention of computer-based samplers in the late 1970s. These electronic boxes of tricks allowed you to record any sound into them and then manipulate and play back those sounds in many interesting ways. For example, you could take an old record, find a drum solo (or break), record it into your sampler, and then play it back on repeat at half-speed to provide the foundation for your latest beats. This is how early hip-hop music was born, and today it’s almost impossible to find electronic music that doesn’t incorporate samples of some kind. Using samples is a really great way of easily introducing new and interesting elements into your live-coded performances.So where can you get a sampler? Well, you already have one: it’s your Raspberry Pi! The built-in live-coding app Sonic Pi has an extremely powerful sampler built into its core. Let’s play with it!</p>
<h3>The Amen Break</h3>
<p>One classic and immediately recognisable drum break sample is called the Amen Break. It was first performed in 1969 in the song Amen Brother by The Winstons, as part of a drum break. However, it was when it was discovered and sampled by early hip-hop musicians in the 1980s that it started being heavily used in a wide variety of other musical styles such as drum and bass, breakbeat, hardcore techno, and breakcore.</p>
<p>I’m sure you’re excited to hear that it’s also built<br />
right into Sonic Pi. Clear up a buffer and throw in the<br />
following code:</p><pre class="crayon-plain-tag">sample :loop_amen</pre><p>Hit Run and boom! You’re listening to one of the most influential drum breaks in the history of dance music. However, this sample wasn’t famous for being played as a one-shot: it was built for being looped.</p>
<h3>Beat stretching</h3>
<p>Let’s loop the Amen Break by using our old friend the live_loop, introduced in <a href="/magpi/issues/36/">issue 36&#8217;s tutorial</a>:</p><pre class="crayon-plain-tag">live_loop :amen_break do
	sample :loop_amen
	sleep 2
end</pre><p>OK, so it is looping, but there’s an annoying pause every time round. That is because we asked it to sleep for 2 beats; however, with the default BPM of 60, the :loop_amen sample only lasts for 1.753 beats. We therefore have a silence of 2 &#8211; 1.753 = 0.247 beats. Even though it’s short, it’s still noticeable.</p>
<p>To fix this issue, we can use the beat_stretch: opt to ask Sonic Pi to stretch (or shrink) the sample to match the specified number of beats.</p><pre class="crayon-plain-tag">live_loop :amen_break do
  	sample :loop_amen, beat_stretch: 2
  	sleep 2
end</pre><p>Now we’re dancing! Although, perhaps we want speed it up or slow it down to suit the mood. Playing with time OK, so what if we want to change styles to old-school hip-hop or breakcore? One simple way of doing this is to play with time or, in other words, to mess with the tempo. This is super-easy in Sonic Pi: just throw a use_bpm into your live loop&#8230;</p><pre class="crayon-plain-tag">live_loop :amen_break do
	use_bpm 30
	sample :loop_amen, beat_stretch: 2
	sleep 2
end</pre><p>Whilst you’re rapping over those slow beats, notice that we’re still sleeping for 2 and our BPM is 30, yet everything is in time. The beat_stretch opt works with the current BPM to make sure everything just works. Now, here’s the fun part. Whilst the loop is still live, change the 30 in the use_bpm 30 line to 50 . Whoa, everything just got faster yet kept in time! Try going faster: up to 80&#8230;to 120&#8230;now go crazy and punch in 200!</p>
<h3>Filtering</h3>
<p>Now we can live-loop samples, let’s look at some of the most fun opts provided by the sample synth. First up is cutoff: , which controls the cutoff filter of the sampler. This is disabled by default, but you can easily turn it on:</p><pre class="crayon-plain-tag">live_loop :amen_break do
 	use_bpm 50
 	sample :loop_amen, beat_stretch: 2, cutoff: 70
 	sleep 2
end</pre><p>Go ahead and change the cutoff: opt. For example, increase it to 100, hit Run, and wait for the loop to cycle round to hear the change in the sound. Notice that low values like 50 sound mellow and bassy, and high values like 100 and 120 are more full-sounding and raspy. This is because the cutoff: opt will chop out the high-frequency parts of the sound, just like a lawnmower chops off the top of the grass. The cutoff: opt is like the length setting, determining how much grass is left over.</p>
<h3>Slicing</h3>
<p>Another great tool to play with is the slicer FX. This ill chop (slice) the sound up. Wrap the sample line ith the FX code like this:</p><pre class="crayon-plain-tag">live_loop :amen_break do
	use_bpm 50
	with_fx :slicer, phase: 0.25, wave: 0, mix: 1 do
    sample :loop_amen, beat_stretch: 2, cutoff: 100
	end
	sleep 2
end</pre><p>Notice how the sound bounces up and down a little more. (You can hear the original sound without the FX by changing the mix: opt to 0 ). Now, try playing around with the phase: opt. This is the rate (in beats) of the slicing effect. A smaller value like 0.125 will slicer faster and larger values like 0.5 will slice more slowly. Notice that successively halving or doubling the phase: opt value tends to always sound good. Finally, change the wave: opt to one of 0, 1, or 2 and hear how it changes the sound. These are the various wave shapes. 0 is a saw wave, (hard in, fade out), 1 is a square wave (hard in, hard out), and 2 is a triangle wave (fade in, fade out).</p>
<h3>Bringing it all together</h3>
<p>Finally, let’s revisit the early Bristol drum and bass scene. Don’t worry too much about what all this code means; just type it in, hit Run, then start live-coding it by changing opt numbers and see where you can take it. Please do share what you create! See you next time&#8230;</p>
<h3>Code listing</h3>
<p></p><pre class="crayon-plain-tag">use_bpm 90
use_debug false
live_loop :amen_break do
	p = [0.125, 0.25, 0.5].choose
	with_fx :slicer, phase: p, wave: 0, mix: rrand(0.7, 1), reps: 4 do
		r = [1, 1, 1, -1].choose
		sample :loop_amen, beat_stretch: 2, rate: r , amp: 2
		sleep 2
	end
end

live_loop :bass_drum do
	sample :bd_haus, cutoff: 70, amp: 1.5
	sleep 0.5
end

live_loop :landing do
	bass_line = (knit :e1, 3, [:c1, :c2].choose, 1)
	with_fx :slicer, phase: [0.25, 0.5].choose,invert_wave: 1, wave: 0 do
		s = synth :square, note: bass_line.tick, sustain: 4, cutoff: 60
		control s, cutoff_slide: 4, cutoff: 120
	end
	sleep 4
end</pre><p></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/sonic-pi-coded-beats/">Sonic Pi: Coded Beats</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/sonic-pi-coded-beats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best reads: Python programming</title>
		<link>https://www.raspberrypi.org/magpi/best-reads-python-programming/</link>
		<comments>https://www.raspberrypi.org/magpi/best-reads-python-programming/#disqus_thread</comments>
		<pubDate>Wed, 14 Oct 2015 08:45:37 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=531</guid>
		<description><![CDATA[<p>Python is a great first programming language, but you need to choose a book that matches your learning style. Find out which of our five essential Python programming books suits you…</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/best-reads-python-programming/">Best reads: Python programming</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2><span class="s1"><b><a href="http://tinyurl.com/25axvjt">Learn Python the Hard Way (Third Edition)<b></b></a></b></span></h2>
<h4 style="text-align: left;"><span class="s1"><b><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Python-the-hard-way.png"><img class="alignright wp-image-547" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Python-the-hard-way.png" alt="Python-the-hard-way" width="140" height="221" /></a><br />
</b></span><span class="s1"><b>Author:</b></span><span class="s2"> Zed Shaw<b><br />
</b></span><span class="s1"><b>Publisher: </b></span><span class="s2">Addison Wesley<b><br />
</b></span><span class="s3"><b>Price:</b></span><span class="s4"> £24.99 (free online)<b><br />
</b></span><span class="s3"><b>ISBN:</b></span><span class="s4"> 978-0321884916</span></h4>
<p class="p1" style="text-align: left;"><span class="s1">The “hard way” is typing it all in until you absorb the syntax and spot mistakes. Works well, but Shaw doesn’t cover Python 3</span><span class="s2">.</span></p>
<h2 class="p1"><span class="s1"><b><a href="http://tinyurl.com/pt567yh">Program Arcade Games: With Python and Pygame</a></b></span></h2>
<p><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Arcade-games.png"><img class="alignright wp-image-548" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Arcade-games.png" alt="Arcade-games" width="139" height="221" /></a></p>
<p class="p1"><span class="s1"><b>Author:</b></span><span class="s2"><b> Dr. Paul Vincent Craven<br />
</b></span><span class="s1"><b>Publisher: </b></span><span class="s2"><b>CreateSpace<br />
</b></span><span class="s1"><b>Price:</b></span><span class="s2"><b> £21.99 (free online)<br />
</b></span><span class="s1"><b>ISBN:</b></span><span class="s2"><b> 978-1500825966</b></span></p>
<p class="p1"><span class="s1">Balances games and programming exercises to keep the learner going. Very popular: available in several languages on the website.</span></p>
<h2 class="p1"><span class="s1"><a href="http://tinyurl.com/bgj8zq9">Writing Idiomatic Python 3.3</a></span></h2>
<p><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Idiomatic-Python.png"><img class="alignright wp-image-546" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Idiomatic-Python.png" alt="Idiomatic-Python" width="139" height="220" /></a></p>
<h4 class="p1"><span class="s1">Author:</span><span class="s2"> Jeff Knupp<br />
</span><span class="s1">Publisher: </span><span class="s2">CreateSpace<br />
</span><span class="s1">Price:</span><span class="s2"> £13.97<br />
</span><span class="s1">ISBN:</span><span class="s2"> 978-1482374810</span></h4>
<p class="p1"><span class="s1">Get pythonic from the start: concise guide to idiomatic code; best after another text, but suits some brave learners.</span></p>
<h2 class="p1"><span class="s1"><b><a href="http://tinyurl.com/a8p94qy">Dive Into Python 3</a></b></span></h2>
<p><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Dive-into-python.png"><img class="alignright wp-image-545" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Dive-into-python.png" alt="Dive-into-python" width="138" height="223" /></a></p>
<p class="p1"><span class="s1"><b>Author:</b></span><span class="s2"><b> Mark Pilgrim<br />
</b></span><span class="s3"><b>Publisher: </b></span><span class="s4"><b>APress<br />
</b></span><span class="s1"><b>Price:</b></span><span class="s2"><b> £35.49 (free online)<br />
</b></span><span class="s1"><b>ISBN:</b></span><span class="s2"><b> 978-1430224150</b></span></p>
<p class="p1"><span class="s1">Dives straight into code then the explanations follow. A concise but comprehensive start that will appeal to independent study types.</span></p>
<h2 class="p1"><span class="s1"><b><a href="http://tinyurl.com/mehbnpo">Learning Python – 5th Edition</a></b></span></h2>
<p><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Learning-python.png"><img class="alignright wp-image-537" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Learning-python.png" alt="Learning-python" width="140" height="221" /></a></p>
<p class="p1"><span class="s1"><b>Author:</b></span><span class="s2"><b> Mark Lutz<br />
</b></span><span class="s3"><b>Publisher: </b></span><span class="s4"><b>O’Reilly<br />
</b></span><span class="s1"><b>Price:</b></span><span class="s2"><b> £43.50<br />
</b></span><span class="s1"><b>ISBN:</b></span><span class="s2"><b> 978-1449355739</b></span></p>
<p class="p1"><span class="s1">Comprehensive doorstop (1600 pages); great for programmers new to Python and (Object Orientation). Covers Python 2.7 and 3.3.</span></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/best-reads-python-programming/">Best reads: Python programming</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/best-reads-python-programming/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>BedBot alarm project</title>
		<link>https://www.raspberrypi.org/magpi/bedbot-alarm-project/</link>
		<comments>https://www.raspberrypi.org/magpi/bedbot-alarm-project/#disqus_thread</comments>
		<pubDate>Tue, 13 Oct 2015 09:56:52 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[alarm]]></category>
		<category><![CDATA[bedbot]]></category>
		<category><![CDATA[SAD]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=523</guid>
		<description><![CDATA[<p>An over-engineered alarm clock built into a bedside table that wakes you up with music. It’s also powered by a Raspberry Pi</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/bedbot-alarm-project/">BedBot alarm project</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><em>The full article can be found in <a href="/magpi/issues/37/">The MagPi 37</a></em></p>
<p>When you think of an alarm clock, you probably get an image of a silver, analogue clock with bells on top. Thanks, television. No one really uses that any more, starting with the invention of clock radios and the Teasmade, and right up to smartphones acting as our alarm clock and morning newspaper. What’s the next step in the evolution of waking up in the morning? Well, it probably won’t be the Bedbot, but it’s really cool either way.</p>
<p>The Bedbot is, according to its creator Peter Roca, “My Daytime Initialization Assistant – a digital alarm clock/radio with a fancy wooden enclosure. It is a crude, over-engineered, expensive piece of hardware.”</p>
<p>The idea came to him after being a little fed up with the kind of radio programming he was getting when he woke up in the morning (apparently a little later than most people). “I realised that I could use my new RPi to create a radio device that could bypass trivial things such as NPR’s morning program schedule.”</p>
<div id="attachment_526" style="width: 410px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/bedbot.jpg"><img src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/bedbot.jpg" alt="The unassuming, and very tasteful, BedBot alarm" width="400" height="590" class="size-full wp-image-526" /></a><p class="wp-caption-text">The unassuming, and very tasteful, BedBot alarm</p></div>
<p>The Raspberry Pi is built into a walnut and maple side table, with a little screen that flips up when the alarm starts the radio. From the images, you can see that the relatively small table has a lot of electronics packed into it. The table was also made by Peter.</p>
<p>“I started woodworking about four years ago in my free time,” he tells us. “I really enjoy creating interactive systems which is why this project was so fun for me. Working in my shop is cathartic and it offsets the lethargy that working in an office inevitably encourages. I think a lot of software developers eventually pick up some kind of hobby that requires using your hands for something other than typing.”</p>
<p>The electronics comprise the Pi, WiFi and Adafruit PiTFT screen, along with a small OLED, USB audio cards and custom speaker system, servos for the screen to flip up, several buttons, and lots of other custom-built bits to the get the look and effect he wanted. Next came the programming, which wasn’t too complex.</p>
<p>“The only complicated part is how I designed the Python module system. Each major feature of Bedbot is considered a ‘module’ and has no dependencies on other modules, so that modules can be added or removed without breaking anything else&#8230; if it’s configured correctly, Bedbot will find the module and load it automatically into the menu system. There are hooks to allow for modules to communicate with each other through a broadcast system. I designed it this way to allow for anyone to write their own module without having to dig into the code of the entire system.”</p>
<p>The proof is in the pudding, as they say, so how well does it work?</p>
<p>“Well, I haven’t been late to work yet!”</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/bedbot-alarm-project/">BedBot alarm project</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/bedbot-alarm-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get started with Sense HAT</title>
		<link>https://www.raspberrypi.org/magpi/get-started-with-sense-hat/</link>
		<comments>https://www.raspberrypi.org/magpi/get-started-with-sense-hat/#disqus_thread</comments>
		<pubDate>Mon, 12 Oct 2015 13:46:37 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Step by Step]]></category>
		<category><![CDATA[astro pi]]></category>
		<category><![CDATA[sense hat]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=515</guid>
		<description><![CDATA[<p>The exciting new Sense HAT sensor add-on for the Raspberry Pi is very easy to use once you know how. We’ll show you how, then.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/get-started-with-sense-hat/">Get started 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><em>This tutorial can be found in <a href="/magpi/issues/38/">The MagPi 38</a></em></p>
<p>The Sense HAT is an amazing piece of kit and hopefully by now you’ve been able to snag yourself one.<br />
While it’s definitely easy to use, there’s a few things you need to learn first to get it going as it’s reliant on programming it via Python scripts at the moment. The commands are very simple though, so we can show you in only a couple of pages how to start getting the most out of your new toy!</p>
<p><strong>STEP-01</strong> Installing the Sense HAT</p>
<p>Getting the Sense HAT ready to use is quite simple. Turn off your Raspberry Pi and make sure your Raspbian SD card is inserted if it isn’t already. Place the Sense HAT on the GPIO pins, carefully aligning them before pressing down firmly so that it properly attaches to the Raspberry Pi. Once that’s done, turn the Raspberry Pi back on. If it’s attached properly, the LEDs on the SenseHAT will light up in a rainbow pattern during boot time. When it gets to the desktop, the pattern might turn off but that’s normal.</p>
<p><strong>STEP-02</strong> Sense HAT library</p>
<p>While the Sense HAT is now accessible, if you&#8217;re using an older version of Raspbian it’s not fully functional as it is. You’ll need to download a custom script if you&#8217;re not on Raspbian jessie that will install the necessary libraries for Python to access it, and update some of the core kernel code so that it runs properly. You can download and install the update by opening the terminal and running these two commands:</p><pre class="crayon-plain-tag">$ sudo apt-get install sense-hat
$ sudo pip-3.2 install pillow</pre><p>After both commands have run their course (they might take a few minutes each to complete) you’ll need to reboot the Raspberry Pi. You might as well do this from the command line with:</p><pre class="crayon-plain-tag">$ sudo reboot</pre><p><strong>STEP-03</strong> Get started with Python</p>
<p>We can start controlling the Sense HAT by writing code in Python. As the Sense HAT is using the GPIO pins, we need to have administrative privileges to execute the scripts. This means opening IDLE using sudo in the command line with:</p><pre class="crayon-plain-tag">$ sudo idle3 &amp;</pre><p>Open up a new window to start writing a Python script. Each Sense HAT script needs to begin with two lines to import the relevant Python module, and then a line to turn it into a variable that makes writing the code easier.</p><pre class="crayon-plain-tag">from sense_hat import SenseHat

sense = SenseHat()</pre><p><strong>STEP-04</strong> Text and pictures</p>
<p>The easiest thing to start off with is to get text scrolling along the LED display. The library for the Sense HAT will automatically turn a string of words into a scrolling banner across the matrix. A line like the following will create it:</p><pre class="crayon-plain-tag">sense.show_message(“Hello World!”)</pre><p>You can control the scroll speed and colours as well. You can also manipulate the individual LEDs by telling the script which pixel to change, and give it an RGB colour variable with something like:</p><pre class="crayon-plain-tag">sense.set_pixel(0, 0, [0, 0, 255])</pre><p>Put this in a variable set the top left corner pixel as blue</p>
<p><strong>STEP-05</strong> Environmental sensors<br />
Using two of Sense HAT’s sensors, you can measure temperature (in degrees C), pressure (in millbars) and relative humidity (as a percentage). You can get the three individual measurements with:</p><pre class="crayon-plain-tag">sense.get_temperature()
sense.get_pressure()
sense.get_humidity()</pre><p>You’ll have to attach them to a variable thought (e.g., t = sense.get_temperature()) so that you can print out the reading or display it on the LED matrix.</p>
<p><strong>STEP-06</strong> Motion sensing</p>
<p>The gyroscope, accelerometer and magnetometer can be used to detect motion in real time. This is a little trickier to use than the other parts, as it involves understanding how the three-dimensional values represent the orientation of the Raspberry Pi, and then how the accelerometer can be used to figure out the movement within space. Both the gyroscope and accelerometer functions (get_orientation().values() and get.accelerometer_raw().values() respectively) will return three values from which you can use however you please.</p>
<p>The <a href="https://github.com/raspberrypilearning/astro-pi-guide/blob/master/sensors/movement.md">motion sensor guide</a> on GitHub will explain all you need to know on the motion sensors.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/get-started-with-sense-hat/">Get started 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/get-started-with-sense-hat/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fabscan Pi project &#8211; 3D scanning for all</title>
		<link>https://www.raspberrypi.org/magpi/fabscan-pi-project-3d-scanning-for-all/</link>
		<comments>https://www.raspberrypi.org/magpi/fabscan-pi-project-3d-scanning-for-all/#disqus_thread</comments>
		<pubDate>Mon, 05 Oct 2015 10:26:59 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[3d printing]]></category>
		<category><![CDATA[3d scan]]></category>
		<category><![CDATA[3d scanner]]></category>
		<category><![CDATA[3d scanning]]></category>
		<category><![CDATA[fabscan]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=438</guid>
		<description><![CDATA[<p>Mario Lukas builds 3D scanners from the Raspberry Pi and off-the-shelf components. He tells Lucy Hattersley how it’s done</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/fabscan-pi-project-3d-scanning-for-all/">Fabscan Pi project &#8211; 3D scanning for all</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><em>The full article can be found in <strong><a href="/magpi/issues/38/">The MagPi 38</a></strong></em></p>
<p>Few things in modern life are more fun than 3D-scanning an object, then using a 3D printer to create a copy. But 3D scanners are still very expensive to buy. FabScan is an open-source, DIY 3D laser scanner being developed by René Bohne and Mario Lukas.</p>
<p>Initially, FabScan was connected to an external computer, but Mario and René have recently created a Raspberry Pi version that houses all the components required inside a single box. This Raspberry Pi-powered edition means you can build a complete 3D scanner for under $100 (£65).</p>
<p>The FabScan project has a long history. It started out as a Bachelor’s thesis by Francis Engelman at RWTH University in Aachen (Germany) in 2011. In 2014, development was taken over by Mario and René.</p>
<div id="attachment_439" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Main_Image.jpeg"><img class="wp-image-439" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Main_Image.jpeg" alt="A picture of the Fabscan 3D scanner, a wooden box with laser light visible" width="550" height="411" /></a><p class="wp-caption-text">The wooden case contains a motorized turntable that rotates the object being scanned. It is currently controlled by an Arduino, although a custom Pi HAT is being developed</p></div>
<p>“The FabScan without the Raspberry Pi is an open-source, do-it-yourself 3D laser scanner,” says Mario. “After a few months I realised that people had problems [getting] the FabScan software working on all the different operating systems and hardware setups.</p>
<p>“The FabScan uses a laser cut plywood case,” continues Mario. There is a stepper motor connected to a turntable in the middle.” Inside the case is a 5mW red laser and Logitech Lc270 webcam. The laser and a webcam are mounted in the front of the case. An Arduino with a FabScan shield controls the stepper motor and laser.</p>
<p>You place an object on the turntable so the laser runs across its surface. As the turntable rotates, the webcam monitors the movement of the laser and creates a point cloud of data. The data is turned into a 3D mesh, and this file can be exported and used in 3D software.</p>
<p>“Since I introduced the Raspberry Pi to the FabScan project, the webcam [has been] replaced by the Pi Camera Module,” Mario tells us. “We are developing a FabScan Pi HAT to replace the Arduino and the FabScan Shield as well.”</p>
<p>You can build a FabScan case yourself using sheets of wood, and a complete bill of materials can be found on the project&#8217;s <a href="http://hci.rwth-aachen.de/fabscan_hardware">current website</a>. Alternatively, a FabScan Cube Kit v2 + Electronics bundle can also be ordered from German-based distributor <a href="watterott.com/de/FabScan-Cube-Elektronik">Watterott</a> for €105 (£77).</p>
<div id="attachment_509" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Fabscan_pointcloud.png"><img class="wp-image-509" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/10/Fabscan_pointcloud.png" alt="The scan quality is pretty great" width="550" height="195" /></a><p class="wp-caption-text">The scan quality is pretty great</p></div>
<p>“Anybody who wants to build a FabScan Pi should order the parts and build it,” insists Mario. “We are trying to keep the things as simple as possible, and introducing the Raspberry Pi to the FabScan project was a good approach to improve the usability.</p>
<p>“Most of the work was to write new software for the FabScan,” continues Mario. “The software provides a JavaScript-based web-enabled user interface for scanning. The user can call the local FabScan in a browser and the user interface will show up.</p>
<p>“During the software developing process, I scanned a lot of different rubber ducks, other plastic animals, figures made of gypsum (plaster of Paris), and stuff lying around in my workroom.</p>
<p>“After a scan, you will get a one-to-one sized three-dimensional model of the scanned object,” explains Mario. “The current FabScan Pi software can export the model in [the] STL file format that is mostly used by 3D printers.”</p>
<p>Pushing forward with the FabScan project is a challenge, but Mario and René remain unperturbed.<br />
“At the moment, the FabScan project is spread all over the web,” explains Mario. “In the upcoming weeks, I will try to create a website where all corresponding threads run together.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/fabscan-pi-project-3d-scanning-for-all/">Fabscan Pi project &#8211; 3D scanning for all</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/fabscan-pi-project-3d-scanning-for-all/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Secure your Raspberry Pi with ZYMKEY</title>
		<link>https://www.raspberrypi.org/magpi/secure-your-raspberry-pi-with-zymkey/</link>
		<comments>https://www.raspberrypi.org/magpi/secure-your-raspberry-pi-with-zymkey/#disqus_thread</comments>
		<pubDate>Wed, 30 Sep 2015 12:30:21 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[GPIO]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[usb key]]></category>
		<category><![CDATA[zymkey]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=431</guid>
		<description><![CDATA[<p>Add security to your Raspberry Pi and software by backing the ZYMKEY Kickstarter for private USB and GPIO secure keys</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/secure-your-raspberry-pi-with-zymkey/">Secure your Raspberry Pi with ZYMKEY</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Security is increasingly becoming a concern for computer users, and the Raspberry Pi really should not be the exception to the rule. Although a lot of people use it here and there for fun little projects at home, others take it to meets and maker spaces to show off more elaborate setups. Information can easily be accessed and stolen via the SD cards and other storage due to the nature of the Pi, and there’s very little defense against it.</p>
<div id="attachment_432" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/18a9e1c81dcd48b2a7d89a8c8176b82c_original.png"><img class="wp-image-432" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/18a9e1c81dcd48b2a7d89a8c8176b82c_original.png" alt="All you need to stay secure" width="550" height="139" /></a><p class="wp-caption-text">All you need to stay secure</p></div>
<p>Enter the <a href="https://zymbit.com/zymkey/">ZYMKEY</a>, a physical deterrent to people doing the unquestionable. Both a USB and GPIO header version can be plugged into your Pi with their own embedded private key that makes it much more difficult for people to steal your personal information.</p>
<p>These crypto keys, while an excellent deterrent, need your support to become a reality. The creators at <a href="http://www.zymbit.com">Zymbit</a> are currently Kickstarting the production for the ZYMKEY and need your help to make it a reality. Head over to their <a href="https://www.kickstarter.com/projects/zymbit/zymkey-secure-your-raspberry-pi">Kickstarter page</a> for more information, tech specs and an explanation of their cloud service attached to the project.</p>
<p>Let’s keep our systems secure!</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/secure-your-raspberry-pi-with-zymkey/">Secure your Raspberry Pi with ZYMKEY</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/secure-your-raspberry-pi-with-zymkey/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Raspbian gets a major update to Debian jessie</title>
		<link>https://www.raspberrypi.org/magpi/raspbian-gets-a-major-update-to-debian-jessie/</link>
		<comments>https://www.raspberrypi.org/magpi/raspbian-gets-a-major-update-to-debian-jessie/#disqus_thread</comments>
		<pubDate>Tue, 29 Sep 2015 12:06:22 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[buzz]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[jessie]]></category>
		<category><![CDATA[wheezy]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=429</guid>
		<description><![CDATA[<p>Big things (and small things) are changing in Raspbian as it upgrades to Debian 8.0</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspbian-gets-a-major-update-to-debian-jessie/">Raspbian gets a major update to Debian jessie</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>For over three years now the operating system of choice for the Raspberry Pi has been Raspbian, based on the popular Linux distribution Debian 7.0. At the time, Debian 7 was the ‘testing’ branch of the distro, getting rolling updates and generally getting newer and more up-to-date software than other versions of Linux or even Debian. 7.0. Also known as wheezy (got the Toy Story references, yet?), it soon went ‘stable’ in Debian parlance and 8.0 jessie became the new testing branch of Debian.</p>
<p>That was in 2013, and since then the two year cycle has finished again and jessie has now left testing and become stable. Yet the Raspberry Pi has been stuck on 7.0 and, well, if you’ve read the title of this article, you’ll know that this has changed and Raspbian is now running on jessie.</p>
<div style="width: 560px" class="wp-caption alignnone"><img class="" src="https://www.raspberrypi.org/wp-content/uploads/2015/09/2015-09-15-105236_1920x1080_scrot.png" alt="" width="550" height="309" /><p class="wp-caption-text">There&#8217;s a few extra pieces of software as well!</p></div>
<p>On the surface of it is there’s not a huge number of changes. The desktop interface is the same, but there’s a lot of improvements behind the scenes as well as updated packages and bug fixes all round. LibreOffice is installed by default, the config menu is now on the desktop as a graphical utility and you don’t need to use sudo to access the GPIO pins from Python (or other code) any more.</p>
<p>You can read Simon Long, the man in charge’s, <a href="https://www.raspberrypi.org/blog/raspbian-jessie-is-here">blog about the release on the main Raspberry Pi website</a> and you can see our interview with him (along with a review of Raspbian jessie!) in next month’s MagPi.</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/raspbian-gets-a-major-update-to-debian-jessie/">Raspbian gets a major update to Debian jessie</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/raspbian-gets-a-major-update-to-debian-jessie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skycademy &#8211; mission accomplished</title>
		<link>https://www.raspberrypi.org/magpi/skycademy-mission-accomplished/</link>
		<comments>https://www.raspberrypi.org/magpi/skycademy-mission-accomplished/#disqus_thread</comments>
		<pubDate>Fri, 25 Sep 2015 13:57:06 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[hab]]></category>
		<category><![CDATA[high altitude balloons]]></category>
		<category><![CDATA[space]]></category>
		<category><![CDATA[weather balloons]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=355</guid>
		<description><![CDATA[<p>24 teachers took to the outdoors to launch some high-altitude balloons in a brand-new Picademy</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/skycademy-mission-accomplished/">Skycademy &#8211; mission accomplished</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p class="p1">While Raspberry Pis might be going up in a rocket to the International Space Station for <a href="/magpi/the-sense-hat-touches-down/">Astro Pi</a>, you don’t need to hitch a ride on a Soyuz to get your own Pi into the stratosphere. That’s what the recent Skycademy course was all about: a Picademy designed to show teachers and educators how to get started with high-altitude balloons (HABs).</p>
<p class="p2">“I’d been thinking about the possibility for a while,” says Dave Akerman, who’s well known in the Raspberry Pi community for making Pi-powered HABs, even holding the record for the highest altitude an amateur has streamed images from. “I approached Lance Howarth at Raspberry Pi back in January. It was really when James Robinson joined the Foundation that things started to move, with the planning starting in April.”</p>
<p class="p2">James Robinson is a member of the Raspberry Pi Foundation’s education team, and apparently the Skycademy concept was one of the first event ideas mentioned to him when he joined:</p>
<p class="p2">“Having done a launch myself, I’d seen that there’s not a huge amount involved in each launch, and, although it’s not overly technical, there’s lots of different disciplines. My role in organising Skycademy was to try and bring some educators together to organise all the logistics behind it and sort of hold their hands throughout their first launch to show them that it is possible, to bring them together to work as a team, and really to give them that support during their first launch. Then hopefully they’re going to go away and teach others while doing further launches.”</p>
<p class="p2">So after juggling the places and managing a waiting list, on 24 August four teams of six teachers met from around the UK to start planning a launch over the next two days.</p>
<div id="attachment_425" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/sky1.jpg"><img class="wp-image-425" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/sky1.jpg" alt="The teams meet on the battlefield of space/atmosphere exploration" width="550" height="309" /></a><p class="wp-caption-text">The teams meet on the battlefield of space/atmosphere exploration</p></div>
<p class="p2">“The teams were loosely geographical,” James tells us. “Our Southern team was Exeter to Kent, so it was very loose. We gave them all an overview of high-altitude ballooning; we talked about the different disciplines and things that were involved. We talked about the maths and gave them an overview of the flight and flight profile and how it works. Then we went through a series of workshops showing them how to set up their payload, build a container around it, and how to track and receive any telemetry coming from those payloads. We tried to give them as much preparation on that first day as possible.”</p>
<p class="p2">As the teachers went off for the night, James and Dave’s work wasn’t done, as Dave reveals:</p>
<p class="p2">“James and I then continued late into the evening, getting a receiving station set up at Pi Towers, then grabbed a few hours’ sleep before the launch day.”</p>
<p class="p2"><span class="s1">“Speaking of sleep, we’d both lost plenty of that already, worrying about the wind conditions and landing predictions, both of which were rather poor. At one point I was emailing James at 4am to tell him that we would probably have to cancel the flights!”</span></p>
<p class="p2"><span class="s1">In the end, conditions improved and with a change in launch site, all that was left was the launches.</span></p>
<p class="p2"><span class="s1">“I was really blown away by how quickly they took on board what we’d shown them, as were the two experts that we had. As soon as Dave had demonstrated his launch, the teams just disappeared and were off setting up and launching their own balloons.”</span></p>
<p class="p2">After four successful launches, the teams tracked their balloons and went to retrieve them when they fell back down to Earth following a lofty flight to 35km above sea-level. The final day saw the teams evaluating what they had done and figuring out how they could perform their own launches for students. Skycademy wasn’t just those three days, though, and the attendees will be reporting back over the next several months about launches they’ve been doing.</p>
<div id="attachment_426" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/sky5_small.png"><img class="wp-image-426" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/sky5_small.png" alt="Pale blue dot" width="550" height="310" /></a><p class="wp-caption-text">Pale blue dot</p></div>
<p class="p2"><span class="s1">“The event was just the beginning of a project,” James explains. “This marks the start of a year-long project beyond these two-and-a-half days: we’re funding each of those teachers to do a launch themselves with their students. Because that’s really important to us that, actually: it’s not just a bit of fun for a few days, there’s lots of learning and great opportunities in this activity to show that science, technology, engineering, and maths are all really interrelated disciplines. They all come together in this kind of thing so we can launch a space mission, or pseudo-space mission, for no money really. We’re going to support each of the attendees financially and with support logistics over the next year to do their own launches.”</span></p>
<p class="p2"><span class="s1">If you regret not getting yourself signed up to Skycademy, don’t worry: this is not the one and only time the course will be run. If the results of this course go well, James and Dave hope they can continue it as an annual event.</span></p>
<p class="p2"><span class="s1">Check back over the next year, in which we’ll hopefully be able to show off some of the successful launches from attendees of the Skycademy.</span></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/skycademy-mission-accomplished/">Skycademy &#8211; mission accomplished</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/skycademy-mission-accomplished/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Sense HAT touches down</title>
		<link>https://www.raspberrypi.org/magpi/the-sense-hat-touches-down/</link>
		<comments>https://www.raspberrypi.org/magpi/the-sense-hat-touches-down/#disqus_thread</comments>
		<pubDate>Thu, 24 Sep 2015 14:36:52 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[astro pi]]></category>
		<category><![CDATA[hats]]></category>
		<category><![CDATA[nasa]]></category>
		<category><![CDATA[sense hat]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=348</guid>
		<description><![CDATA[<p>Soon to be seen in low Earth orbit, you can now own the space-bound Sense HAT add-on board that makes the Astro Pi project possible</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/the-sense-hat-touches-down/">The Sense HAT touches down</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p class="p1"><span class="s1">The Sense HAT is out and hopefully you’ve managed to get your hands on one, but if you’re still unsure as to what it even is, you may at the very least be familiar with the project it’s attached to: Astro Pi.</span></p>
<p class="p2"><span class="s1">The Sense HAT is the add-on board holding the key sensors that enables Astro Pi to exist in the first place, and will be attached to a selection of Raspberry Pis as they head up to the International Space Station at the end of 2015. The Sense HAT had slightly more humble beginnings, though, at least according to project lead Jonathan Bell:</span></p>
<p class="p2"><span class="s1">“I kinda hijacked a pet project of James [Adams’s] and turned it into a space-faring board,” he reveals. James Adams is the director of hardware at Raspberry Pi, and he and Jonathan were the main forces behind the Sense HAT.</span></p>
<div id="attachment_421" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/sensehat3.jpg"><img class="size-full wp-image-421" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/sensehat3.jpg" alt="Got your hands on one yet?" width="550" height="366" /></a><p class="wp-caption-text">Got your hands on one yet?</p></div>
<p class="p2"><span class="s1"> “Effectively we wanted to produce a HAT that would be a neat, fun example of how to design a HAT,” Jonathan continues, telling us the simple origins of the Sense HAT. “It was an exercise in how to design a HAT that can be put into mass-production: how would somebody go about doing that so hundreds of thousands of HATS could be produced, and how would we design the board to deal with that.”</span></p>
<p class="p2"><span class="s1">Halfway through development, what was once a relatively basic HAT received a whole host of ST microsensors, the same kind used on mobile phones. “Eventually we said, hang on a minute: what happens if we put loads of sensors on this thing and turn it into a kind of a cool toy!”</span></p>
<p class="p2"><span class="s1">The Sense HAT was eventually completed with three key sensor chips: separate pressure and humidity chips that can also both measure temperature at different levels of sensitivity, and a positional chip that contains an accelerometer, a gyroscope, and a magnetometer. There’s also an 8×8 LED display and a tiny little joystick that you can use in conjunction with the sensors or completely on their own.</span></p>
<p class="p2"><span class="s1">All of this is accessible on the Raspberry Pi by just popping the HAT on the GPIO ports and getting the special Python library for it, which is what the space-bound Pis will be using when they get sent off-world.</span></p>
<div id="attachment_422" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/astropicasesmall.jpg"><img class="size-full wp-image-422" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/astropicasesmall.jpg" alt="This is how the Sense HAT and Pi will be encased up on the ISS" width="550" height="455" /></a><p class="wp-caption-text">This is how the Sense HAT and Pi will be encased up on the ISS</p></div>
<p class="p2"><span class="s1">“The Astro Pi experiments make good use of the HAT itself,” Jonathan tells us, “some of them in quite unusual ways. We have a few Easter eggs up there, which you’ll have to find out about, but there have been some ingenious uses of the sensors. One of the experiments that caught our eye in terms of sensing was one that attempted to detect an astronaut. The astronaut detector sits there, monitoring the humidity, and if there is a certain percentage change in humidity in the module, it thinks there’s an astronaut present. It flashes a message on the LED matrix saying ‘are you there?’.</span></p>
<p class="p2"><span class="s1">“Can we detect a human presence in a ventilated module? And the answer is, yes you can; humidity is monitored on the ISS already and hopefully we’ll be surprised that the experiment has a good result. Anyway, once it says ‘are you there?’, it will then ask you to take a picture. Press a button, go around the other side of the Astro Pi, and smile for the camera. So, through that experiment, they’re trying to track if they can get a variation of humidity, and if that variation is also correlated with the presence of an astronaut in the module. That’s two good experiment objectives right there.”</span></p>
<p class="p2"><span class="s1">There are many more experiments where that came from, all of which we’ll start seeing reports from in early 2016. As for now, though, if you want to do your own experiments Earth-side, Sense HATs are available from <a href="http://bit.ly/1PWWZsU">the Swag Store</a>.</span></p>
<p class="p2">
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/the-sense-hat-touches-down/">The Sense HAT touches down</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/the-sense-hat-touches-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello, world! The MagPi has a new website</title>
		<link>https://www.raspberrypi.org/magpi/hello-world/</link>
		<comments>https://www.raspberrypi.org/magpi/hello-world/#disqus_thread</comments>
		<pubDate>Wed, 23 Sep 2015 15:07:59 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[The MagPi]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=1</guid>
		<description><![CDATA[<p>Welcome to The MagPi's new-look website designed to accompany the official Raspberry Pi magazine</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/hello-world/">Hello, world! The MagPi has a new website</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s been a long time coming, but our all-new website for The MagPi is now live! We&#8217;ve built this site from the ground up to help you keep up to date with all things MagPi and Raspberry Pi.</p>
<p>We hope you&#8217;ll make use of the two most asked for features on the site &#8211; an <a href="https://www.raspberrypi.org/magpi/feed/"><strong>RSS feed</strong></a> and a newsletter sign-up, so you can get a notification every time we update the site and release a new issue. Get the magazine straight in your inbox or notified by your favourite RSS reader.</p>
<p>As before you can find every issue of The MagPi ever made as free PDF downloads &#8211; check out the <a href="https://www.raspberrypi.org/magpi/issues/"><strong>back issues link</strong></a> in the menu bar above to see all 40 of them.</p>
<p>We&#8217;ve also made it easier than ever to get hold of the magazine in print and for your favourite Android and Apple devices. While we love you downloading the magazine (you&#8217;ve grabbed different issues 500,000 times since March!), we&#8217;d love it if you could buy or subscribe to the magazine.</p>
<p>Like sales of The Raspberry Pi itself, every penny of profit from magazine sales goes to supporting the Raspberry Pi Foundation&#8217;s charitable mission to democratise computing and help people from all walks of life and from all over the world get a taste of programming.</p>
<p>Enjoy the website!<br />
<strong><em>Russell</em></strong></p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/hello-world/">Hello, world! The MagPi has a new website</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/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nin10do community project</title>
		<link>https://www.raspberrypi.org/magpi/nin10do-community-project/</link>
		<comments>https://www.raspberrypi.org/magpi/nin10do-community-project/#disqus_thread</comments>
		<pubDate>Wed, 23 Sep 2015 14:27:21 +0000</pubDate>
		<dc:creator><![CDATA[Russell Barnes]]></dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[genesis]]></category>
		<category><![CDATA[mega drive]]></category>
		<category><![CDATA[nes]]></category>
		<category><![CDATA[retro games]]></category>
		<category><![CDATA[snes]]></category>

		<guid isPermaLink="false">https://www.raspberrypi.org/magpi/?p=332</guid>
		<description><![CDATA[<p>A 3D-printed Raspberry Pi-powered Nintendo Entertainment System that can also play Sega games…</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/nin10do-community-project/">Nin10do community project</a> appeared first on <a rel="nofollow" href="https://www.raspberrypi.org/magpi">The Magpi Magazine</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><em>The full article can be found in <strong><a href="/magpi/issues/36/">The MagPi 36</a></strong></em></p>
<p>When you’re a magician looking to make your tricks &#8211; sorry, <em>illusions</em> – better, you have several paths to go down. You could start buying or recreating other people’s work; however, that’s not entirely original, and you risk other people having seen it already. What truly great magicians do is to create their own illusions – original tricks that wow an audience with a wonderful show. Creating tricks and illusions for people-sized magic sounds similar to another hobby: that of being a maker. Makers love the Raspberry Pi, and this is where professional magician Daniel Spies found himself at the end of 2014.</p>
<p>“I wanted to start learning how to program in Python so I could integrate a Raspberry Pi in complex magic acts,” Daniel tells us. “The Raspberry Pi would be great for starting special music or sound effects, operating small smoke machines or even electromagnets. After I mastered the basics (servos, LEDs, etc.) it was time to build something as a practice project. It had to include as many different skills as possible, like CAD drawing, 3D printing, mechanical engineering, programming, and electronics. Then I saw guys on YouTube using their Raspberry Pi to emulate classic games on their TV. The idea was born.”</p>
<div id="attachment_333" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/nin10domain.jpg"><img class="wp-image-333" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/nin10domain-1024x768.jpg" alt="A 3D printed Nintendo console and controller" width="550" height="413" /></a><p class="wp-caption-text">A small NES-style case that contains the Raspberry Pi<br /> and many other electronics</p></div>
<p>Daniel decided to 3D-print his own custom NES case for the Raspberry Pi; it was smaller, sleeker and with a few more tricks than the 30-year-old console, including motors, lots of flashing lights, and the ability to play N64 games. There were some rules for the project to make it worthwhile as a test run for bigger things, though.</p>
<p>“[These] rules included the Nin10do must look like a firm professional game console; it must run my Python script in the background but not sacrifice any speed or usability; it must have a option to be turned on and off without damaging the software or the SD card, and the cover must not damage itself if, for some reason, it is opened twice by the stepper motor.”</p>
<p>With this in mind, Daniel went to work. He created full schematics for the electronics, making use of a series of LEDs, stepper motors, driver boards, timing belts, and lots of extenders to reach the I/O ports to make it actually usable. All of the components used were basic ones, so while there was a lot of soldering involved, he wasn’t gutting any existing devices to make the project work.</p>
<div id="attachment_334" style="width: 560px" class="wp-caption alignnone"><a href="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/step2.png"><img class="wp-image-334" src="https://www.raspberrypi.org/magpi/wp-content/uploads/2015/09/step2-1024x576.png" alt="The custom loading screen for the Nin10do project" width="550" height="309" /></a><p class="wp-caption-text">The custom loading screen for the Nin10do project</p></div>
<p>With this and the coding in place (which you can find on his <strong><a href="https://github.com/TheDanielSpies/Nin10do-Project">GitHub page</a></strong>), Daniel designed and 3D-printed a case reminiscent of the NES that could house his Raspberry Pi and electronics. The important question, though, was whether or not he succeeded&#8230;</p>
<p>“The latest version runs very stable!” Daniel reveals. “I added some parts a while ago (small capacitor in the second momentary switch) and changed the USB hub to a better version. This solved the last (minor) bugs.”</p>
<p>The full build process, printable 3D models and code are all available online from Daniel, so if you want to give it a go yourself, the tools are there. There may even be a kit coming in the future&#8230;</p>
<p>The post <a rel="nofollow" href="https://www.raspberrypi.org/magpi/nin10do-community-project/">Nin10do community project</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/nin10do-community-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
