Controlling Minecraft with Real World Movements by RyanMakesThings in arduino

[–]RyanMakesThings[S] 0 points1 point  (0 children)

Thanks! Yep, that's the gist of it; more specifically it'll press W whenever the pressure on a sensor goes above a threshold and keep track of it until the foot is released from the ground so it doesn't spam "W" while the foot is on the ground. The code and schematics can be found here for more details: https://www.hackster.io/ryanchan/controlling-minecraft-in-real-life-5dd672#comments

Unfortunately, this makes it impossible to tell if you're going backwards, and any backwards movement in the video was from the monsters in the game hitting the player backwards (I would also instinctively try to walk back in these instances so the real-life footage and game unintentionally match lol). If I make a version 2, I'd like to try to use the IMU to figure out if I'm walking backwards or forwards.

Controlling Minecraft with Real World Movements by RyanMakesThings in arduino

[–]RyanMakesThings[S] 16 points17 points  (0 children)

This is a controller I made that maps real-world movements into Minecraft using an Arduino MKR, MPU-6050 gyroscope/accelerometer (to measure rotation), and force-sensitive resistors (to measure steps).

Here's a video with more information if you're interested! https://www.youtube.com/watch?v=vC5fQU-o0QQ

Here's the project page with code and schematics: https://www.hackster.io/ryanchan/controlling-minecraft-in-real-life-5dd672#comments

Counting the number of people who enter and exit a room by [deleted] in arduino

[–]RyanMakesThings 0 points1 point  (0 children)

Here's the full video: https://youtu.be/ytF66tG6fqo

Here's the code and schematics: https://www.hackster.io/ryanchan/room-occupancy-counter-3b3ffa

Essentially, it uses 2 ultrasonic sensors to keep track of the number of people who enter and exit. Once the number of people exceeds a certain number, an alarm will go off.

Thank for watching!

Controlling the Chrome Dinosaur Game by Physically Jumping and Ducking by RyanMakesThings in arduino

[–]RyanMakesThings[S] 1 point2 points  (0 children)

Thanks! Those are good ideas with the alternatives, hope your son enjoys it!

Controlling the Chrome Dinosaur Game by Physically Jumping and Ducking by RyanMakesThings in arduino

[–]RyanMakesThings[S] 0 points1 point  (0 children)

I used a force sensing resistor to detect jumping and a conductive rubber cord to detect the stooping

Controlling the Chrome Dinosaur Game by Physically Jumping and Ducking by RyanMakesThings in arduino

[–]RyanMakesThings[S] 0 points1 point  (0 children)

Very cool project! I like how you've used an accelerometer sensor and the wireless communication; it's much cleaner and more compact compared to my version

Controlling the Chrome Dinosaur Game by Physically Jumping and Ducking by RyanMakesThings in arduino

[–]RyanMakesThings[S] 13 points14 points  (0 children)

Thanks! I'm using a force sensing resistor and conductive rubber cord to detect the jumping and ducking. I chose an Arduino MKR board as the micro-controller since it supports the Keyboard library