Project showcase

Control a Light Switch With Your Infinity Gauntlet © GPL3+

DIY Infinity Gauntlet from cardboard (Reality Stone controlled light switch).

  • 250 views
  • 0 comments
  • 5 respects

Components and supplies

About this project

I was inspired by the recent Avengers movies, so I started making Thanos' Infinity Gauntlet out of cardboard. In this project, I used an MPU-6050 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) is the receiver.

Hardware and Materials Required

Arduino Mega + USB Cable II Arduino Uno

Arduino Nano

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 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

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

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 below to see how it was constructed!

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 onto your Arduino Uno.

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.

Wiring Diagram for Receiver

I mounted the 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

The Infinity Stone LED and servos are controlled by the movement of the gauntlet detected using an MPU-6050 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.

Code

Transmitter__Infinity_Gauntlet_.inoArduino
No preview (download only).
Receiver_Servo.inoArduino
No preview (download only).
Github
https://github.com/ElectronicCats/mpu6050
Github
https://github.com/FastLED/FastLED
Github
https://github.com/nRF24/RF24

Schematics

Transmitter
Transmitter schematic wiy7bz1ci4
Receiver
Receiver schematic xzlne9rpj5

Comments

Similar projects you might like

Control your light system with your voice

Project tutorial by Maha Raafat

  • 37,529 views
  • 22 comments
  • 156 respects

Bluetooth Controlled Light Switch

Project showcase by The Instrumentation Crustaceans

  • 26,774 views
  • 4 comments
  • 27 respects

Control Your Light Switch with Your Smartphone

Project tutorial by Alasdair Allan

  • 16,289 views
  • 1 comment
  • 34 respects

Switch on the Light - SOL

Project showcase by Akash Ravichandran

  • 3,085 views
  • 3 comments
  • 3 respects

WIZnet S2E Light Control

Project tutorial by S2ELighting

  • 1,911 views
  • 0 comments
  • 7 respects

Control AC Light Using Arduino

by Mayoogh Girish

  • 4,928 views
  • 1 comment
  • 14 respects
Add projectSign up / Login