Introduction: Control a Light Switch With Your Own Cardboard Infinity Gauntlet

About: I build fun and awesome projects with Arduino, Raspberry Pi, ESP8266, ESP32 based boards.

I was Inspired by Avengers Movie, I started making Thanos Infinity Gauntlet from cardboard. In this project I used MPU6050 and NRF24L01+ 2.4GHz Wireless RF Transceiver Modules to communicate between two Arduino boards wirelessly. The Infinity Gauntlet is the transmitter and Servos(Light Switch) are the receiver.

Step 1: Hardware and Materials Required

Arduino Mega + USB Cable II Arduino Uno : II

Arduino nano:

9v battery:


Jumper wires:

Male DC Barrel Jack Adapter for Arduino :

Micro Servo 9g :

Mini Breadboard :

9v Battery Clip Connector :

Cardboard :

Ruby :

NRF24L01+ 2.4GHz Wireless RF Transceiver Module:

MPU 6050 :

LED Strips :

Step 2: NRF24L01 2.4GHz Transceiver Module

NRF24L01 2.4 GHz Transceiver Module uses the 2.4 GHz band and it can operate with baud rates from 250 kbps up to 2 Mbps and it can be used for wireless communications at up to 100 meters.The operating voltage of the module is from 1.9 to 3.6V, but the good thing is that the other pins tolerate 5V logic. The module communicates using SPI protocol.You should make looking at the arduino pin connector model SPI pins.

Step 3: MPU6050

The MPU6050 consists of a 3-axis Accelerometer and 3-axis Gyroscope inside it. This sensor helps us to measure acceleration, velocity, orientation, displacement and many other motion related parameter of a system or object. This chip uses I2C (inter-integrated circuit) protocol for communication.

Step 4: WS2812B LED Strip

The WS2812B is an intelligent control LED light source, with the control circuit and RGB chip integrated directly into a 5050 RGB (Red, Green, and Blue) LED. Each LED has three connectors at each end, two for the powering and one for the data. It requires only one data input to control the state, brightness, and colour of all the three LEDs.

Step 5: Making the Infinity Gauntlet From Cardboard

You can watch the video How I made The Infinity Gauntlet From Cardboard.

Step 6: Transmitter ( Infinity Gauntlet) Code

All you need to do is install MPU6050 library, I2C library, FastLED library, RF24 Library. You will get an error if you dont install.

When you want to add a new library into your Arduino IDE. Go to the directory where you have downloaded the ZIP file of the library. Extract the ZIP file with all its folder structure in a temporary folder, then select the main folder, that should have the library name. Copy it in the “libraries” folder inside your sketchbook.

Connect the arduino and upload the given program on your arduino uno.

Step 7: Receiver Code

Connect the arduino and upload the given program on your arduino uno.

Step 8: Wiring Diagram for Transmitter (Infinity Gauntlet)

In this project I put my electronics inside the infinity gauntlet . You may want to put the electronics in a secure place.

Step 9: Wiring Diagram for Receiver

I mounted arduino uno, 9v Battery and wireless module on the wall using double tape and I mounted servos near the light switch so you can wirelessly turn on/off the light whenever wherever you want.

Step 10: Finish

Infinity stone LED and servos are controlled by the movement of the gauntlet detected using an MPU6050 sensor, so when you move the gauntlet up then Infinity stone LED will light up and the servos will rotate and if you move the gauntlet up again the LED will be off and the servos will rotate in opposite direction.