Using the GoGo Board with Scratch
Scratch is a graphical programming language designed at MIT especially for children. Scratch can receive sensor data from the GoGo Board. This allows you to use sensors to build games, interactive applications, stories, etc with Scratch. It is, at the moment, a hidden feature. You need to follow these steps to enable the GoGo Board support in Scratch.
- In Scratch, switch to the "sensing" blocks.
- move the mouse pointer to the last block with a name beginning with "sensor ..."
- Right-click on the block. A pop-up menu will appear. Select "show ScratchBoard Watcher"
- You will see a sensor monitor window appear in the output area (where the cat is located).
- Hold the shift key while right-clicking the sensor monitor window. A pop-up menu will appear. Select "use GoGo board"
- Right click once again on the sensor monitor windows. This time without holding the shift key. Click on "select Serial/USB Port"
- Choose the serial port connected to the GoGo Board.
- Scratch will try to communicate with the GoGo Board. If this succeeds, you will see sensor values appear on the monitor window.
You can now use the GoGo sensor values from the "sensor" block. Note that the sensor values are scaled to range between 0 and 100 (and not 0 to 1023 like in the GoGo Monitor software). Sensor 1-4 are called "Slider", "Light", "Sound", and "Button" in Scratch.
Here's a video describing the above process:
