Skip to content

DIY version of the famous Aqara cube. Built with ESP32 and Home-Assistant

License

Notifications You must be signed in to change notification settings

SmartThingsDIY/esp32-smart-cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIY version of the Aqara cube - DIY with ESP32 and Home-Assistant

This DIY smart cube sits on your desk and provides ability to automate everything around you via quick shortcuts.

⚡️ COMPONENTS AND SUPPLIES

🚀APPS

📦 Libraries

Hardware Overview: MPU-6050 3 Axis Accelerometer Gyroscope

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.

Hardware Overview: SW-420 Vibration Sensor

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.

Hardware Overview: LiPo Battery

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.

3D PRINTED CASE

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

Schematic Diagram

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

Finally

All contribution to this project is appreciated

About

DIY version of the famous Aqara cube. Built with ESP32 and Home-Assistant

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published