How to make a video game controller with a sweet potato and a Makey Makey electronic board
Welcome back for a new Tech STEM tutorial specially made for your kids.
I think that if you are on this blog it's because you or your kids like to tinker, make things, learn how to code, learn how to make video game, like electronics and the list is still going on.
If that's the case, I think you'll be happy just by reading these few lines I'm typing right now.
Let's talk electronics
When we say electronics, that sounds so vague that sometimes we forget to decompose things in simple pieces. yes I know, even electronics can be understood. Lol
Electronics to work usually need a battery. It's everywhere in your product, from toys to your smartphones or tablets. It allows to have energy to the main active components you are trying to turn on. But let's talk about it in a couple of lines.
You also have a main other component called a switch. You usually use them to turn on or off the device you are using. Let's take a simple example such as a light bulb. Click Click, it's on or off. that's it.
And to finish this part, you may also need an active part, that may be a buzzer to make sounds, a diode to make light, a motor to move things or an electronic chip that does special things depending of it's manufacturer.
Courtesy : Ebay
Electricity and conductivity
All the components we saw before needs to be connected together to work. This is what we call a schematic. It starts from the battery to bring the energy to our led or motor. To connect them together, you may need cables like the following schematic.
Cables have a good conductivity depending of their materiel. But what you need to remember is conductivity. Even you, you are conductive because you are made of 70% of water. Meaning the electricity can cross your body. that's why your family ask you since a young age to not touch electric devices, switches when your hands are wet.
Talking video games, these are popular since the 70's on the small screen. It usually started with a character that you control. This character may be a man, a car or a cat like the game we play in Scratch. Let's say the famous Pacman that patrol in a maze to it them all.
What you usually do in that type of game, is jumping, moving the main character around to avoid the bad guys, his environment . All that controlled by a keyboard if you are on a computer or a video game controller if you are playing on a console like a Nintendo Wii, a PlayStation, a Xbox or another one.
Video game controller
A controller is usually made to interact with the character in the screen. When you press a button, it reacts for what purpose it has been code. When you push a button or switch, you close a circuit that let the electricity goes through to activate a chip ( That will do what it was programmed for). It come with a joypad with four different arrows to go Up, Down, Left and Right.
Let's make a video game
Let's code a little with Scratch MIT
This is a quick note about how to open scratch and what are the main parts in the interface.
To start coding with Scratch, you first need:
A web browser installed on it ( Google Chrome, Firefox, Opera or something else depending of your preferences)
An internet connection
From there, you open your browser, then type ''google.com''. In google, you type '' Scratch'' or ''Scratch MIT''. You select the first link. The one with the link
Click on it and you should arrived on that window. Click on “start creating”
Close the pop-up window.
Let’s get it started now. ;-)
We will with the following code move our character Up, Down, Left and Right. You can find the block "when Space key pressed" in the "events" tab.
And the "move 10 steps" block in the "motion" tab.