Exploring the PicoBoard sensors

One of the great all-around add-ons for Scratch is the PicoBoard, which plugs in very easily to the Raspberry Pi. In a previous issue of Raspberry Pi Geek, I introduced the resistance sensors on the PicoBoard by attaching them to a thermistor and measuring the resistance values of melting or warming water [1]. This time around, I'll show you two animations you can do with the PicoBoard as educational projects or part of a larger project.

The first example uses musical fruits and veggies to explore the sound sensor and create some music scripts using the sound blocks in Scratch. If you don't have a PicoBoard [2], the scripts shown here will still give you ideas and actual snippets of code that you can use to add music to other projects.

The second example creates a joystick to control the speed and direction of a sprite by using the slider and light sensor. The second half of the script demonstrates a universal way to move sprites to the opposite side of the stage after it passes the boundary.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 4

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content