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
9v Battery: https://amzn.to/2zIcBmL
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
nRF24L01+ 2.4GHz Wireless RF Transceiver Module: https://amzn.to/30xQlp4
LED Strips: https://amzn.to/2Hquzf6nRF24L01 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
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.
No preview (download only).
No preview (download only).