Month: April 2016

DIY alarm with arduino and MMA7361 Accelerometer

To make this diy alarm I use the MMA7361, learn how to use it you can go here. Arduino code. [codesyntax lang=”c”] #include <AcceleroMMA7361.h> AcceleroMMA7361 accelero; //declaration of variables int x,y,z,a,b,c,time1,time2; int sensitivity=12; //i recommend 1-30 long int duration=100000;// duration of the alarm void setup() { //Serial.begin(9600); pinMode(8,OUTPUT); accelero.begin(13, 12, 11, 10, A0, A1, A2); Read More …