The junkbot itself is made up of a drinks can, three supports (we used LEGO here but it equally could be straws, sticks), a pen/pencil, and a motor and broken propeller combination to create an unbalanced motor.
With the Raspberry Pi off, the the motor's wires are connected to the controller card at the connections for MotorA and the battery is also connected. Turn the Pi on and run ScratchGPIO5plus |
|
The first task is to make the variables AddOn (which will be used to tell the program we are using the PiRoCon card) and MotorA for the motor (see Figure 3).
In Figure 2 the program can be seen, essentially the left and right key spin the junkbot clockwise or anticlockwise by setting the Motor to either +ve or -ve values from 0 to 100. The space bar is used to stop the motor.
As it moves because one of the supports is a pen it draws. See the video below to watch it draw a squiggly line - control is still a challenge.
The bot was developed by Hayden Tetley and Scott Turner. Hayden's time was paid for through the Nuffield Research Placements Scheme (http://www.nuffieldfoundation.org/nuffield-research-placements).
In Figure 2 the program can be seen, essentially the left and right key spin the junkbot clockwise or anticlockwise by setting the Motor to either +ve or -ve values from 0 to 100. The space bar is used to stop the motor.
As it moves because one of the supports is a pen it draws. See the video below to watch it draw a squiggly line - control is still a challenge.
The bot was developed by Hayden Tetley and Scott Turner. Hayden's time was paid for through the Nuffield Research Placements Scheme (http://www.nuffieldfoundation.org/nuffield-research-placements).