Introduction: Play Pong With Scratch for PcDuino

Picture of Play Pong With Scratch for PcDuino

pcDuino team developed a custom version of Scratch for pcDuino. It’s fairly easy to install it. We simply need to type:

$sudo apt-get install pcduino-scratch

In this tutorial, we are going to see how to create a pong game on pcDuino using Scratch.

Compared to the MIT scratch, the Scratch of pcDuino has a hardware tab, and this makes the hardware programming really easy.

Step 1: Step 1: Pong

Picture of Step 1: Pong

In this game, we will use hand to control the movement of the boards to
reflect the ball back. When we wave the hand closer to the sensor, the board will move down, and move up when we move away from the sensor.

Step 2:

Step 3: Step 3: Wiring Diagram

Picture of Step 3: Wiring Diagram

The following diagram shows how to wire infrared sensors to pcDuino:

A picture of the real setup is shown below:

Step 4: Step 4:Scratch for PcDuino Screen Shot

Picture of Step 4:Scratch for PcDuino Screen Shot

The pong scratch file can be downloaded from: https://github.com/pcduino/scratch4pcduino_projec...

Comments

About This Instructable

988views

5favorites

License:

More by Linksprite:Using Breakout Board for ADMP401 MEMS Microphone on pcDuinoAnother home automation project with pcDuinoHow to remotely boot pcDuino from a NFS server
Add instructable to: