is a visual programming environment from MIT Media Lab.
You can program anything, game, anime, music and etc by building blocks without keyboard.
PicoBoard is a sensor board that detects light, sound, button, sliders and resisters, and transforms them into the values of Scratch.
WeDo is a robot kit from LEGO education. It is like Mindstorms but it can be controlled by Scratch.
I wrote a sketch to emulate PicoBoard and WeDo for littleBits Arduino module. So you can play Scratch with all of littleBits modules.http://squeakland.jp/abee/tmp/NanoBoardAGWithMotors.zip
The Arduino sketch is based on NanoBoard by by Tomo Niimura.
And NanoBoard is based on HelloBoardV2 by PINY and Song Hojun.
Those sketches are licensed under CC BY-SA.
Scratch Source Code is licensed under Scratch Source Code License by MIT.
NanoBoardAGWithMotor and NanoBoardAGWithMotors are licensed under MIT license by Kazuhiro Abe.
How To Make It
If you want to use it as PicoBoard, just upload the sketch, “littleBitsAsScratchSensorBoard.ino” to your Arduino module by Arduino IDE. It works with Scratch 1.4 and 2.0 online extension.
The value of input port “d0” is reflected in “button” of Scratch.
The value of input port “a1” is reflected in “slider”.
The value of input port “a0” is reflected in “sound” and “resister C”(no scale correction).
If you want to use it as WeDo, you need to use “NanoBoardAGWithMotors.image” instead of standard “Scratch image” of Scratch 1.4.
The output port “d9” is for “motor A”.
The output port “d5” is for “motor B”.
When the rotate direction of “motor A” is “this way”, the output port “d1” is HIGH.
You can give any value of power from 0 to 100 for each motors, but it changes by 8 steps (includes 0).
If you need more power steps, please use “littleBitsAsScratchSensorBoardSingle.ino” and “NanoBoardAGWithMotor.image" in http://squeakland.jp/abee/tmp/NanoBoardAGWithMotor.zip .
It supports only one motor but 128 power steps.
The output port “d9” is for “motor”.
When the rotate direction of “motor” is “this way”, the output port “d1” is HIGH.
When the rotate direction of “motor” is “that way”, the output port “d5” is HIGH.
You may find further information in the sketch file.
Bits used: Arduino