This program can be used to make an Arduino Esplora act like a PicoBoard.
Created by John Bracegirdle
last edited Aug 27 2013 by John Bracegirdle
This program can be used to make an Arduino Esplora act like a PicoBoard. It can be re-programmed, and has all the capabilities of both the Arduino and PicoBoard. This allows students to start learning using Scratch and develop into the full Arduino system. This can also be purchased for about the same price or less than the PicoBoard.
Teaches: Physical Computing, Sensors, Interfaces, Scratch, Arduino
The program maps the accelerometer to resistance A and B, and the joystick to resistance C and D. This can be changed to other inputs by changing the code.
The accelerometer and joystick send the data to Scratch using positive and negative numbers (using two’s complement). Scratch interprets the numbers as all positive, so some Scratch code is needed to convert these into negative numbers. I have included an example of the Scratch code as a file.
I chose the Arduino Esplora as it has the sensors built-in. You can use other Arduino compatible boards with the ScratchSensors library. You would have to create your own sensors, but that could be part of the learning.