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:
Now you're ready to get started!
How to do it...
Follow these steps to make our program that will check the resistance of two objects:
Open a new Scratch file.
- Drag over a block.
Drag three if statements underneath the block from step 2. This will result in the following:
Drag one of each of the three blocks from the Operators category that compare values into the conditional statements you just created.
This should result in the following...