Car Run Makey Makey Project

by lynnwang in Circuits > Microcontrollers

322 Views, 0 Favorites, 0 Comments

Car Run Makey Makey Project

1B0F5BCF-F6BA-4DC8-A2C1-87463DE163F0.jpeg

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

4B22F191-1413-4456-9CAD-0FFE40AD96AA.jpeg
4109D984-7BC1-4F68-9E7E-183CA77030C5.jpeg
A218E080-A02C-462F-BDD9-B55BF8C8965D.jpeg
1B0F5BCF-F6BA-4DC8-A2C1-87463DE163F0.jpeg

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

Screen Shot 2022-01-24 at 8.24.49 PM.png

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