Introduction: Visuino Build an Intrusion Detection System Using Arduino
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.
Step 1: What You Will Need
- Arduino UNO (or any other Arduino)
- XYC-WB-DC 5.8GHz Microwave Radar Motion Sensor
- Jumper wires
- OLED DISPLAY (Optional)
- Visuino program: Download Visuino
Step 2: The Circuit
- Connect LED Positive pin to Arduino digital pin 
- Connect LED Negative pin to Arduino negative pin [GND]
- Connect XYC-WB-DC pin [O] to Arduino digital pin 
- Connect XYC-WB-DC pin [-] to Arduino negative pin [GND]
- Connect XYC-WB-DC pin [+] to Arduino positive pin [3.3V]
- 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]
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:
- drag "Fill Screen" element to the left and in the properties window set color "tmcBlack"
- 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
- Connect Arduino digital out pin to Arduino Digital pin
- Connect Arduino digital out pin to "DisplayOled1" component > Draw Text1 pin[Clock]
- Connect Arduino digital out pin to to "Delay1" component pin [Start]
- Connect "Delay1" component pin [Out] to "DisplayOled1" component > Draw Screen1 pin[Clock]
- 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