loading

This is an instructable how to create a motion sensor that reacts on human/animal motion and notify you on your smartphone. It is also an instruction how to assemble your DIY kit from Blutule Kickstarter Campaign.

Step 1: Materials

Materials required for this project

  • Arduino
  • Bluetooth Module
  • IR Motion Sensor
  • Resistors

You can pick up complete package of all those materials from here, look for DIY kit.

Step 2: Connecting Everything Together

Please connect all the materials you received in the following way.

You will need voltage divider to connect JY-MCU RX to Arduino TX. I used a 3 x 10 KOhm Resistors. You can use any combination of resistors as long as you get 3.3 Volts going to RX of JY-MCU Module.

  • Connect Ground of JY-MCU to Ground of Arduino.
  • Connect 5V output of Arduino to Vcc of JY-MCU.
  • Connect JY-MCU TX to Arduino RX.Connect via voltage divider JY-MCU RX to Arduino TX.
  • Connect ground of voltage divider to ground of Arduino.Not using voltage divider will result in damaging the module.

You have connected bluetooth module and arduino together. You should have something that looks like this.

Now you need to connect the motion sensor to the module.

  • Connect Ground of sensor to ground of Arduino.
  • Connect 5V to 5V of Arduino.
  • Connect third pin of the sensor to D2, (pin 5 on Arduino Nano).

Step 3: Upload Code to Arduino

The Arduino that purchased from Blutule Kickstarter will come preloaded, you can skip this step.

// set pin numbers:
const int buttonPin = 2;     // the number of the pushbutton pin
const int ledPin =  13;      // the number of the LED pin
// variables will change:
int buttonState = 0;         // variable for reading the pushbutton status
void setup() {
  // initialize the LED pin as an output:
  pinMode(ledPin, OUTPUT);      
  // initialize the pushbutton pin as an input:
  pinMode(buttonPin, INPUT); 
  //Initialize Serial
  Serial.begin(9600);  
}
void loop(){
  // read the state of the pushbutton value:
  buttonState = digitalRead(buttonPin);
  // check if the pushbutton is pressed.
  // if it is, the buttonState is HIGH:
  if (buttonState == HIGH) {     
    Serial.print("A"); 
  } 
  else {
    Serial.print("B"); 
  }
}

Step 4: Download the Blutule Application From Play Store

Here is the link.

Minimum OS required: Android 4.1 Jellybean, iOS is coming soon.
BluTule Device/ blutule App Operation:

  • Download and Install blutule application;
  • Turn ON BluTule device, set Bluetooth as ON in your smartphone;
  • Run blutule application;
  • Search and Paired Bluetooth device, for instance: HC-06 20:14:04:15:94:59
  • Check STATUS: Device selected, connecting -> Sensor Connected
  • The blutule application provides a visual/audio alarm if motion is detected within the senor’s range. Please note that the motion sensor has a 2-3 second recovery time. Once a motion event has occurred, the next event will be detected 2-3 seconds after first one.

Step 5: You Are Now Done.

If you have any questions please message!

Otherwise go ahead and help us to crowdfund our campaign on KickStarter.

We are also on Facebook and Google+.

<p>How come I can't see the BluTule app anymore?</p>
<p>How come I can't see the BluTule application on the Play Store anymore?</p>
<p>can we replace motion sensor with distance measuring module as my motion sensor is not working?</p>
<p>Which kind of adruino is it?:)</p>
<p>Thanks for providing a DIY option and linking to Instructables from your kickstarter page. My guess is that our community will want even less handholding and marketing than what you've provided here, so be sure to cut the ads on this once the campaign is funded. </p>
<p>Of course after kickstarter is over there will be no point of linking the two, thanks for your feedback! </p>

About This Instructable

11,051views

31favorites

License:

More by aso777:DIY Kit for Bluetooth Motion Sensor, Arduino, BluTule. Arduino + JY-MCU Module + Bluetooth Android Application 
Add instructable to: