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 RequiredArduino 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 ModulenRF24L01 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.
MPU6050The 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 StripThe 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 CardboardYou can watch the video below to see how it was constructed!
Transmitter (Infinity Gauntlet) CodeAll 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 CodeConnect 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 ReceiverI 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.
FinishThe 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.
Comments
Please log in or sign up to comment.