Visuino Build an Intrusion Detection System Using Arduino

by RonFrtek in Circuits > Arduino

1600 Views, 4 Favorites, 0 Comments

Visuino Build an Intrusion Detection System Using Arduino

1_dSn6e4V_cP-5Nm9LhACpLw.png
Visuino radar sensor XYC-WB-DC OLED

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.

What You Will Need

arduino-uno.jpg
5.8GHZ-Microwave-Radar-Sensor-Module-In-Pakistan-1.jpg
11026-Jumper_Wires_Standard_7in._M_M_-_30_AWG__30_Pack_-01.jpg
OLED.jpg
RED_5mm_LED__98425.1414619361.1280.1280.jpg
Visuino Logo PNG.png

  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

The Circuit

2019-10-14_22-44-06.jpg
7740_8_8278.jpg
radar.png
microwave motion sensor new-450x350h.jpg

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]

2019-10-07_17-04-19.jpg
VisuinoAdvrtisementM5Stack3.jpg

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

Start Visuino, and Select the Arduino UNO Board Type

F92BMOZK1FCIC78.LARGE.jpg
F9V4VH7K1FCIC79.LARGE.jpg

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

In Visuino Add Components

radar-oled.png
2019-10-14_23-16-10.jpg
2019-10-14_23-16-33.jpg
2019-10-14_23-17-03.jpg
2019-10-14_23-16-49.jpg
  • 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"

In Visuino Connect Components

radar-oled.png

  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]

Generate, Compile, and Upload the Arduino Code

FAAEWOFJOWSMLZS.LARGE.jpg
FDQU641JLMKOKCS.LARGE.jpg

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)

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

Downloads