IoT Zone is brought to you in partnership with:

Stephen Chin is a technical expert in RIA technologies, and Chief Agile Methodologist at GXS. He coauthored the Apress Pro JavaFX Platform title, which is the leading reference for JavaFX, and is lead author of the Pro Android Flash title. In addition, Stephen runs the very successful Silicon Valley JavaFX User Group, which has hundreds of members and tens of thousands of online viewers, and also is co-organizer for the Flash on Devices User Group. Finally, he is a Java Champion, chair of the OSCON Java Conference and an internationally recognized speaker featured at Devoxx, Jazoon and JavaOne, where he received a Rock Star Award. Steve can be followed on twitter @steveonjava and reached via his blog Stephen is a DZone MVB and is not an employee of DZone and has posted 30 posts at DZone. You can read more from them at their website. View Full User Profile

DIY Raspberry Pi Workshop for Kids

  • submit to reddit

I did a successful workshop this past weekend at Silicon Valley Code Camp with 50 very enthusiastic future developers.  They were ages 10 and up, and everyone in the class got a Java game running on their Pis, and made 2 or more improvements in the span of a few hours.

Here is a picture of some of the young hackers at work:

This lab also happens to be easy to run, so I recommend giving it a try at a local school or at home with your own young ones.

Here is what you need:

Raspberry Pi$35Make sure to get the Model B for the extra memory and ethernet.
8GB SD card$10Another good option is to get a Raspberry Pi with a pre-installed SD Card
Silicon Keyboard$7You can use any USB keyboard you have handy, but this is a good option for a portable setup.
Touchscreen$135The Chalkboard Electronics 10" screens are compatible with JavaFX touch events and double as a power source. (Hint: Discount code on page 10 of the presentation below)

So for as little as $45 you can have a mini computer for kids to hack on, and if you get the whole setup you have the ultimate portable lab kit.

To setup the Pi for the first time, you need to install Linux, Java, and download the source code for the game.  This can be accomplished by following the instructions on my earlier blog entry on how to setup your Raspberry Pi for the first time:

The source code for the Java lambdas game I used is available in Github here, along with all the build scripts for executing it on the Raspberry Pi:

If you want a shortcut for setting up the above, I uploaded an image that should be compatible with any 8GB or greater SD card for download here (if you choose this option, you can skip the above two steps):

Raspberry Pi 4 Kids Workshop Image

Setting up the hardware and running the lab is as easy going through the presentation deck I prepared.  I uploaded the full deck to slideshare (which includes hardware setup, code walkthrough, and some kid-friendly warm-up slides) here:

Some notes for folks giving this as a lab:

  • Make sure you get through the electrical safety slide before distributing hardware to avoid any “oops!” moments.
  • When going through the code, ask the kids what ideas they have for making simple modifications.  Some easy ones include:
    • Increase the number of sheep that get generated by the Barn
    • Change the colors of the animals when they step on the Rainbow
    • Change the scale of the Fox when he eats animals
    • The kids will come up with plenty more ideas on their own!
  • I also recommend pre-connecting the cable to the HDMI board so that you don’t have any bent pins or the cables don’t end up upside-down

Give this a try with your own budding group of computer hackers and see how much fun they can have!

Published at DZone with permission of Stephen Chin, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)