Docker comes to Raspberry Pi

If you’re not already familiar with Docker, it’s a method of packaging software to include not only your code, but also other components such as a full file system, system tools, services, and libraries. You can then run the software on multiple machines without a lot of setup. Docker calls these packages containers.

Mayview Maersk by Flickr user Kees Torn

Mayview Maersk by Flickr user Kees Torn

Think of it like a shipping container and you’ve got some idea of how it works. Shipping containers are a standard size so that they can be moved around at ports, and shipped via sea or land. They can also contain almost anything. Docker containers can hold your software’s code and its dependencies, so that it can easily run on many different machines. Developers often use them to create a web application server that runs on their own machine for development, and is then pushed to the cloud for the public to use.

While we’ve noticed people using Docker on Raspberry Pi for a while now, the latest release officially includes Raspbian Jessie installation support. You can now install the Docker client on your Raspberry Pi with just one terminal command:

curl -sSL get.docker.com | sh

From there, you can create your own container or download pre-made starter containers for your projects. The documentation is thorough and easy to follow.

Docker Swarm

One way you can use Raspberry Pi and Docker together is for Swarm. Used together, they can create a computer cluster. With Swarm containers on a bunch of networked Raspberry Pis, you can build a powerful machine and explore how a Docker Swarm works. Alex Ellis shows you how in this video:

Docker Swarm mode Deep Dive on Raspberry Pi (scaled)

Get all the details @ http://blog.alexellis.io/live-deep-dive-pi-swarm/

You can follow along with Alex’s written tutorial as well. He has even taken it further by using Pi Zero’s USB gadget capabilities to create a tiny Docker Swarm:

Alex Ellis on Twitter

Look ma, no Ethernet! 8 core @Docker 1.12 swarm boom USB OTG @Raspberry_Pi @pimoronipic.twitter.com/frlSQ9ePpr

The Raspberry Pi already makes many computing tasks easier; why not add deploying remote applications to that list with Docker?

The post Docker comes to Raspberry Pi appeared first on Raspberry Pi.



Source: Raspberry Pi – Docker comes to Raspberry Pi

Call me Ishmael

“I write this sitting in the kitchen sink”. “It was the best of times, it was the worst of times”. “When Gregor Samsa woke one morning from troubled dreams, he found himself transformed right there in his bed into some sort of monstrous insect”. “It was the day my grandmother exploded”. The opening line of a novel can catch our attention powerfully, and can stay with us long after the book itself is finished. A memorable first line is endlessly quotable, and lends itself to parody (“It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains”). Sometimes, a really cracking first line can even inspire a group of talented people to create a unique and beautiful art object, with a certain tiny computer at its heart. 

IMG_5975

Stephanie Kent demonstrates the Call Me Ishmael Phone at ALA 2016

If you read the roundup of our trip to ALA 2016, you will already have caught a glimpse of this unusual Pi-powered project: the Call Me Ishmael Phone. The idea originated back in 2014 when founders Logan Smalley and Stephanie Kent were discussing their favourite opening lines of books: they were both struck by Herman Melville’s laconic phrase in Moby Dick, and began wondering, “What if Ishmael had a phone number? What if you actually could call him?” Their Call Me Ishmael project began with a phone number (people outside the US can Skype Ishmael instead), an answering machine, and an invitation to readers to tell Ishmael a story about a book they love, and how it has shaped their life. The most interesting, funny, and poignant stories are transcribed by Stephanie on a manual typewriter and shared on social media. Here’s a playlist of some of the team’s favourites: 

Having created Ishmael’s virtual world, Stephanie and Logan collaborated with artist and maker Ayodamola Okunseinde to build the physical Call Me Ishmael Phone. Ayo took a commercially available retro-style telephone and turned it into an interactive book-recommendation device. For the prototype, he used a Raspberry Pi 2 Model B, but the production model of the phone uses the latest Pi 3. He explains, “we have a USB stick drive connected to the Pi that holds audio files, configuration, and identification data for each unit. We also have a small USB-powered speaker that amplifies the audio output from the Pi”. The Pis are controlled by a Python script written by programmer Andy Cavatorta.

CMI-Phone-in-Shop_Steph_Andy_Ayo-min-min

Stephanie, Andy, and Ayo in the workshop. Image from callmeishmaelstore.com

The phone can be installed in a library, bookshop, or another public space. The phone is loaded with a number of book reviews, some mapped to individual buttons on the phone, and some which can be selected at random. When a person presses the dial buttons on the phone, the GPIO pins detect the input. This subsequently triggers an audio file to play. If, during play, another button is pressed, the Pi switches audio output to the associated button. Hanging up the phone causes the termination of the playing audio file. The system consists of several units in different locations that have audio and data files pushed to them daily from a control server. The system also has an app that allows users to push and pull content from individual Pis as well as triggering a particular phone to ring.

CMI-Phone-Avid-center-floor-stand-flush-right-min-min

The finished unit installed in a bookshop.
Image from callmeishmaelstore.com

The Call Me Ishmael Phone is a thoughtful project which uses the Raspberry Pi in a very unusual way: it’s not often that programming and literature intersect like this. We’re delighted to see it, and we can’t wait to see what ways the makers might come up with to use the Raspberry Pi in future. And if you have a book which has changed your life, why not call Ishmael and share your story?

The post Call me Ishmael appeared first on Raspberry Pi.



Source: Raspberry Pi – Call me Ishmael

Begin your journey with Raspberry Pi in The MagPi 49

We’ve all seen the numbers. The Raspberry Pi is selling faster and faster every year, which means there are new people getting Raspberry Pis every day. With this in mind, we decided to make a brand new beginner’s guide in issue 49 of The MagPi, out now.

Get started with Raspberry Pi with The MagPi 49!

Get started with Raspberry Pi with The MagPi 49!

The Raspberry Pi beginner’s guide takes you from selecting your Raspberry Pi all the way through setting it up and getting to know the Raspbian OS that powers it. We’re also using it to jump-start a beginner’s tutorial that will be a monthly feature in The MagPi from now on.

#49 Apollo Pi

Set your Pi up so it can take you to the moon! (Moon rocket not included)

As well as the cover feature, we also have a feature on the recently released Apollo 11 source code and how you can emulate a virtual Apollo computer on your Raspberry Pi, along with some historical factoids about making and programming a computer to take people to the moon. There’s also our usual range of amazing tutorials, projects, and product reviews for you to read about as well, including Mike Cook’s rhythmic gymnastics project in the Pi Bakery.

Rhythmic Gymnastics Ribbons

Inspired by the Rio Olympics Gymnastic display of ribbon twirling. In the MagPi 49 – September 2016, https://www.raspberrypi.org/magpi/ twirl your own virtual ribbons.

You can grab the latest issue of The MagPi in stores today from WH Smith, Tesco, Sainsburys, and Asda in the UK, and it will be in Micro Center and selected Barnes & Noble stores when it comes to America. It’s also available in print online from our store, and digitally on our Android and iOS app.

Get a free Pi Zero
Want to make sure you never miss an issue? Subscribe today and start with issue 47 to get not only the Astro Pi poster and mission patch, but also a Pi Zero bundle featuring the new, camera-enabled Pi Zero, and a cable bundle that includes the camera adapter.

Free Pi Zeros and posters: what’s not to love about a MagPi subscription?

Free Creative Commons download
As always, you can download your copy of The MagPi completely free. Grab it straight from the issue page for The MagPi 49.

Don’t forget, though, that like sales of the Raspberry Pi itself, all proceeds from the print and digital editions of the magazine go to help the Foundation achieve its charitable goals. Help us democratise computing!

I also want to remind you that we’re running a poll to find out what you, the community, think are the top 20 Raspberry Pi projects to be included in our 50th issue spectacular. Get voting!

No Title

No Description

The post Begin your journey with Raspberry Pi in The MagPi 49 appeared first on Raspberry Pi.



Source: Raspberry Pi – Begin your journey with Raspberry Pi in The MagPi 49

You’re a (chess) wizard, Bethanie

By recreating the iconic Wizard’s Chess set from Harry Potter and the Philosopher’s Stone (sorry America, it’s Philosopher, not Sorcerer), 18-year-old Jambassador Bethanie Fentiman has become my new hero.

wizard's chess

Ron, you don’t suppose this is going to be like… ‘real’ wizard’s chess, do you?

Playing on an idea she’d had last year, Bethanie decided to recreate the chess board from the book/movie as part of her A Level coursework (putting everything I ever created at school to utter shame), utilising the knowledge and support of her fellow Jammers from the Kent Raspberry Jam community.

After searching through the internet for inspiration, she stumbled upon an Instructables guide for building an Arduino-powered chess robot, which gave her a basis on which to build her system of stepper motors, drawer runners, gears, magnets, and so on.

Wizard's Chess

Harry Potter and the ‘it’s almost complete’ Wizard’s Chess board

The next issue she faced in her quest for ultimate wizarding glory was to figure out how to actually play chess! Without any chess-playing knowhow, Bethanie either needed to learn quickly or…cheat a bit. So she looked up the legal moves of each piece, coding them into the programme, therefore allowing her to move on with the project without the need to monotonously learn the rules to the game. 

wizard's chess

Hermione would never approve.

There were a few snags along the way – mainly due to problems with measuring. But once assembled, everything was looking good.

Wizard's Chess

We’ve got our fingers crossed that Bethanie replaces the pieces in time with some battling replicas from the movie.

On a minimal budget, Bethanie procured her chess pieces from a local charity shop, managing to get the board itself laser-cut for free, thanks to her school’s technology department.

Now complete, the board has begun its own ‘Wizard Chess Tour’, visiting various Raspberry Jams across the country. Its first stop was in Harlow, and more recently, Bethanie has taken the board to the August Covent Garden Jam.

Wizard's Chess gif

MAGIC!

You can find out more about the Wizard’s Chess board via the Kent Jams Twitter account and website. And you’d like the board to visit your own Raspberry Jam event… send Bethanie word by owl and see what she says!

l5XXMbH

The post You’re a (chess) wizard, Bethanie appeared first on Raspberry Pi.



Source: Raspberry Pi – You’re a (chess) wizard, Bethanie

Vote for the top 20 Raspberry Pi projects in The MagPi!

Although this Thursday will see the release of issue 49 of The MagPi, we’re already hard at work putting together our 50th issue spectacular. As part of this issue we’re going to be covering 50 of the best Raspberry Pi projects ever and we want you, the community, to vote for the top 20.

Below we have listed the 30 projects that we think represent the best of the best. All we ask is that you vote for your favourite. (By the way, if you think a project is missing, the chances are we’ve already thought of it and it’s going elsewhere in our top 50, so don’t worry.) Here’s the list so you can remind yourselves of the projects, with the poll posted at the bottom.

From paper boats to hybrid sports cars

From paper boats to hybrid sports cars

  1. SeeMore – a huge sculpture of 256 Raspberry Pis connected as a cluster
  2. BeetBox – beets (vegetable) you can use to play sick beats (music)
  3. Voyage – 300 paper boats (actually polypropylene) span a river, and you control how they light up
  4. Aquarium – a huge aquarium with Pi-powered weather control simulating the environment of the Cayman Islands
  5. ramanPi – a Raman spectrometer used to identify different types of molecules
  6. Joytone – an electronic musical instrument operated by 72 back-lit joysticks
  7. Internet of LEGO – a city of LEGO, connected to and controlled by the internet
  8. McMaster Formula Hybrid – a Raspberry Pi provides telemetry on this hybrid racing car
  9. PiGRRL – Adafruit show us how to make an upgraded, 3D-printed Game Boy
  10. Magic Mirror – check out how you look while getting some at-a-glance info about your day
Dinosaurs, space, and modern art

Dinosaurs, space, and modern art

  1. 4bot – play a game of Connect 4 with a Raspberry Pi robot
  2. Blackgang Chine dinosaurs – these theme park attractions use the diminutive Pi to make them larger than life
  3. Sound Fighter – challenge your friend to the ultimate Street Fight, controlled by pianos
  4. Astro Pi – Raspberry Pis go to space with code written by school kids
  5. Pi in the Sky – Raspberry Pis go to near space and send back live images
  6. BrewPi – a microbrewery controlled by a micro-computer
  7. LED Mirror – a sci-fi effect comes to life as you’re represented on a wall of lights
  8. Pi VCR – a retro VCR-player is turned into a pink media playing machine
  9. #OZWall – Contemporary art in the form of many TVs from throughout the ages
  10. #HiutMusic – you choose the music for a Welsh denim factory through Twitter
Robots and arcade machines make the cut

Robots and arcade machines make the cut

  1. Candy Pi – control a jelly bean dispenser from your browser without the need to twist the dial
  2. Digital Zoetrope – still images rotated to create animation, updated for the 21st century
  3. LifeBox – create virtual life inside this box and watch it adapt and survive
  4. Coffee Table Pi – classy coffee table by name, arcade cabinet by nature. Tea and Pac-Man, anyone?
  5. Pi Notebook – this handheld Raspberry Pi is many people’s dream machine
  6. Pip-Boy 3000 – turn life into a Bethesda RPG with this custom Pip-Boy
  7. Mason Jar Preserve – Mason jars are used to preserve things, so this one is a beautiful backup server to preserve your data
  8. Pi glass – Google Glass may be gone but you can still make your own amazing Raspberry Pi facsimile
  9. DoodleBorg – a powerful PiBorg robot that can tow a caravan
  10. BigHak – a Big Trak that is truly big: it’s large enough for you to ride in

Now you’ve refreshed your memory of all these amazing projects, it’s time to vote for the one you think is best!

Note: There is a poll embedded within this post, please visit the site to participate in this post’s poll.

The vote is running over the next two weeks, and the results will be in The MagPi 50. We’ll see you again on Thursday for the release of the excellent MagPi 49: don’t miss it!

The post Vote for the top 20 Raspberry Pi projects in The MagPi! appeared first on Raspberry Pi.



Source: Raspberry Pi – Vote for the top 20 Raspberry Pi projects in The MagPi!

The Carputer

Meet Benjamin, a trainee air traffic controller from the southeast of France.

Benjamin was bored of the simple radio setup in his Peugeot 207. Instead of investing in a new system, he decided to build a carputer using a Raspberry Pi.

Carputer

Seriously, you lot: we love your imagination!

He started with a Raspberry Pi 3. As the build would require wireless connectivity to allow the screen to connect to the Pi, this model’s built-in functionality did away with the need for an additional dongle. 

Benjamin invested in the X400 Expansion Board, which acts as a sound card. The board’s ability to handle a variety of voltage inputs was crucial when it came to hooking the carputer up to the car engine.

Car engine fuse box

Under the hood

As Benjamin advises, be sure to unplug the fusebox before attempting to wire anything into your car. If you don’t… well, you’ll be frazzled. It won’t be pleasant.

Though many touchscreens are available on the market, Benjamin chose to use his Samsung tablet for the carputer’s display. Using the tablet meant he was able to remove it with ease when he left the vehicle, which is a clever idea if you don’t want to leave your onboard gear vulnerable to light-fingered types while the car is unattended.

To hook the Pi up to the car’s antenna, he settled on using an RTL SDR, overcoming connection issues with an adaptor to allow the car’s Fakra socket to access MCX via SMA (are you with us?). 

Carputer

Fakra -> SMA -> MCX.

Benjamin set the Raspberry Pi up as a web server, enabling it as a wireless hotspot. This allows the tablet to connect wirelessly, displaying roadmaps and the media centre on his carputer dashboard, and accessing his music library via a USB flashdrive. The added benefit of using the tablet is that it includes GPS functionality: Benjamin plans to incorporate a 3G dongle to improve navigation by including real-time events such as road works and accidents.

Carputer

The carputer control desk

The carputer build is a neat, clean setup, but it would be interesting to see what else could be added to increase functionality while on the road. As an aviation fanatic, Benjamin might choose to incorporate an ADS-B receiver, as demonstrated in this recent tutorial. Maybe some voice controls using Alexa? Or how about multiple tablets with the ability to access video or RetroPie, to keep his passengers entertained? What would you add?

Carputer with raspberry pi first test

For more details go to http://abartben.wordpress.com/

 

The post The Carputer appeared first on Raspberry Pi.



Source: Raspberry Pi – The Carputer

FarmBot, the open-source CNC farming robot

What do you imagine the future of farming to look like? The FarmBot team, located along the California coast in San Luis Obispo, is exploring just that. The team has set out to create humanity’s first open-source CNC farming machine to put the power of polycrop farming into the smallest of spaces.

No Title

No Description

The FarmBot structure fixes directly on top of any standard raised planter box. You can think of it like a 3D printer, but instead of extruding plastic, the tool head deposits seeds, delivers water and rids the box of weeds, all by moving across a gantry. Powered by a Raspberry Pi 3, an Arduino Mega and a motor control shield, the FarmBot brings agricultural automation within the reach of the committed hobbyist.

FarmBot Electronics

FarmBot’s interchangeable tooling set is impressive and has been carefully designed so that you may print tools with any hobbyist-level 3D printer.

The universal tool mount features 12 electrical connections, three liquid/gas lines and magnetic coupling. Ready-to-print attachment tools include the seed injection mount, the water nozzle specially designed for efficient watering, and the weed suppression tool which detects and destroys weeds at the root. FarmBot has documented detailed technical specifications of the universal tool mount, to encourage community members to design additional custom mounts that are specific to their particular farming needs.

Check out the tech specs of the tooling attachments for further nerding out!

FarmBot’s drag-and-drop web-based platform allows you to design and build your planter box farm easily. No coding is required; in fact, it has an almost game-like interface. Once your design is complete, the sequence builder and scheduler will help to allocate appropriate care to each plant.

Web-App-on-Different-Devices

It’s evident from looking at the design structure, documentation, CAD files, and detailed BOM that the creators of the FarmBot took to heart the idea of open source. By selecting off-the-shelf products and tools, they ensured this system is as accessible as possible. I’m really happy to see the Raspberry Pi 3 at the heart of FarmBot and I can’t wait to see how this community grows.

If you’re someone who’s serious about getting a good crop return from your small space, and you’re as mesmerized by FarmBot as I am, there’s still time to place a pre-order to receive one of the first batches ready to ship in February!

The post FarmBot, the open-source CNC farming robot appeared first on Raspberry Pi.



Source: Raspberry Pi – FarmBot, the open-source CNC farming robot

New MagPi Essentials book: simple electronics

Less than a month has passed since we released Hacking & Making in Minecraft and we’re back again with our seventh Essentials book!

Simple Electronics with GPIO Zero is dedicated to helping you build your own electronics projects in easy steps – everything from push buttons to Raspberry Pi robots, and from laser-powered trip wires to motion-sensing alarms.

Essentials-07-GPIO-ZERO_Flat_Cover

Those GPIO pins aren’t as daunting as they might first appear!

The book boasts 12 chapters and 100+ pages of GPIO Zero – but wait, hang on… just download the free PDF and get reading already! If you can’t grab it straight away, here are a few of the chapter highlights:

  • Program LED lights
  • Add push buttons to your project
  • Build a motion-sensing alarm
  • Create your own distance rangefinder
  • Make a laser-powered tripwire
  • Build a Raspberry Pi robot
  • Create a motion-sensing alarm
  • and much more!

We think our latest Essentials book is a great introduction to using the GPIO pins on your Raspberry Pi and programming them with the fab GPIO Zero Python library. It unlocks a whole new world of potential for your projects and it’s much easier to learn than you might think!

You can also buy Simple Electronics with GPIO Zero in our app for Android and iOS. The print version is coming soon too. In fact, we’re just off to have a word with the printers now…

Simple Electronics with GPIO Zero is freely licensed under Creative Commons (BY-SA-NC 3.0). You can download the PDF for free now and forever, but buying digitally supports the Raspberry Pi Foundation’s charitable aims.

The post New MagPi Essentials book: simple electronics appeared first on Raspberry Pi.



Source: Raspberry Pi – New MagPi Essentials book: simple electronics

Raspberry Shake – your personal seismograph

There are some applications for the Raspberry Pi that were a very long way from our minds back in 2009, when we were trying to come up with a computer to get kids programming again. I think it’s fair to say that we did not think we were building a personal seismograph.

Raspberry Shake has blown past its Kickstarter target of $7,000 to raise ten times that amount, and it’s still got a couple of days to go.

Raspberry Shake is sensitive enough to detect earthquakes of magnitude 2 and higher at a distance of 50 miles, and a magnitude 4 or great earthquake from 300 miles away. Angel Rodriguez, the maker, says:

It will also record earthquakes of larger magnitudes farther away but it will miss some of the subtleties. Raspberry Shake can detect and record short period (0.5 – 15 Hz) earthquakes; the farther away an earthquake, the less of that range of frequencies can be recorded.

Raspberry Shake seismograph

At the heart of this kit is a geophone: a device that converts movement into voltage. (Think of it as being a bit like a microphone for geology.) Inside the little geophone a coil moves in relation to a magnet, creating current. Angel has a nice demonstration of how a geophone works:

What’s inside a Geophone

In order to get data coming from the ground we need a sensor able to detect these data. A geophone is a ground motion transducer that convert ground movement into voltage. Raspberry Shake use a geophone and in this video we are going to show you what’s inside of it.

The little add-on board amplifies and digitises the signal from the geophone, and feeds it to your Raspberry Pi.

The Raspberry Pi time-stamps the data and stores it in a seismic industry standard format and sends it in answer to client requests. Those requests are displayed on your smartphone or computer monitor. The complete system is called a seismograph.

Angel and the other instrument builders behind the Raspberry Shake make seismographs and other equipment for a living. This device is the little brother of a seismograph his team makes for universities and other earthquake observers. It runs the same open-source software that the United States Geological Survey (USGS) uses.

Angel says:

Don’t be fooled by the size and the price. Raspberry Shake is better than many of short-period seismometers in current use by the local networks of the USGS and many developing countries. Several software vendors have, for the first time, provided personal no-cost licenses for this project.

Raspberry Shake will make observatory quality data that can be shared in the worldwide standard SEED format. All modern automated seismology programs used by observatories can use the data from the Raspberry Shake. It’s the Volkswagen of seismometers – yes there are Lamborgini seismographs but both the Lamborghini and the Volkswagen will get you from point A to point B.

To prove it, here’s some data from a Raspberry Shake ($99 if you back the Kickstarter now) against data from a $50,000 professional seismograph. In this image the Raspberry Shake’s data is displayed at the top. Both devices are showing data from the same regional earthquake.

Raspberry Shake (upper) and Nanometric Trillium Compact (lower)

Data from Raspberry Shake (top) and Nanometric Trillium Compact (bottom)

Bringing the affordability of a piece of kit like this down to consumer levels is a real achievement: previously this sort of equipment has only been available to universities, governments and other bodies with the ability to make very big investments. As you’ve probably gathered, we love it: head over to back Raspberry Shake on Kickstarter quickly, before the opportunity’s gone!

The post Raspberry Shake – your personal seismograph appeared first on Raspberry Pi.



Source: Raspberry Pi – Raspberry Shake – your personal seismograph

Raspberry Pi at Camp Bestival

Festival goers relax on the grass in front of huge silver letters: "LOVE CAMP BESTIVAL"

Camp Bestival is the family-oriented version of the more adult-focused Bestival, and attracts 30,000 parents and children each year. Everything has been designed with families in mind, including shows and activity tents, all set within the beautiful grounds of Lulworth Castle.
A huge crowd in front of Lulworth Castle at Camp Bestival. The sun is setting behind the battlements.

This year’s theme was Space. We’re pretty keen on space ourselves, and we’re not ones to shirk a party, so we figured: why not take along something else fun and interesting for kids to do alongside watching Mr Tumble or the Clangers, by showing them how to create their own space animations and design LED displays? Not to mention having welcoming chats with curious parents to answer the all-important question “So what is a Raspberry Pi?” while their kids are off programming in Scratch.

So, having loaded up every square inch of the camper van with equipment and swag, we set off to Lulworth. Naturally, as the event was space-themed, we took along our office friend Flat Tim for support. He was very excited, if a little overdressed.

A life-sized cardboard cut-out of British astronaut Tim Peake wearing a spacesuit, standing in the gangway of a camper van. Plastic beach spades hang beside him

Located in the very busy Science Tent every day across the long weekend, we offered young visitors the chance to try out Code Club’s Lost in Space and Space Junk animation programming activities – why not try out Lost in Space for yourself? Alongside this, we set up workstations with Raspberry Pis showcasing Astro Pi and the Sense HAT’s capabilities, from programming LEDs to simple Python activities sensing the environment. At one point we were joined by a six-year-old who wowed us all with her new programming skills!

Montage: a photo of a young girl with a flower garland in her hair, lost in concentration at a Raspberry Pi workstation; and a photo of the screen showing some of the code she is working on. She is making the Sense HAT display messages including, "I like doing sports" and "I like having hugs with Mummy."

Four children concentrate on activities at Raspberry Pi workstations, with a crowd of older siblings and parents around

Raspberry Pi staff and volunteers talk to families in the Science Tent

We visited our friends at the UK Space Agency in the Mission Control tent, and they kindly lent us one of their spacesuits to go with our Astro Pi activities. Dan certainly looked the part in it.

Tony from UK Space helps Raspberry Pi's Dan Grammatica don a spacesuit
Raspberry Pi's Dan Grammatica, wearing a spacesuit, and Dave Hazeldean

Evenings were spent experiencing the festival at night, from parades to live music, before falling into bed exhausted but happy!

A giant astronaut, glowing purple and blue, towers above the crowd after dark
An actor dressed as an exotic alien, with glowing fairy wings and an exoskeleton that incorporates stilts, walks among the crowd at dusk

No festival is complete without fun giveaways, such as our Code Club, Raspberry Pi and Astro Pi temporary tattoos. They were almost as popular as our activities:

Philip Colligan on Twitter

It’s all about #tattoos at @CampBestival – @Raspberry_Pi and @CodeClub activities in the Science Tent #CampBestivalpic.twitter.com/wHPmpnyQ4l

The prize for best timing goes to this young person, who picked up the 1000th (and last!) Raspberry Pi/Code Club bag in the final half-hour before we went home!

A young girl smiles and holds up a red drawstring bag with a large white Raspberry Pi logo printed on it

To everyone who visited us and joined in with our digital making activities, thank you for stopping by! We hope you enjoyed visiting us, and that you feel inspired to try some more projects via our free learning resources.

Special thanks, too, to the rest of the Raspberry Pi Camp B crew – Carrie Anne, Daniel, Dave, Alex and Chris.

Finally, there’s one thing we couldn’t share with festival goers at Camp Bestival because it was too windy, but we did manage a quick photo, so we can share it with you now: flying the Raspberry Pi flag!

A white flag with the raspberry and green Raspberry Pi logo and the words "Raspberry Pi," flying in a stiff breeze against a cloudy sky

The post Raspberry Pi at Camp Bestival appeared first on Raspberry Pi.



Source: Raspberry Pi – Raspberry Pi at Camp Bestival

Software, the unsung hero

This column is from The MagPi issue 48. You can download a PDF of the full issue for free or subscribe to receive the print edition in your mailbox or the digital edition on your tablet. All proceeds from the print and digital editions help the Raspberry Pi Foundation achieve its charitable goals. The MagPi 48

As Raspberry Pi enthusiasts, we tend to focus a lot on hardware. When a new or updated board is released, it garners a lot of attention and excitement. On one hand, that’s sensible because Raspberry Pi is a leader in pushing the boundaries of affordable hardware. On the other hand, it tends to overshadow the fact that strong software support makes an enormous contribution to Raspberry Pi’s success in education, hobby, and industrial markets.

Because of that, I want to take the opportunity this month to highlight how important software is for Raspberry Pi. Whether you’re using our computer as a desktop replacement, a project platform, or a learning tool, you depend on an enormous amount of software built on top of the hardware. From the foundation of the Linux kernel, all the way up to the graphical user interface of the application you’re using, you rely on the work of many people who have spent countless hours designing, developing, and testing software.

clean_desktop

The look and feel of the desktop environment in Raspbian serves as a good signal of the progress being made to the software made specifically for Raspberry Pi. I encourage you to compare the early versions of Raspbian’s desktop environment to what you get when you download Raspbian today. Many little tweaks are made with each release, and they’ve really built up to make a huge difference in the user experience.

Skin deep

And keep in mind that’s only considering the desktop interface of Raspbian. The improvements to the operating system under the hood go well beyond what you might notice on screen. For Raspberry Pi, there’s been updates for firmware, more functionality, and improved hardware drivers. All of this is in addition to the ongoing improvements to the Linux kernel for all supported platforms.

For those of us who are hobbyists, we have access to so many code libraries contributed by developers, so that we can create things easily with Raspberry Pi in a ton of different programming languages. As you probably know, the power of Raspberry Pi lies in its GPIO pins which make it perfect for physical computing projects, much like the ones you find in the pages of The MagPi. New Python libraries like GPIO Zero make it even easier than ever to explore physical computing. What used to take four lines of code is boiled down to just LED.blink(), for example.

etcher-500pxwide

Not all software that helps us was made to run on Raspberry Pi directly. Take, for instance, Etcher, a wonderful program from the team at Resin.io. Etcher is the easiest SD card flasher I have ever used, and takes a lot of guesswork out of flashing SD cards with Raspbian or any other operating system. Those of us who write tutorials are especially happy about this; since Etcher is cross-platform, you don’t need to have a separate set of instructions for people running Windows, Mac, and Linux. In addition, its well-designed graphical interface is a sight for sore eyes, especially for those of us who have been using command line tools for SD card flashing.

The list of amazing software that supports Raspberry Pi could go on for pages, but I only have limited space here. So I’ll leave you with my favourite point about Raspberry Pi’s strong software support. When you get a Raspberry Pi today and download Raspbian, you can rest assured that, because of the rapidly improving software support, it will only get better with age. You certainly can’t say that about everything you buy.

The post Software, the unsung hero appeared first on Raspberry Pi.



Source: Raspberry Pi – Software, the unsung hero

Human Sensor

In collaboration with Professor Frank Kelly and the environmental scientists of King’s College London, artist Kasia Molga has created Human Sensor – a collection of hi-tech costumes that react to air pollution within the wearer’s environment.

Commissioned by Invisible Dust, an organisation supporting artists and scientists to create pieces that explore environmental and climate change, Molga took to the streets of Manchester with her army of Human Sensors to promote the invisible threat of air pollution in the industrial city.

Human Sensor

Angry little clouds of air pollution

Each suit is equipped with a small aerosol monitor that links to a Raspberry Pi and GPS watch. These components work together to collect pollution data from their location. Eventually, the suits will relay data back in real time to a publicly accessible website; for now, information is stored and submitted at a later date.

The Pi also works to control the LEDs within the suit, causing them to flash, pulse, and produce patterns and colours that morph in reaction to air conditions as they are read by the monitor.

Human Sensor

All of the lights…

The suit’s LED system responds to the presence of pollutant particles in the air, changing the colour of the white suit to reflect the positive or negative effect of the air around it. Walk past the grassy clearing of a local park, and the suit will turn green to match it. Stand behind the exhaust of a car, and you’ll find yourself pulsating red.

It’s unsurprising that the presence of the suits in Manchester was both well received and a shock to the system for the city’s residents. While articles are beginning to surface regarding the impact of air pollution on children’s mental health, and other aspects of the detrimental health effects of pollution have long been known, it’s a constant struggle for scientists to remind society of the importance of this invisible threat. By building a physical reminder, using the simple warning colour system of red and green, it’s hard not to take the threat seriously.

“The big challenge we have is that air pollution is mostly invisible. Art helps to makes it visible. We are trying to bring air pollution into the public realm. Scientific papers in journals work on one level, but this is a way to bring it into the street where the public are.” – Andrew Grieve, Senior Air Quality Analyst, King’s College

 

Human Sensor

23-29 July 2016 in Manchester Performers in hi tech illuminated costumes reveal changes in urban air pollution. Catch the extraordinary performances created by media artist Kasia Molga with Professor Frank Kelly from King’s College London. The hi-tech illuminated costumes reflect the air pollution you are breathing on your daily commute.

Human Sensor is supported by the Wellcome Trust’s Sustaining Excellence Award and by Arts Council England; Invisible Dust is working in partnership with Manchester, European City of Science.

The post Human Sensor appeared first on Raspberry Pi.



Source: Raspberry Pi – Human Sensor

Raspberry Pi as retail product display

Digitec Galaxus is an electronics retailer in Switzerland. Among other things, they sell Raspberry Pis and related accessories, including our official 7” Touch Display. Many of their customers likely noticed that they haven’t had the Touch Display in stock recently, but there’s an interesting reason.

381A9940_kl21

The retailer wanted to replace their tablet-based digital product labels with something more robust, so they turned to Raspberry Pi 2 with the 7” Touch Display. Each store has 105 screens, which means that the staff of Digitec Galaxus assembled 840 custom Pi-based digital product labels. The screens enable their customers to view up-to-date product information, price, and product ratings from their community as they look at the product up-close.

To pull this off, the engineering team used Raspbian Jesse Lite and installed Chromium. They wrote a startup script which launches Chromium in kiosk mode and handles adjusting the display’s backlight. The browser loads a local HTML page and uses JavaScript to download the most up-to-date content using an AJAX call. When a keyboard is connected, the staff can set the parameters for the display, which are stored as cookies in the browser. For good measure, the team also introduced many levels of fault tolerance into their design. Just as one example, the boot script starts Chromium in a loop to ensure that it will be relaunched automatically if it crashes. It can also handle sudden loss of power and network connectivity issues.

IMG_810121

Whether it’s a young person’s learning computer, the brains of a DIY home automation project, or a node in a factory sensor network, we beam with pride when see our little computer being used in so many different ways. This project in particular is a great example of how those that sell Raspberry Pi products can harness Pi’s power for their own operations.

The post Raspberry Pi as retail product display appeared first on Raspberry Pi.



Source: Raspberry Pi – Raspberry Pi as retail product display

Astro Pi: Mission Update 9 – Science Results

Liz: Before we get down to business, we’ve a notice to share. Laura Clay, who is behind the scenes editing this blog, The MagPi and much more, is also a fiction writer; and she’s been chosen as one of 17 Emerging Writers by the Edinburgh UNESCO City of Literature Trust. Each writer will be reading a short story at the Edinburgh International Book Festival, and it’s a great way to discover writers living and working in the city at the start of their careers. Laura will be reading her story Loch na Bèiste on Friday 26 August at 3pm in the Spiegeltent, and entry is free, so why not come along and support her? Warning: story may contain murderous kelpies.

Now that British ESA Astronaut Tim Peake is back on the ground it’s time for the final Astro Pi mission update: the summary of the experiment results from the International Space Station (ISS). We’ve been holding this back to give the winners some time to publish the results of their experiments themselves.

Back in 2015 we ran a competition where students could design and program computer science experiments, to be run by Tim Peake on specially cased Raspberry Pis called Astro Pis. Here’s the original competition video, voiced by Tim himself:

Astro Pi

This is “Astro Pi” by raspberrypi on Vimeo, the home for high quality videos and the people who love them.

The competition ran from January to July 2015 and produced seven winning experiments, which were launched into space a few days before Tim started his mission. Between February and April 2016, these experiments were run on board the ISS under Tim Peake’s supervision. They’re mostly based around the sensors found on the Sense HAT, but a few also employ the Raspberry Pi Camera Module. Head over to the Astro Pi website now to check out the results, released today!

You might also know that we ran an extension to this competition involving a couple of music-based challenges. These challenges have no scientific output to discuss, because they were part of a crew care package for Tim’s enjoyment, but you can get your hands on the winning code to turn the Astro Pis into MP3 players and Sonic Pi tunes.

One of the main things we’ve learnt from running Astro Pi is that the biggest motivational factor for young people is the very tangible goal of having their code run in space. This eclipses any physical prize we could offer. Many people see space as quite distant and abstract, but with Astro Pi you can actually get your hands on space-qualified hardware, create something that would work up in space, and become an active participant in the European space programme.

Many of the Astro Pi winners now express an interest in studying aerospace and computer science. They’ve gained exposure to the real-life process of scientific endeavour, and faced industrial software development challenges along the way. We hope that everyone who participated in Astro Pi has been positively influenced by the programme. The results also demonstrate that the payload works reliably in space. This has been noticed by ESA, who are now planning to use it during upcoming missions. It’s really important for us that the payload continues to be used to run your code in space, so we’re working hard with ESA to make sure that we can do Astro Pi all over again.

This project has been a huge collaborative effort from the start and the Raspberry Pi Foundation would like to thank everyone who has participated in the competitions, and the following companies who have contributed staff time, facilities, and funding to make it all happen: UK Space Agency, European Space Agency, BIOTESC, TLOGOS, Surrey Satellite Technology, Airbus Defence and Space, CGI Group, QinetiQ Space, UK Space Trade Association, ESERO UK, KTN Space, and Nesta. Of course, Tim Peake himself has been hugely supportive and enthusiastic about the project from the start.

British ESA Astronaut Tim Peake with the prototype Astro Pi

British ESA Astronaut Tim Peake with the prototype Astro Pi. Image credit ESA.

We would also like to thank Libby Jackson, who is the Astronaut Flight Education Programme Manager at the UK Space Agency and a former flight director at ESA. She oversees all of the Principia educational activities, including Astro Pi.

libby-jackson-uksa

Libby Jackson, UK Space Agency. Image credit Imperial College London.

During the interview for her job at the UK Space Agency a few years ago, she pitched an idea for running a project on the ISS involving Raspberry Pi computers. Instead of launching traditional physical equipment, the experiments would be in the form of computer software, meaning that many more experiments could be accommodated. That kernel of an idea is what eventually became Astro Pi.

iss046e042740

Izzy deployed on the Nadir Hatch window of Node 2. Image credit ESA.

The post Astro Pi: Mission Update 9 – Science Results appeared first on Raspberry Pi.



Source: Raspberry Pi – Astro Pi: Mission Update 9 – Science Results

Sense HAT emulator

Over the last few months, we’ve been working with US-based startup Trinket to develop a web-based emulator for the Sense HAT, the multipurpose add-on board for the Raspberry Pi which is also the core component of the Astro Pi units on the International Space Station. We wanted to provide a unique, free learning resource that brings the excitement of programming our space-qualified hardware to students, teachers, and others all over the world.

We’re delighted to announce its release today, and you can try it for yourself right now. Click the Run button below and see what happens!

trinket-logo

The emulator will allow more people to participate in future Astro Pi competitions – you’ll be able to join in without needing to own a Raspberry Pi computer or a Sense HAT.

British ESA Astronaut Tim Peake with an Astro Pi unit on the International Space Station

British ESA Astronaut Tim Peake with the Astro Pi. Image credit ESA

The new emulator builds on Trinket’s existing Python-in-browser platform, and provides the following features:

  • Virtual Sense HAT with environmental controls and joystick input
  • Full Python syntax highlighting
  • Contextual auto-complete
  • Intuitive error reporting and highlighting
  • Image upload
  • HTML page embedding
  • Social media integration
  • Project sharing via direct URL
  • Project download as zip (for moving to Raspberry Pi)
  • All major browsers supported

sense_hat_emu

The Sense HAT has temperature, pressure and humidity sensors, and can change its behaviour according to the values they report. The Sense HAT emulator has sliders you can move to change these values, so you can test how your code responds to environmental variables.

Part of a screenshot of the Astro Pi emulator, showing three silders with buttons that can be dragged to change the temperature, pressure and humidity that the virtual Sense HAT's sensors are reporting

You can move the sliders to change what the sensors are reporting

Code written in this emulator is directly portable to a physical Raspberry Pi with a Sense HAT without modification. This means any code you write can be run by the Astro Pi units on board the ISS! It is our hope that, within the next 12 months, code that has been written in the emulator will run in space. Look out for news on this, coming soon on the Astro Pi site!

We owe huge thanks to Trinket, who have been wonderful partners in this project. The development work has been completed in just over two months, and has been a huge collaborative effort from the start. The software relies heavily on open-source technology and a global community of developers who are committed to making the power of code more accessible to students.

A closed group of beta testers, made up of previous Astro Pi participants and Code Club champions, has been putting the emulator through its paces over recent weeks. We’re proud to say that we’ve just had a bug-free open beta over the weekend, and now we’re looking forward to seeing it used as widely as possible.

So, where do you start? If you’re new to the Sense HAT, you can just copy and paste a lot of the code examples from our educational resources like this one. You can also check out our e-book Sense HAT Essentials. For a complete list of all the functions you can use, have a look at the Sense HAT API reference here; please note that the IMU (movement-sensing) functions will be supported in a future update. Head over to the main Sense HAT emulator site to see loads of other cool examples of what’s possible. Flappy LED, anyone?

Don’t forget to share your projects!

The post Sense HAT emulator appeared first on Raspberry Pi.



Source: Raspberry Pi – Sense HAT emulator

Skycademy 2016

Over the next three days, we have 30 educators arriving at Pi Towers to learn how to build, launch, and track a High Altitude Balloon (HAB). For the uninitiated, Skycademy 2016 is our second CPD event which provides experience of launching balloons to educators, showing them how this can be used for an inspiring, project-based learning experience.

Skycademy_Header_v2

This is my first year preparing for Skycademy, and it has been a steep but worthwhile learning curve. Launching a HAB combines aspects of maths, physics, computing, design and technology, and geography, and the sheer scope of the project means that it’s rare for school-age children to get these types of experiences. It’s great news, then, that Raspberry Pi have the in-house skills, ambition, and commitment to run such things, and train others to run them too.

Skycademy runs over three days: on the first day, delegates form teams and take part in several workshops aimed at planning and building their flight. Day Two sees them launch, track, and recover their payload. Day Three has them regroup to reflect and plan for the year ahead. The support doesn’t end there: our Skycademy graduates go on to take part in a year-long project that will see them launch flights at their own schools and organisations, helped by their own students.

Tracking tomorrow’s launch

If you’re interested in watching the launch tomorrow, you can follow our progress by searching for #skycademy on Twitter. You can also use the links below to track the progress of different teams. Today, you will begin to see their payloads appearing on the map, and tomorrow you’ll be able to follow the chase.

 

Tracking Images
All teams rpf.io/flights rpf.io/flights/images
Alto rpf.io/alto rpf.io/alto/images
Cirrus rpf.io/cirrus rpf.io/cirrus/images
Cumulus rpf.io/cumulus rpf.io/cumulus/images
Nimbus rpf.io/nimbus rpf.io/nimbus/images
Stratus rpf.io/stratus rpf.io/stratus/images

 

Our current launch plan is to set the balloons free slightly to the west of Cambridge around 10am, but we’ll be posting updates to Twitter.

If you aren’t lucky enough to be taking part in Skycademy today, don’t worry: we’ll be making lots of resources available in the near future for anyone to access and run their own flights. Alternatively, you can also visit Dave Akerman’s website for lots of HAB information and guides to get you started.

Welcome to Dan Fisher’s ‘Fun with HABs’

I recently found out what lay in store for our latest crop of educators when I took part in a test launch two weeks ago…

We made our way to the launch site at Elsworth, Cambridgeshire, feeling nervous and excited. We arrived at 09.30, as experts Dave Akerman and Steve Randall were already starting to assemble their kit. The hope was that we might actually be able to break the world record for the highest amateur unmanned balloon flight. Dave and Steve are continually leapfrogging each other for this title.

IMG_0478

The payload Dave is making in the picture weighs about 250g and consists of a Raspberry Pi A+ connected to Pi-In-The-Sky (PITS) and LoRa boards. The lighter the payload, the higher the potential altitude. The boards broadcast packets of data back to earth, which can be decoded by our tracking equipment.

IMG_0554

Surprisingly, the payload’s chassis assembly is hardly high-tech: a polystyrene capsule gaffer-taped to some nylon cord and balsa wood, to which the balloon and parachute are attached. For this launch, Dave and Steve used hydrogen rather than helium, as it enables you to achieve higher altitudes. Having no previous experience working with pure hydrogen, I had visions of some kind of disaster happening.

Hindenberg

We weighed the payload to calculate how much hydrogen we would need to fill the balloon and ensure the correct ascent rate. Too much hydrogen means the balloon ascends too quickly and might burst early. Too little hydrogen results in a slow balloon which might not burst at all, and could float away and be lost.

IMG_8205

After Dave filled the balloon with hydrogen, we attached the real payload (lots more gaffer tape) and we were ready for a good ol’ launch ‘n’ track. However, as is often the case, it didn’t exactly go to plan…

Home, home on the range

Picture the scene: two Raspberry Pi staffers are driving off-road through a military firing range. Behind the wheel is Dave Akerman, grinning broadly.

“It’s so much more interesting when they don’t just land in a ditch,” he says, speeding the SUV over another pothole.

We’ve tracked our high altitude balloon for two hours to an area of land in Thetford Forest, Norfolk which is used for live ammo practice: not somewhere you’d want to go without permission. Access is looking unlikely until we get a call from the nearby army base’s ops team: we’re in. We make our way past the firing range and into the woods.

IMG_0564

After tracking as far as we can by car, we continue on foot until we spot the payload about ten metres up in a fir tree with very few branches. There’s no way of climbing up. Fortunately, Dave has come armed with the longest telescopic pole I’ve ever seen. It even has a hook on the business end for snagging the parachute’s cords. I act as a spotter as Dave manoeuvres the pole into position and tugs the payload free.

IMG_0568

Giddy with the unexpected success of our recovery, we head back to the SUV and make for the exit, only to find we’ve been locked in. Scenarios where we’ve unwittingly become contestants in the next Hunger Games cross my mind. Armed only with long plastic poles, I worry we might be early casualties.

IMG_0569

After feverish calls to the base again, they agree to come out and free us: a man in a MoD jacket dramatically smashes the lock with a hammer. We race back to Cambridge HQ, payload in hand and with a story to tell.

The Great Escape

Uploaded by David Akerman on 2016-07-26.

That’s it for now; look out for our post-Skycademy follow-up post soon!

The post Skycademy 2016 appeared first on Raspberry Pi.



Source: Raspberry Pi – Skycademy 2016

Pi 3 booting part II: Ethernet

Yesterday, we introduced the first of two new boot modes which have now been added to the Raspberry Pi 3. Today, we introduce an even more exciting addition: network booting a Raspberry Pi with no SD card.

Again, rather than go through a description of the boot mode here, we’ve written a fairly comprehensive guide on the Raspberry Pi documentation pages, and you can find a tutorial to get you started here. Below are answers to what we think will be common questions, and a look at some limitations of the boot mode.

Note: this is still in beta testing and uses the “next” branch of the firmware. If you’re unsure about using the new boot modes, it’s probably best to wait until we release it fully.

What is network booting?

Network booting is a computer’s ability to load all its software over a network. This is useful in a number of cases, such as remotely operated systems or those in data centres; network booting means they can be updated, upgraded, and completely re-imaged, without anyone having to touch the device!

The main advantages when it comes to the Raspberry Pi are:

  1. SD cards are difficult to make reliable unless they are treated well; they must be powered down correctly, for example. A Network File System (NFS) is much better in this respect, and is easy to fix remotely.
  2. NFS file systems can be shared between multiple Raspberry Pis, meaning that you only have to update and upgrade a single Pi, and are then able to share users in a single file system.
  3. Network booting allows for completely headless Pis with no external access required. The only desirable addition would be an externally controlled power supply.

I’ve tried doing things like this before and it’s really hard editing DCHP configurations!

It can be quite difficult to edit DCHP configurations to allow your Raspberry Pi to boot, while not breaking the whole network in the process. Because of this, and thanks to input from Andrew Mulholland, I added the support of proxy DHCP as used with PXE booting computers.

What’s proxy DHCP and why does it make it easier?

Standard DHCP is the protocol that gives a system an IP address when it powers up. It’s one of the most important protocols, because it allows all the different systems to coexist. The problem is that if you edit the DHCP configuration, you can easily break your network.

So proxy DHCP is a special protocol: instead of handing out IP addresses, it only hands out the TFTP server address. This means it will only reply to devices trying to do netboot. This is much easier to enable and manage, because we’ve given you a tutorial!

Are there any bugs?

At the moment we know of three problems which need to be worked around:

  • When the boot ROM enables the Ethernet link, it first waits for the link to come up, then sends its first DHCP request packet. This is sometimes too quick for the switch to which the Raspberry Pi is connected: we believe that the switch may throw away packets it receives very soon after the link first comes up.
  • The second bug is in the retransmission of the DHCP packet: the retransmission loop is not timing out correctly, so the DHCP packet will not be retransmitted.

The solution to both these problems is to find a suitable switch which works with the Raspberry Pi boot system. We have been using a Netgear GS108 without a problem.

  • Finally, the failing timeout has a knock-on effect. This means it can require the occasional random packet to wake it up again, so having the Raspberry Pi network wired up to a general network with lots of other computers actually helps!

Can I use network boot with Raspberry Pi / Pi 2?

Unfortunately, because the code is actually in the boot ROM, this won’t work with Pi 1, Pi B+, Pi 2, and Pi Zero. But as with the MSD instructions, there’s a special mode in which you can copy the ‘next’ firmware bootcode.bin to an SD card on its own, and then it will try and boot from the network.

This is also useful if you’re having trouble with the bugs above, since I’ve fixed them in the bootcode.bin implementation.

Finally, I would like to thank my Slack beta testing team who provided a great testing resource for this work. It’s been a fun few weeks! Thanks in particular to Rolf Bakker for this current handy status reference…

Current state of network boot on all Pis

Current state of network boot on all Pis

The post Pi 3 booting part II: Ethernet appeared first on Raspberry Pi.



Source: Raspberry Pi – Pi 3 booting part II: Ethernet

Pi 3 booting part I: USB mass storage boot beta

When we originally announced the Raspberry Pi 3, we announced that we’d implemented several new boot modes. The first of these is the USB mass storage boot mode, and we’ll explain a little bit about it in this post; stay tuned for the next part on booting over Ethernet tomorrow. We’ve also supplied a boot modes tutorial over on the Raspberry Pi documentation pages.

Note: the new boot modes are still in beta testing and use the “next” branch of the firmware. If you’re unsure about using the new boot modes, it’s probably best to wait until we release it fully.

How did we do this?

Inside the 2835/6/7 devices there’s a small boot ROM, which is an unchanging bit of code used to boot the device. It’s the boot ROM that can read files from SD cards and execute them. Previously, there were two boot modes: SD boot and USB device boot (used for booting the Compute Module). When the Pi is powered up or rebooted, it tries to talk to an attached SD card and looks for a file called bootcode.bin; if it finds it, then it loads it into memory and jumps to it. This piece of code then continues to load up the rest of the Pi system, such as the firmware and ARM kernel.

While squeezing in the Quad A53 processors, I spent a fair amount of time writing some new boot modes. If you’d like to get into a little more detail, there’s more information in the documentation. Needless to say, it’s not easy squeezing SD boot, eMMC boot, SPI boot, NAND flash, FAT filesystem, GUID and MBR partitions, USB device, USB host, Ethernet device, and mass storage device support into a mere 32kB.

What is a mass storage device?

The USB specification allows for a mass storage class which many devices implement, from the humble flash drive to USB attached hard drives. This includes micro SD readers, but generally it refers to anything you can plug into a computer’s USB port and use for file storage.

I’ve tried plugging in a flash drive before and it didn’t do anything. What’s wrong? 

We haven’t enabled this boot mode by default, because we first wanted to check that it worked as expected. The boot modes are enabled in One-Time Programmable (OTP) memory, so you have to enable the boot mode on your Pi 3 first. This is done using a config.txt parameter.

Instructions for implementing the mass storage boot mode, and changing a suitable Raspbian image to boot from a flash drive, can be found here.

Are there any bugs / problems?

There are a couple of known issues:

  1. Some flash drives power up too slowly. There are many spinning disk drives that don’t respond within the allotted two seconds. It’s possible to extend this timeout to five seconds, but there are devices that fail to respond within this period as well, such as the Verbatim PinStripe 64GB.
  2. Some flash drives have a very specific protocol requirement that we don’t handle; as a result of this, we can’t talk to these drives correctly. An example of such a drive would be the Kingston Data Traveller 100 G3 32G.

These bugs exist due to the method used to develop the boot code and squeeze it into 32kB. It simply wasn’t possible to run comprehensive tests.

However, thanks to a thorough search of eBay and some rigorous testing by our awesome work experience student Henry Budden, we’ve found the following devices work perfectly well:

  • Sandisk Cruzer Fit 16GB
  • Sandisk Cruzer Blade 16Gb
  • Samsung 32GB USB 3.0 drive
  • MeCo 16GB USB 3.0

Will it be possible to boot a Pi 1 or Pi 2 using MSD?

Unfortunately not. The boot code is stored in the BCM2837 device only, so the Pi 1, Pi 2, and Pi Zero will all require SD cards.

However, I have been able to boot a Pi 1 and Pi 2 using a very special SD card that only contains the single file bootcode.bin. This is useful if you want to boot a Pi from USB, but don’t want the possible unreliability of an SD card. Don’t mount the SD card from Linux, and it will never get corrupted!

My MSD doesn’t work. Is there something else I can do to get it working?

If you can’t boot from the MSD, then there are some steps that you can take to diagnose the problem. Please note, though, this is very much still a work in progress:

  • Format an SD card as FAT32
  • Copy the current next branch bootcode.bin from GitHub onto the SD card
  • Plug it into the Pi and try again

If this still doesn’t work, please open an issue in the firmware repository.

 

 

The post Pi 3 booting part I: USB mass storage boot beta appeared first on Raspberry Pi.



Source: Raspberry Pi – Pi 3 booting part I: USB mass storage boot beta

Alexa internet of boat things – anchors aweigh!

Before we get to the meat of today’s post, which involves both Hackster and Alexa, we would be remiss if we didn’t remind you all that Hackster’s Internet of Voice competition to create voice-controlled Raspberry Pi projects is open until August 31 2016. It’s open worldwide – go and check it out!

We’re seeing Raspberry Pi users turn all kinds of things into Internet of Things devices: lorries, cat flaps, beer fridges – and now a boat.

imonaboat

Being able to hook your Raspberry Pi up to Amazon’s Alexa means that it’s increasingly easy to use a voice-trigger to set off a physical task. In Ufuk Arslan’s case, he was interested in automating some of the functions of his boat.

prototype boat

Testing a prototype

Ufuk had a bad habit of leaving lights on when going home for the night, which drained the boat’s batteries overnight. This project was initially intended as a quick and easy way to turn all the lights off at once, but has grown in scope. Ufuk’s now engineering it to work as a disembodied deck hand, and his first step in doing that has been to wire the system up to his anchor winch. A somewhat fiddly task. Ufuk says:

Pay attention to cables, colors and poles. You could easily end up wiring wrong cables and cause short-circuits or always running winches (both of which happened to me).

The results? Easy voice-command control of different systems on the boat. We forgive the portrait format video.

AlexaBoat

AlexaBoat Project https://www.hackster.io/ufuk-arslan/alexaboat-7f1a7e

This is just a start – we’d love to see where Ufuk is going with this project next. There are already lots of other projects out there for boat owners – navigation projects are a great way to take expense out of your own setup. Ufuk has documented the build all the way from creating an Alexa skill to rewiring his boat over on Hackster.

 

The post Alexa internet of boat things – anchors aweigh! appeared first on Raspberry Pi.



Source: Raspberry Pi – Alexa internet of boat things – anchors aweigh!

OpenROV: Underwater Exploration with Raspberry Pi

There are plenty of Raspberry Pis doing good work in various unusual environments, from monitoring penguins in the extreme cold of Antarctica to running schoolchildren’s programs in the earth’s orbit. Thanks to OpenROV, we can add ‘exploring the briny deep’ to that list.

openrov-Trident-Kelp

The California-based company’s newest product, Trident, is an affordable underwater drone built with hackability in mind. OpenROV raised over $815,000 on Kickstarter for Trident, an entirely new product to follow their popular OpenROV 2.8 underwater drone. All of us are especially excited about Trident because there’s a Raspberry Pi 3 inside. In a recent update to their backers, they shared the news:

Just after the Raspberry Pi 3 was announced, we began to research whether it would be possible to port our existing OpenROV software over to the Pi. After some final testing last month, including testing done during our Tahoe expedition, we made the decision to move our system over to the new architecture, and we couldn’t be happier. Having multiple cores gives Trident much better video and data processing capabilities, which will continue to come in handy as we release software updates. The built­-in features will make the entire system more solid from the get-go. Moreover, Trident will be (in our opinion, at least) one of the coolest devices that uses the Raspberry Pi. We’ve designed the Trident software to include an integrated development environment, so people wanting to write their own plugins and modifications can edit their code directly on the vehicle through their web browser, with no additional software needed. Fueling a strong developer community has always been core to OpenROV, and we think our integration of the Raspberry Pi 3 will move us even further in that direction.

openrov-motherboard-pi-3

I found myself mesmerised watching this video of how beautifully Trident flies underwater. Take a look for yourself:

OpenROV Haxpedition 2016: Trident Testing

This is a compilation video from our testing of Trident in Lake Tahoe in June 2016. Learn more: http://www.openrov.com/

I asked Eric Stackpole, one of OpenROV’s co-founders, why wireless LAN is useful if it doesn’t work through water. He said:

The Pi 3’s WiFi has been invaluable because we needed a simple way to talk to external payloads, without requiring soldering or specialised waterproof connectors. WiFi allows us to establish a high-speed connection with many off-the-shelf WiFi-enabled devices, such as GoPro cameras, 360 cameras, and IoT devices, as well as user-made payloads that can be connected to a WiFi module. Radio doesn’t travel very far through water but since payloads are physically attached to the vehicle, that creates a conduit in the insulating material through which the signal can travel. We wanted to create a user interface that was isolated from the vehicle electronics so that no matter what happens to the payload, the vehicle will continue to work reliably. We’ve been really happy with this system so far, and we’re excited to start designing more payloads for it soon. We’ll also publish more about the software plugin architecture soon.

For Trident users, being able to dig deep into the software makes their product especially extensible. And in a big win for our community, Trident’s software suite builds on top of Raspbian. The OpenROV team installs some of their own software such as OpenROV Cockpit, then adds some Debian packages and a few device tree overlays which allow the Raspberry Pi to interface with their controller board.

openrov-code

At the Raspberry Pi Foundation, we love how digital making isn’t just for those interested in computing itself. Computers are an empowering material for allowing people to explore their passions through programming and making. OpenROV’s Trident sits perfectly at the intersection of computing and underwater exploration. So it just might be the perfect thing for a budding Jacques Cousteau.

The post OpenROV: Underwater Exploration with Raspberry Pi appeared first on Raspberry Pi.



Source: Raspberry Pi – OpenROV: Underwater Exploration with Raspberry Pi