Trigger DC Motor with PIR Sensor & Arduino – Complete Guide
51.1K views on YouTube
Welcome to my comprehensive Arduino tutorial where I’ll show you step by step, how to use a PIR sensor to turn on a DC motor using an Arduino Uno. From wiring each component to an Arduino Uno, to writing a variety of Arduino code examples from scratch, you’ll be able to build your own motion-activated DC motor project and control it with Arduino and a PIR sensor.
Whether you’re building an automated gadget, an interactive art installation, or a Halloween motorized prop that comes alive when someone walks by, turning on a DC motor with a PIR motion sensor is a useful Arduino project for a lot of applications.
๐ Full Tutorial: https://racheldebarros.com/turn-on-dc-motor-with-pir-motion-sensor-and-arduino/
๐ค WANT MORE Arduino projects with wiring diagrams and code? NEED GUIDANCE with your project? โถ๏ธ JOIN my Discord Community
โถ๏ธโถ๏ธ https://racheldebarros.com/membership
โข Live Workshops
โข Arduino Project Build & Code-alongs
โข Small Group Office Hours
โข Personalized Project Support
Prefer to join through Patreon instead? I’m on there too! (same membership perks)
โถ๏ธโถ๏ธ https://patreon.com/racheldebarros
BUILD YOUR OWN Motion-activated DC Motor with PIR Sensor and Arduino:
๐ PIR Sensor: https://amzn.to/49CagWn
๐ Arduino Uno: https://amzn.to/48jRlyr
๐ 12V DC Motor: https://amzn.to/43kjiWj
๐ XY-160D Motor Driver Module: https://amzn.to/3vbrPOr
๐ 12V 5A Power Supply: https://amzn.to/48UfMD5
๐ Female DC Jack Adapter: https://amzn.to/4aa8pZd
๐ Breadboard: https://amzn.to/42FZZGk
๐ Jumper Wires: https://amzn.to/42K4kbv
๐ฌ VIDEO CHAPTERS: Motion-activated DC Motor with Arduino Wiring & Code
0:00 Welcome
0:40 PIR Sensor Time Delay, Sensitivity & Trigger Mode
1:51 PIR Sensor Pinout
2:22 Wire a PIR Sensor to Arduino Uno
3:10 Wire a DC Motor to Arduino Uno
7:43 Arduino Code: Test PIR Sensor
14:01 Arduino Code: Spin Motor with PIR Sensor
19:17: Arduino Code: Spin Motor in Opposite Direction
19:46 Arduino Code: DC Motor Minimum PWM value
21:29 Arduino Code: PIR Current State vs. State Change
24:44 Arduino Code: Turn Motor in Both Direction with PIR Sensor
26:59 Arduino Code: Accelerate & Decelerate Motor with PIR Sensor
33:55 Wrap Up
34:06 Get Full Tutorial with Code
35:04 Join the Community
๐ฌ Have any questions or want to share your own experiences, tips and advice about using a PIR sensor to turn on a DC motor with Arduino? Drop a comment below โ I love hearing from you!
๐ If you find this video helpful, please hit that like button ๐ and consider subscribing to my channel for more props/animatronics/robot tutorials, tips, and tricks. Your support helps me create more content like this!
Some links included here are to affiliate sites. If you purchase something through them, I may earn a small commission โ which costs you nothing! I am very grateful for your support when you use my links to make a purchase.
#arduino #pirsensor #dcmotor #motors #arduinotutorial #arduinocode #arduinoproject #props #animatronics