Visuino Build an Intrusion Detection System Using Arduino

About: Arduino fan!

In this tutorial we will use a XYC-WB-DC Microwave Radar Motion Sensor connected to Arduino UNO and Visuino to detect any movement in radius around 5m including thin walls.

Watch a demonstration video.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: What You Will Need

  1. Arduino UNO (or any other Arduino)
  2. XYC-WB-DC 5.8GHz Microwave Radar Motion Sensor
  3. Jumper wires
  4. OLED DISPLAY (Optional)
  5. LED
  6. Visuino program: Download Visuino

Step 2: The Circuit

LED:

  • Connect LED Positive pin to Arduino digital pin [13]
  • Connect LED Negative pin to Arduino negative pin [GND]

XYC-WB-DC SENSOR:

  • Connect XYC-WB-DC pin [O] to Arduino digital pin [7]
  • Connect XYC-WB-DC pin [-] to Arduino negative pin [GND]
  • Connect XYC-WB-DC pin [+] to Arduino positive pin [3.3V]

OLED DISPLAY:

  • Connect OLED pin [SDA] to Arduino pin [SDA]
  • Connect OLED pin [SCL] to Arduino pin [SCL]
  • Connect OLED pin [VCC] to Arduino positive pin [5v]
  • Connect OLED pin [GND] to Arduino negative pin [GND]

Step 3:

All you need to do is drag and drop components and Connect them together. Visuino will create the working code for you so you don’t have to waste time on creating the code. It will do all the hard work for you fast and easy! Visuino is perfect for all kind of projects, you can easily build complex projects in no time!

Download the Latest Powerful Visuino Software

Step 4: Start Visuino, and Select the Arduino UNO Board Type

To start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc/.

Please be aware that there are some critical bugs in Arduino IDE 1.6.6. Make sure that you install 1.6.7 or higher, otherwise this Instructable will not work! If you have not done follow the steps in this Instructable to setup the Arduino IDE to program Arduino UNO! The Visuino: https://www.visuino.eu also needs to be installed. Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

Step 5: In Visuino Add Components

  • Add OLED "SSD1306/SH1106 OLED Display (I2C)" component and double click, in the "Elements" dialog:

  1. drag "Fill Screen" element to the left and in the properties window set color "tmcBlack"
  2. drag "Text Field" element to the left and in the properties window set size: "1", text: "Movement Detected"

  • Add "Delay" component and in the properties window set interval: "2000000"

Step 6: In Visuino Connect Components

  1. Connect Arduino digital out pin[7] to Arduino Digital pin[13]
  2. Connect Arduino digital out pin[7] to "DisplayOled1" component > Draw Text1 pin[Clock]
  3. Connect Arduino digital out pin[7] to to "Delay1" component pin [Start]
  4. Connect "Delay1" component pin [Out] to "DisplayOled1" component > Draw Screen1 pin[Clock]
  5. Connect "DisplayOLED1" pin [Out] to Arduino I2C pin [In]

Step 7: Generate, Compile, and Upload the Arduino Code

In Visuino, Press F9 or click on the button shown on Picture 1 to generate the Arduino code, and open the Arduino IDE

In the Arduino IDE, click on the Upload button, to compile and upload the code (Picture 2)

Step 8: Play

If you power the Arduino UNO module, the Display will start to show "Movement Detected" and a LED will shine on every movement detected in a radius of +-5m around the radar sensor.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.eu

Be the First to Share

    Recommendations

    • Instrument Contest

      Instrument Contest
    • Make it Glow Contest

      Make it Glow Contest
    • STEM Contest

      STEM Contest

    Discussions