Discover a new way to interact with your smart home thanks to Arduino 101: tilt and shake the cube to control your devices via Bluetooth!
Project tutorial by Alberto Sartori
A 3D printed, battery powered box that includes an Arduino, an OLED display and a rotary encoder is used to control a motorized turntable.
Project showcase by Robin1508
For my thesis, I have developed the control system and end-effector for a robot, easily implementable and economic.
Project showcase by PowerBerry
J.A.R.V.I.S. is a personal home automation assistant for controlling electrical home appliances integrated with an augmented reality app.
Project tutorial by Blitzkrieg
This is an example of project that you can modify to realize your centraline:
You can find other examples just typing something like "smart home bluetooth arduino" on google. Basically you need another board that receive the BLE signal from the smart cube and then controls your appliances using some relay modules.
For the SMART CUBE project I used the SeeedStudio Grove LCD RGB Backlight. Here you can download the library for this hardware:
This project only include the code that you need to build the Smart cube. You can browse the web and search for a smart home project (there are a lot) that you can configure with the cube. About the libraries you can find them at the beginning of the code. I used these:
#include "CurieIMU.h" // Acelerometer & Gyroscope
#include <CurieBLE.h> // Bluetooth Low Energy
#include "rgb_lcd.h" // LCD
#include <Keypad.h> // Keypad
If you do not have them installed on your IDE, follow this guide to learn how to do it: https://www.arduino.cc/en/Guide/Libraries
In this project I used the Arduino 101 board. Here is the link to the Arduino website so you can see the specifications: https://www.arduino.cc/en/Main/ArduinoBoard101
This particular model of Arduino it is like the UNO but mounts onboard a bluetooth module (the yellow part is the BLE antenna) and and also a gyroscope and an accelerometer.
Because of this (BLE and accelerometer/gyro are integrated with the 101 board) you don't need to use external modules!
The shaking is detected thanks to the onboard accelerometer and gyroscope. It uses the CurieIMU.h libraries (see the code) to detect a significative acceleration in a very short time. Here is the link of the official tutorial that I used: https://www.arduino.cc/en/Tutorial/Genuino101CurieIMUShockDetect
See the comments on the code to understand how the "switch off" condition works. It essentially detect if you shake the cube for an interval of time and then switch off the last face that was in the upper position.
Or connect with your social account:
New here? Create an account