Arduino for ODROID-GO - PIR Motion Detector
- Make sure that you've followed the Arduino setup guide.
You can detect someone's movements on ODROID-GO with PIR motion detector, with Arduino.
Requirements
Make sure that you have these products:
- ODROID-GO
- A PIR sensor
- Jumper cables and a Breadboard
- An auxiliary battery if using it portable
- This module requires 5V input power, but ODROID-GO outputs 3V3 for the power pin(#6) on its header pins. Thus, it is required to use the 5V USB VBUS pin(#10) with an external USB power source.
- Alternatively, you can use a Step-up DC-DC converter.
- A MicroUSB cable
Set up the development environment for Arduino on your system.
Hardware setup
Please refer to the picture below when you set up your hardware.
We use the parts below:
- Download Fritzing example file: odroid-go-pir-motion-detector.fzz
- ODROID-GO: fritzing_odroid-go.fzpz
- Mini-360 DC-DC Buck converter: mini-360_dc-dc_buck_converter.fzpz
- HC-SR501: hc-sr501_body_sensor_module.fzpz
Import and compile, upload to ODROID-GO
Click the Files → Examples → ODROID-GO → Applications → PIR_Motion_Detector menu to import and press CTRL-U to compile/upload.
Uploading is complete when the message “Hard resetting via RTS pin…” is seen.
Check if it works
After the upload completes, ODROID-GO reboots automatically.
If the sensor detects some movements, the blue status LED will turn on.
If you're using HC-SR501, you can change its triggers way to non-repeatable/repeatable, or adjust sensitivity and timeout with the potentiometers on the sensor.
Please refer to the document for further information.
For more information, please refer to this page: http://henrysbench.capnfatz.com/henrys-bench/arduino-sensors-and-input/arduino-hc-sr501-motion-sensor-tutorial/