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
For my thesis, I have developed the control system and end-effector for a robot, easily implementable and economic.
Project showcase by Team 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 Team Blitzkrieg
ADITI is a connected bodysuit heating enabled incubator for preterm infants measuring ECG, Heart Rate, SpO2,Temp & Respiration comfortably.
Project tutorial by Team ADITI
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