Category Archives: Video

Raspberry Pi 2 (US $35) computer board features Scratch

Raspberry Pi 2 is a US$ 35 computer board to which you attach a monitor, keyboard, mouse and Ethernet connection. You can use the Pi 2 for web browsing and other functions, but it also comes with Scratch.

Scratch is a programming system that is very similar to MIT App Inventor. You can learn more about Scratch in our previous post on that topic!

But because one of Raspberry Pi’s goals is to advance computer science education, there’s a few pieces of bundled software that can help achieve that goal. This includes a drag-and-drop visual programming language called Scratch (great for beginners to create animations and games), as well as Sonic Pi (for creating electronic music) and more advanced programming languages like Python (also included).

via Surf Report: Taking a bite out of Raspberry Pi.

And speaking of STEM, here are some videos from yesterday’s Oregon City FRC FIRST Robotics Pacific Northwest District 2 (Oregon) robotics competition. 35 high school robotic teams took part, with Team #4488 “Shockwave” taking first by total points. I am biased: I am a volunteer engineering mentor with the Shockwave team, from Glencoe High School, Hillsboro, Oregon. Go Shockwave!

Continue reading Raspberry Pi 2 (US $35) computer board features Scratch

Sensors: How to use the Orientation Sensor

Smart phones and tablets contain several kinds of “sensors” to sense information about their environment. For example, an accelerometer provides information about movement of the phone (or tablet) – letting us know the speed and direction of travel in x, y and z coordinates (three dimensions).

The orientation sensor tells us if the phone is tilted to the left or right, or up or down (or flipped over). App Inventor provides a simple to use interface to the orientation sensor. We can use this to control a sprite or ball on the screen – by tilting our phone, we can make graphic items move around on the screen!

Sample source code that you can download is at the bottom of this post!

After going through this tutorial, you now know enough to create your own interactive smart phone game!

Review

Before we get started, please review these earlier tutorials:

Continue reading Sensors: How to use the Orientation Sensor