This DIY smart cube sits on your desk and provides ability to automate everything around you via quick shortcuts.
- ESP32 Board
- MPU-6050 3 Axis Accelerometer Gyroscope
- SW-420 Vibration Sensor
- 5 LiPo Batteries And Charger
- Breadboard
- Solder Kit
- Helping Hands for soldering
- Breadboard - Jumper Wires - Male to Male Jumper Wires + Tweezer
The MPU-6050 is a serious little piece of motion processing tech! By combining both a 3-Axis accelerometer and a 3-Axis gyroscope on a single chip, the MPU-6050 is capable of processing complex 9-axis MotionFusion algorithms, the MPU-6050 does away with the cross-axis alignment problems that can creep up on discrete parts.
This Vibration Sensor Module consists of an SW-420 Vibration Sensor, resistors, capacitor, potentiometer, comparator LM393 IC, Power, and status LED in an integrated circuit. It is useful for a variety of shocks triggering, theft alarm, smart car, an earthquake alarm, motorcycle alarm, etc.
A Lithium Polymer battery, or more correctly Lithium-ion Polymer battery (abbreviated as LiPo, LIP, Li-poly, lithium-poly and others), is a rechargeable battery of lithium-ion technology using a polymer electrolyte instead of a liquid electrolyte. High conductivity semisolid (gel) polymers form this electrolyte. These batteries provide higher specific energy than other lithium battery types and are used in applications where weight is a critical feature, such as mobile devices, radio-controlled aircraft and some electric vehicles.
I had purchased this set of 5 batteries with a charger from Amazon for under $15 and been using them for a previous project without a problem, so that shall be my go to battery for this project as well.
No one likes wires hanging around, and so I went ahead looking for a 3D case I can use for this project and luckily found this one on Thingiverse so that's what I'll be using
Wire the MPU6050 and the SW-420 to the ESP32 development board as shown in the following schematic diagram.
Make sure you have installed an MQTT broker in your HomeAssistant setup beforehand. You can start here: https://www.home-assistant.io/docs/mqtt/broker#run-your-own
All contribution to this project is appreciated