Control a Light Switch With Your Own Cardboard Infinity Gauntlet

by Barqunics in Circuits > Arduino

1467 Views, 1 Favorites, 0 Comments

Control a Light Switch With Your Own Cardboard Infinity Gauntlet

How To Make A Working Infinity Gauntlet From Cardboard(Gesture Controlled Lamp Switch) || Avengers

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.

Hardware and Materials Required

Arduino Mega + USB Cable II Arduino Uno : https://amzn.to/2qU18sO II https://amzn.to/2qU18sO

Arduino nano: https://amzn.to/2zMXJU8

9v battery: https://amzn.to/2zIcBmL

Switch: https://amzn.to/2upTngE

Jumper wires: https://amzn.to/2zKePBX

Male DC Barrel Jack Adapter for Arduino : https://amzn.to/2DLx6jI

Micro Servo 9g : https://amzn.to/2DXdE2e

Mini Breadboard : https://amzn.to/2JujS9e

9v Battery Clip Connector : https://amzn.to/2M9nMLx

Cardboard : https://amzn.to/2w9b1Wa

Ruby : https://amzn.to/2VA5GSi

NRF24L01+ 2.4GHz Wireless RF Transceiver Module: https://amzn.to/30xQlp4

MPU 6050 : https://amzn.to/2HtMbHf

LED Strips : https://amzn.to/2Hquzf6

NRF24L01 2.4GHz Transceiver Module

nRF24L01-Pinout.png

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.

MPU6050

MPU6050-Pinout.png

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.

WS2812B LED Strip

vlcsnap-2019-07-21-22h31m16s660.png

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.

Making the Infinity Gauntlet From Cardboard

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

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.

Receiver Code

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

Downloads

Wiring Diagram for Transmitter (Infinity Gauntlet)

Transmitter Schematic.jpg
vlcsnap-2019-07-21-22h31m42s083.png

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

Wiring Diagram for Receiver

Receiver Schematic.jpg
vlcsnap-2019-07-21-22h35m12s030.png

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.

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.