Measuring and graphing resistance with a PicoBoard and a thermistor

Creating Script Variations

You could modify this project to run on-demand collections that measure the resistance for a list of individual items. For example, if you want to compare the resistance of a list of items (e.g., a penny, a butter knife, tin foil, and a water-soaked paper towel), you could revise the collection script to run the add (resistance-B) sensor value to (measurements) block when the C key is pressed. Then, in the graphing script, replace the pen down block in the repeat (length) of (measurements) block with a stamp block. Now each point will be a cat that will compare the resistance of the tests. You can change the sprite and size as appropriate.

Happy Scratchin'.

The Author

Michael Badger is author of Scratch 2.0 Beginner's Guide from Packt Publishing. Learn more at

Buy this article as PDF

Express-Checkout as PDF

Pages: 4

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Exploring the PicoBoard sensors

    This project uses the slider, light sensor, and resistance sensors on the PicoBoard to connect your Scratch project to the physical world. The two examples create musical fruits and veggies and a PicoBoard joystick.

  • Stop-motion animation

    Stop-motion animation doesn't require expensive cameras and movie editing software. With Scratch and a Pi camera, you can become your own director, producer, and publisher.

  • How to create a scrolling sprite project

    With the help of an existing project, we show you how to program scrolling sprites in a series or in a continuous loop.

  • Build a simple shooter game

    We show how to use Scratch sprites to shoot at various targets.

  • Synchronizing with broadcasts

    This article draws inspiration from the popular Pokémon Go app to recreate a sprite hunting game in Scratch. The project explores synchronization and randomness as the player explores various backdrops in search of sprites.