O'Reilly logo

Scratch Cookbook by Brandon Milonovich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Measuring resistance

Resistance, which can be thought of as how easily electricity flows through something, can be measured (informally) using Scratch. This recipe is going to get us going in collecting resistance values.

Getting ready

This will be a recipe that will work with the resistance of two different items, so we'll use two sets of alligator clips. We'll create a program that will check the resistance of two objects, and will let the operator know which object has a higher resistance.

Set up the PicoBoard with two of the alligator clips, as shown here:

Getting ready

Now you're ready to get started!

How to do it...

Follow these steps to make our program that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required