Introduction
In this project we are going to create a simple keyboard using the Unda Xplora Kit. We will then connect the kit to our computers and run a simple Scratch Project using the Keyboard project. Scratch is a block-based programming language that allows user to create their own interactive games and animations.
To build this project we need:
- Unda Xplora Kit
- 4 Pushbutton(pick any four colors of your choice)
- 4 10 kilo ohm resistors
- Jumper Wires and Breadboarding Jumper Wires
- Computer
- Type-C Cable
- Scratch application (will be downloaded on your computer)
Let’s build the Keyboard Project
Connect four pushbutton and four 10K ohm resistors on the breadboard (one pin of the resistor next to one pin of each pushbutton and then the other pin in the bottom negative rail of the breadboard).
Connect a jumper wire from the 5V pin to the positive rail of the breadboard and then connect breadboarding jumper wires from positive rail to one side of each of the resistors placed next to the pushbuttons.
Connect jumper wires from digital pin D7 to the other pin of pushbutton1, from digital pinD8 to the other pin of pushbutton2, from digital pin D9 to the other pin of pushbutton3 and from digital pin D10 to the other pin of pushbutton4.
Connect a jumper wire from the GND pin to the bottom negative rail of the breadboard.
Connect a type C cable to your computer to the serial communication port of the Unda Xplora Kit.
Download the Scratch application from the official website and open the provided Scratch project. (The project has been named Scratch-Keyboard).
Once you are done building, return to the project window and run the project. Press the first button (U) and observe what happens on the Scratch Project. Press the other pushbuttons one at a time and observe what happens.
What did you observe?
Once you have uploaded the project and you press the pushbutton1(thi pushbutton corresponds to letter U), the fish in the Scratch application begins to move horizontally until it stops moving. When you press button1 again, the fish moves horizontally for 10 steps and stops again. The fish will keeping moving for 10steps and it will stop every time you press the button1.
Pushbutton2 represents the letter N. When you press pushbutton2 you will hear ocean waves and bubbles for 5 seconds. The sounds will stop and when you press the button2 you will hear the sounds again.
Try pressing pushbuttons 3 and 4 and observe what happens.
Feedback is closed.