Using Arduino with gaming

It’s not surprising that the Arduino community is packed to the brim with examples of gaming-related projects. Both activities tend to attract people with a love for problem-solving, technology, and getting immersed in one challenging activity for hours at a time. The result is that there are tons of fascinating Arduino projects that revolve around […]

The post Using Arduino with gaming appeared first on Arduino Blog.

It’s not surprising that the Arduino community is packed to the brim with examples of gaming-related projects. Both activities tend to attract people with a love for problem-solving, technology, and getting immersed in one challenging activity for hours at a time.

The result is that there are tons of fascinating Arduino projects that revolve around video games. If you enjoy sitting back in your favorite gaming chair and plunging into a world of virtual recreation, you’ll love what we’re sharing here — and maybe you’ll find some inspiration for your next project.

Let’s dive into a few of the best examples of Arduino-driven gaming creations.

Arduino project ideas for gamers

A tiny gaming mouse

The right mouse can make a world of difference in the world of PC gaming — there’s a reason high-end gaming mouses (mice?) can sell for eye-watering amounts of money.

If you want the most finely-tuned, customized mouse possible, though, you’ll have to make it yourself. That’s exactly what Science Shack did with this project — an ultra-light gaming mouse made using Arduino.

Driven by an urge to learn just how tiny a mouse could get, Science Shack embarked on his mission. The result? A mouse that is only 18 cubic centimeters in volume and less than 10 grams in weight.

Check out the full video where Science Shack walks through the process, materials, and the end result.

Handheld toggle switches game

When it comes to gaming, more complex isn’t always better. In fact, the old retro-style, ultra-simple games like Space Invaders are still popular decades on.

In keeping with this philosophy, Redditor ToggleBoss decided to create a handheld gaming device operated by nothing more than a small set of toggles. The device features a simple yet satisfying game on a small LED screen.

ToggleBoss’s project was built with just a handful of components — Arduino code running on a NodeMCU, together with a pull-up resistor for switches and an SSD1306 OLED display..

An LED gaming platform for people with special needs

One of the great things about gaming is that it’s an activity that almost anyone can enjoy.

This is now even more true thanks to Alain Mauer, who constructed this LED gaming platform specifically for people with special needs.

Mauer was inspired to create the project to help his son, Scott, who is non-verbal autistic. Later, he realized it could be enjoyed by many more people, including those with movement restrictions.

The game is a simple, LED-based puzzle operated by easy-to-press buttons on the device. There is no time pressure, and the device is extremely robust and durable.

Best of all, the project is designed to be as easy to replicate as possible. It uses affordable and easily obtained components with the code developed using the Arduino IDE 2. 

Arcade stacker game

Arcades may be associated with a bygone era, but that doesn’t mean we can’t replicate the same excitement and fun in our own homes.

Reddit user enlightened-creature built this arcade-esque stacker game with a 3D-printed case to capture the arcade vibe from anywhere. It’s built using a simple LED screen and some code and is easy to emulate — as proven here by another Arduino fan.

Exercise bike

In our busy, hustle-filled world, riding a stationary bike at home is one of the most convenient ways to get some exercise — saving the time and effort of hitting a gym or sports club.

But there’s one big problem… it’s boring. Programs like Peloton have evolved to help alleviate the tedium, but they’re expensive and not for everyone.

To solve the problem, Arduino user issaom decided to connect their exercise bike to the PC, transforming it as a controller for various driving simulator games. The pedals are, unsurprisingly, used to move forward, and a steering wheel is attached to the handlebars to change direction.

The project employs several components including an Arduino Nano and an Arduino Micro.

Take your gaming projects to the next level

With Arduino, it’s entirely possible to build projects just like these at home, with nothing more than a few easy-to-find components and some basic code.

The Arduino Project Hub is filled with similar examples, in any category you can think of and for all levels of experience. You can filter by project type and difficulty level, and even search for specific projects — plus there’s a specific section for interactive games. Check it out for inspiration and guidance.

The post Using Arduino with gaming appeared first on Arduino Blog.

Two NEW Arduino Plug and Make Kit projects recreate iconic vintage games

The Plug and Make Kit is a toolbox you can use for infinite ideas. So what happens if you ask a mix of Arduino designers, engineers, and managers to sit down and brainstorm new ideas to have fun with it? Well, at least one of them is guaranteed to come up with an adorable, old-school, […]

The post Two NEW Arduino Plug and Make Kit projects recreate iconic vintage games appeared first on Arduino Blog.

The Plug and Make Kit is a toolbox you can use for infinite ideas. So what happens if you ask a mix of Arduino designers, engineers, and managers to sit down and brainstorm new ideas to have fun with it? Well, at least one of them is guaranteed to come up with an adorable, old-school, slightly addictive video game. 

That’s exactly how Luca Doglione developed Flappy LED and LED Pong, during a “Make Tank” workshop we held in our Turin, Italy office a few weeks ago!

Meet Luca Doglione, Plug and Make Kit Star

Doglione is an engineering manager for the Arduino software and cloud teams, and one of the key people behind our website, cloud services, and course platform. He likes games in any shape or form, from board games to competitive computer games to vintage 2D arcade games. During the workshop, he was inspired by the different types of Modulino nodes and how they can be used together.

Flappy LED

Using Modulino Distance, Modulino Knob, Modulino Buzzer, and Modulino Buttons, Doglione quickly came up with a simple way to interact with the LED matrix on the Arduino UNO R4 WiFi, all of which are included in the kit. 

The goal of the game is to guide an LED dot up and down to avoid obstacles as you go – just like you would do with the bird in Flappy Bird. The longer you are able to avoid collisions and keep the LED moving, the higher the score!

You can control the movement of the LED light in two alternative ways: turning the knob, or moving your hand up and down above the distance sensor. You choose which mode you prefer by simply pressing the corresponding button on Modulino Buttons (A for the encoder or C for the distance sensor). 

Follow the full tutorial on Project Hub to build this quirky game yourself, and let us know how you customize or expand it. The sky’s the limit!

LED Pong

Doglione worked out Flappy LED so quickly that he had time to ideate a second game. He immediately thought of the classic Pong, and created his own version with Plug and Make Kit. This project is just as portable and easy to recreate as the first, and can be played by two people together. 

LED Pong requires two Modulino Knob: since each kit includes one per type of the seven nodes currently available, it is also a great idea for a collaborative making session with a friend! 


The knobs are used to move the paddle and bounce the ball back and forth. Missing the ball gives the other player one point – as neatly displayed on the Modulino Pixel. The first to reach five points wins! 

The full tutorial is here on Project Hub: try it out, and you’ll quickly bounce from nostalgia to excitement over how many new ideas Plug and Make Kit will unlock!

From reimagining old games to learning new tricks!

After seeing his playful ideas come together so easily, Doglione says, “My favorite part of Plug and Make Kit was being able to bypass the electronics to focus on user experience and interaction. This really unleashed my creativity. Having to figure out circuits always stopped me from tackling complex hardware projects – and I have a degree in computer science! Having that little yellow base and modular Modulino nodes made it really satisfying to see my project looking neat.”

What do you think about Doglione’s games? And what vintage games could you recreate with Arduino Plug and Make Kit? 

Flappy LED

LED Pong

The post Two NEW Arduino Plug and Make Kit projects recreate iconic vintage games appeared first on Arduino Blog.

Exercise while you game with this interactive treadmill add-on

Motion-based controls for games have been around for decades, but even with the latest generation of virtual reality headsets, gaming is still done with relatively limited movement unless one has access to an expensive VR walking/running setup. As an effort to get more physical activity in, Iacopo Guarneri has developed a motion-capturing add-on that can be […]

The post Exercise while you game with this interactive treadmill add-on appeared first on Arduino Blog.

Motion-based controls for games have been around for decades, but even with the latest generation of virtual reality headsets, gaming is still done with relatively limited movement unless one has access to an expensive VR walking/running setup. As an effort to get more physical activity in, Iacopo Guarneri has developed a motion-capturing add-on that can be worn while on a treadmill, stationary bike, or elliptical to control in-game actions.

The wearable device itself is comprised of two components: an Arduino Nano and a six-axis MPU-6050 inertial measurement unit (IMU), which captures changes in velocity and orientation. Both of these parts are housed in a custom 3D-printed case that can be attached to the user’s back via a strap. In the sketch, the Nano continuously reads motion data from the IMU, packs it into a serialized representation, and sends it over serial to the host machine for further processing.

Unlike how running in a video game is performed by holding the left joystick up, the accelerometer outputs a sine wave in the Z-axis while the user is bobbing up and down, which necessitated the use of a smoothing function to prevent sudden stops and starts. Turns, however, are much simpler, as the user’s left or right tilt can be directly translated into sideways motion. Once both axes have been calculated, the virtual gamepad’s inputs are updated with the new values and sent to the game.

You can read more about Guarneri’s project here on Hackster.io.

The post Exercise while you game with this interactive treadmill add-on appeared first on Arduino Blog.