Car Run Makey Makey Project
by lynnwang in Circuits > Microcontrollers
360 Views, 0 Favorites, 0 Comments
Car Run Makey Makey Project
I never thought that doing a project would be so fun! It is a simple project that can be done relatively quickly, and when you're done, you have a neat little game you can play! Doing this project was very fun, and trying out the makey makey for the first time was really cool experience.
Supplies
- Lego pieces
- Foil
- Chromebook/laptop
- Makey Makey Kit
- Scratch Program(https://scratch.mit.edu/projects/612889130/)
Creating the Console
1. take a long, wide, flat lego piece, and make that your base
2. get a circular piece and connect it behind the base piece
3. get a smaller flat piece and connect it to the middle of the base
4. get a circular piece and attach it to the circular piece from step two and wrap foil around it
5. take a piece and place it at the ends of the piece from step three and wrap foil around it
Building the Code
1. create a new project on Scratch.mit.edu
2. create a function for the left, right, and up button(use the space or down button to your liking)
3. based on what challenges you want in your scratch code, build to your liking
What I did:
1. create rock sprite
2. program the car to crash if touching rock sprite
3. create another stage/background
4. create ball sprites
5. program ball sprites to fall from the top of the screen to the bottom
6. if car is touching any of the balls, program the car to crash
7. if car made it through without touching any of the obstacles, it succeeds
Testing the Code and Makey Makey
1. connect the makey makey to your computer/laptop
2. connect the alligator clips from your makey makey to your console
3. run through the code, and make sure everything runs smoothly
4. if there are any flaws in the code, adjust it