Scratch Remote Sensor API

Pynetsense is a Python library that provides a simple to use API for implementing Scratch networking sensor clients. For communicating with Scratch, the remote sensor protocol is used.

Beside providing a simple API to manage messages and variables, a wrapper framework is provided. The wrapper framework helps with implementing sensor clients that run in the background as daemons.

Currently there is a fully featured wrapper included for wrapping the GPIOs of an Raspberry Pi into an Scratch remote sensor client. This allows one to access the GPIOs of the Pi from Scratch by simply setting/getting some global variables.  The videos below show how the Pi wrapper is used from Scratch. For more details see the project page.

Raspberry Pi GPIOs as Remote Sensors Part 1

Raspberry Pi GPIOs as Remote Sensors Part 2

Leave a Reply

You must be logged in to post a comment.