RCWL-0516 Microwave Proximity Sensor - With & Without Arduino

  Переглядів 284,233

DroneBot Workshop

DroneBot Workshop

День тому

The RCWL-0516 is an inexpensive proximity sensor that works using microwaves and Doppler Radar. It can be used on its own or with an Arduino, I will show you both ways.
Article and code downloads at dronebotworkshop.com/rcwl-051...
More articles and tutorials: dronebotworkshop.com
Join the conversation on the forum: forum.dronebotworkshop.com
Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
Today we will look at another proximity sensor, the RCWL-0516. This device works using microwaves and the Doppler Effect to detect the presence of humans (and other creatures) in a room. It is inexpensive and can be used by itself or in conjunction with an Arduino.
Don’t be concerned about the microwave aspect, this device emits a very low level of microwave radiation at 3.18 GHz, which is on the low-end of the microwave spectrum. It is perfectly safe to experiment with and to use in your projects.
The device is very inexpensive and can be obtained on eBay, Amazon, and probably at your local electronics shop (which is where I got mine) for around 2-3 US dollars.
The RCWL-0516 operates using the “Doppler Effect”, a phenomenon discovered in 1842 by Austrian physicist Christian Doppler. The Doppler Effect describes a change in frequency observed by a stationary observer when the source of the frequency is moving.
If you have ever heard the sound of a train as it races towards and then away from you, or an ambulance as it races down the road, you will have heard the siren frequency changing as the object approaches, passes, and moves away from you. That is the Doppler Effect in action.
In the RCWL-0515 microwaves are sent out and reflected back. Any moving object in the area will change the frequency of the reflected waves, thus triggering the device.
I will show you how to use the RCWL-0516 on its own, both by itself and with an optional light sensor. You'll see that because it uses microwaves it is still operational even when encased in a plastic enclosure.
Then we will use an Arduino with the RCWL-0516. I’ll show you how to make the device “latch”, great for an intruder alarm or automatic light switch. Then I will show you how I built a remote sensor using an RCWL-0516 and two Arduino's.
Here is the Table of Contents for today's video:
00:00 - Introduction
03:12 - The RCWL-0516 & Doppler Effect
09:33 - Basic Hookup & Demo
12:35 - Light Sensor Hookup & Demo
15:14 - Arduino Latching Device Hookup & Code
20:31 - Arduino Latching Device Demo
23:44 - Arduino Remote - Transmitter Hookup & Code
29:02 - Arduino Remote - Receiver Hookup & Code
32:19 - Arduino Remote Demo
As always there is an article with more details and all the Arduino code, you will find it at dbot.ws/rcwl0516.
I hope you enjoy the video and the article.
I have a lot of changes to the DroneBot Workshop that you will be seeing very soon, at the beginning of March actually. If you’d like to know more please subscribe to my newsletter.
And while you are here please subscribe to the UKposts channel!

КОМЕНТАРІ: 337
@ho7026
@ho7026 4 роки тому
This entire channel is gold.
@nms9352
@nms9352 2 роки тому
I hate it🤭 - cost me a lot of money😏
@vineeshkumar4637
@vineeshkumar4637 2 місяці тому
Can i mine it 🌝
@ravindrabelsare6215
@ravindrabelsare6215 4 роки тому
Many thanks ! After watching couple of your earlier workshops, I am practically hooked to it. Every day at least one workshop on my agenda
@TonySwitzerland
@TonySwitzerland 3 роки тому
Perfectly explained! Thank you. I connected the sensor without Arduino to a "remote doorbell button". Battery operated, small size, can be placed wherever it suits. The bell then rings (or just the LED flashes) when someone enters the controlled zone. Works through walls and doors!
@MadLabZ
@MadLabZ 4 роки тому
Always the best from DroneBot Workshop!!! I just received five RCWL-0516 modules from aliexpress with intentions of setting up security zones for my property , with this very helpful video I think this will be the start of something very interesting, thanks for the upload.
@fsiserir
@fsiserir 3 роки тому
Thank you for your very clear explanation of RCWL-0521 and its application for the detection of the moving object.
@yanntwelve
@yanntwelve 4 роки тому
Hello !! I'm about to prepare myself in making an alarm for my workshop and garage, your video has been more than useful to my future project. Nice explainations and many details. Good Job, keep on instructing us !! Long life to your channel
@3nagib
@3nagib 5 років тому
As always detailed and helpful. Thank you. Keep doing what you do best. Looking forward to the next project
@TonySwitzerland
@TonySwitzerland Рік тому
Excellent tutorial and because of the clear language 100% understandable by non-native-speakers! Thank you so much.
@donk73
@donk73 2 роки тому
Very interesting and informative video. The RCWL-0516 is now on my list future projects. I also particularly appreciate the care and preparation put into the production, and the use of high quality video. Too often videos like this are made with low resolution video so that the code examples and diagrams are unreadable.
@anythingunderthesun9930
@anythingunderthesun9930 4 роки тому
As always, you explained things that is easy to understand with actual example and links to the codes, docs etc.. Keep up the good works. Thank you! New subs here!
@rodnolasco
@rodnolasco 5 років тому
Crystal clear. Thanks for sharing.
@vanomso
@vanomso 2 роки тому
Thank you for this lesson. Works very good for me, I invest 35 minutes in watching your video and I remember it forever!
@jacobdavis000
@jacobdavis000 4 роки тому
Just watched your tutorial and set up a new rcwl-0516 as I watched. I bought 20 and the 1st one I tested works very well. It's set up in front of the TV pointing back at me and it is very responsive and stable behavior too. Great channel and tutorial. Thanks!
@jacobdavis000
@jacobdavis000 4 роки тому
BTW: I didn't mean pointing back at me. Maybe it's radiating in all directions.
@NewportNomad
@NewportNomad 5 років тому
Sensational. Your video was really clearly explained with great diagrams and code too. Many thanks.
@RouenEchecs
@RouenEchecs 4 роки тому
Vos vidéos sont très intéressantes et vos explications très claires, avec un réel souci de pédagogie. En vous suivant, je m'améliore. Je vous remercie très sincèrement pour ce partage.
@mohitnayyer
@mohitnayyer 2 роки тому
Thank you very much for explaining everything in detail and for demonstrating the connections.
@sebastienochart
@sebastienochart 2 роки тому
Extremely well explained and demonstrated. Very high quality content. Thanks a lot.
@davidgapp1457
@davidgapp1457 3 роки тому
Brilliant channel. Many thanks for your hard work. Love the clarity of your presentations.
@KatorNia
@KatorNia 2 роки тому
Very good video, with lots of info & well delivered. I wonder how this channel flew under my radar (pun intended) for so long. Subscribed! 👍🏻 Now, I have a couple of things I'd like to point out if I may. 8:07 The circular thingy serves as a capacitor for the oscillator (high-frequency NPN transistor), not an antenna. The antenna is at the other side, & it's a common transmit/receive antenna. 10:44 Although the LED pins are correct (anode = longer), the internal electrodes are wrong (anode = smaller, not bigger). I'm pointing this out because I believe one should look at the internal electrodes to figure out polarity, instead of the external ones, since the latter can be cut. & if people learn it wrong from this video, they may run into problems in the future. 20:02 I'd pull the button Pin to LOW, instead of HIGH, for two reasons. - If you pull it HIGH, you're constantly sinking 0.5mA, regardless of the button's state. Yes, that current is negligible in this circuit, but I believe it's important to adopt "good habits" anyway. In the case of microcontrollers, taking their limited power capabilities into consideration is one of them. - It feels more intuitive to "send a signal" to the Pin when the button is pressed, instead of "disrupting a signal". I believe it's easier for less experienced tinkerers to understand too. From what I've read (I haven't tried them myself, yet), those sensors don't interfere with other GHz devices (routers etc). Apparently they don't interfere with each other either! So using BT shields should work well too.
@muzikman2008
@muzikman2008 4 роки тому
Great stuff!..I bought some doppler modules, and was looking for a way to control their output for lighting a room.I need an arduino lol.. thanks for explaining in a great relaxed concise manner. Fantastic video :-)
@acadman4322
@acadman4322 5 років тому
Thanks, Bill, I am impressed with your clear and professional presentation.
@dansquires2713
@dansquires2713 5 років тому
Another great lesson. I am really looking forward to the robot build.
@darrenmaglione6235
@darrenmaglione6235 4 роки тому
This video is so well done it is amazing. Thank you so much.
@gazza595
@gazza595 5 років тому
Thanks for this video, as usual very detailed and well presented. Really useful information.
@mouseminer2978
@mouseminer2978 5 років тому
Beautifully explained. Thank you very much.
@nassernasser5292
@nassernasser5292 5 років тому
Always the best explanation
@jurgenpurps9720
@jurgenpurps9720 3 роки тому
Wie immer ein Top-Video.Super und ausführlich erklärt - so sollte es sein.
@user-hw9hu9kl3c
@user-hw9hu9kl3c Рік тому
Extremely well explained and demonstrated. Very high quality content. Thanks a lot
@satishbalodi4576
@satishbalodi4576 2 роки тому
Sir I am happy to see your tools set is kept. Neet and tidy. Very nice sir.
@SohaylTalebi
@SohaylTalebi Рік тому
Dear Sir. I would like to thank you for your detailed video. Kind Regards.
@JamesFraley
@JamesFraley 4 роки тому
You make the best, most informative videos! Thank you
@dineshmehta3688
@dineshmehta3688 3 роки тому
Sir You are Very good teacher & have very good Knowledge. Thanks you very much for explaining in simple manner. Keep up teaching and good works.
@melvinmurithi
@melvinmurithi 4 роки тому
Excellent video. 90% of what i need to do in my project....
@manoharmanu1460
@manoharmanu1460 2 роки тому
Very useful , your videos are the basics of my electronics foundation sir. Thank you very much
@eburgos021
@eburgos021 2 роки тому
Thanks for all your videos, especially this one. It made it much easier for me working with the RCWL-0516 doppler sensor and it's application. I'm new for this type of module sensors. Thank's again. Mr.G ( PS:I would like to know more abut your newsletter !)
@lw1419
@lw1419 4 роки тому
I love your videos, they are all so informative. Thx much.
@dfxmonkeyhead
@dfxmonkeyhead 11 місяців тому
Always learn so much from your videos... Thank you!
@activ8me3
@activ8me3 2 роки тому
Your teaching style is superb. Thank you.
@johnmcclain3887
@johnmcclain3887 3 роки тому
Hi, this is the first time I've been here, I'm a retired electronics tech, Marines, not played with electronics much for twenty years, but collected some arduino oriented electronics, off ebay, and low and behold, here's how to use the very module I selected for a burglar/security alarm system for my home. Great teaching skills, very clear explanations, nice easy pace. I look forward to getting caught back up, at least as much as necessary. How did you know I bought that doppler radar device?
@johnwilson3918
@johnwilson3918 3 роки тому
Thank you very much, Bill.
@MrBobWareham
@MrBobWareham 3 роки тому
Hi thanks for the video as always an excellent instruction on how to use a product top marks thank you, Bob, from the UK
@ShedOfDreams
@ShedOfDreams 5 років тому
So useful I bought some! Thank you. A good, concise video. I attached the output signal to an optocoupler relay module and the relay switches, so that's good! I've also found that if you keep moving around, the sensor is always active so the relay stays on E.G. running a light bulb, alarm etc. turns off once movement stops. would be good for a self contained alarm/light/ device on its own without needing an Arduino (or Picaxe in my case) so saving a few quid!!!! thank you again, You"ve got a new subscriber :-)
@andreamitchell4758
@andreamitchell4758 Рік тому
so I assume you had to use a high level trigger relay correct? sadly all I have are low level triggered relays
@MrMraza123
@MrMraza123 5 років тому
Very clear explanation. Excellent job.
@nevsiebenhausen7889
@nevsiebenhausen7889 2 роки тому
This is an amazing demo
@Hogkat
@Hogkat 5 років тому
I'm glad for this vid. I'm useing the 0516 with a GSM (A6) with a uno to make a alarm, I got the code for the 0516 right but to send a sms is a bit more difficult but getting there. I hope when I get to figure every thing out to make a video of what I did and also with the code but got to get the code for the sms right. But nice video
@obiwankenobi661
@obiwankenobi661 Рік тому
great video! appreciate your work.
@Adrian_Finn
@Adrian_Finn 4 роки тому
You should have far more subscribers than you do, your videos are extremely good.
@totiabel1
@totiabel1 9 місяців тому
Excelentemente explicado, gracias.
@emadabuhagag222
@emadabuhagag222 3 роки тому
clear, informative, thank you
@benjaminantonypallath6537
@benjaminantonypallath6537 Рік тому
Interesting video and love to see such work shop.
@kevgermany
@kevgermany 4 роки тому
Thanks. Very clear. That's one incredibly fast train in the Doppler explanation. ;-)
@SheltonDCruz
@SheltonDCruz 8 місяців тому
Thanks for an informative video - question I have is - how directional is the radar on the RCWL0516? Can one make it only detect in a narrow range as I am thinking of using it on a model railway layout and to trigger only when a train passes by ? - thanks
@vk9491
@vk9491 4 роки тому
Thank you for great video and tutorial. I repited every step from your explenation. Also I programed DGspark instead Arduino. All working well. Only one question, when I reseted led by pressed button, does sensor activated again for motion?
@sabrinagarciasosa7517
@sabrinagarciasosa7517 4 роки тому
Thaks, even if I don't speak english well I love your video and your class.
@junacalo
@junacalo 4 роки тому
Excelente señor. Excelente su video. Muchas gracias.
@ljmeng
@ljmeng 2 роки тому
I have leant a lot from your channel, Thank you veru much.
@anokhautomation4453
@anokhautomation4453 2 роки тому
Nice useful tutorial.thanks for sharing your valuable ideas.
@lincolnschoolpreservation3574
@lincolnschoolpreservation3574 Рік тому
As usual ur the "guy" I learn so much from ur approach thanks for posting, eventually i will get thru 90% of ur library.
@mukunda9g
@mukunda9g 4 роки тому
Thank you so much. Will it increase the range of motion detection if we supplied 12v in your first experiment?
@MrBobWareham
@MrBobWareham 3 роки тому
Hi, Bill thank you for another in depth video with excellent details, I know you were unsure about the esp8266-01 due to signal crossover with Wi-Fi. But would you consider giving it a go, to see if it works, as I want to make a door sensor to interface with IFTTT to indicate door action at my home. I think this would make a good project for others and with your knowledge perhaps it would help others including me. All the best, Bob.
@quin2691
@quin2691 3 роки тому
Impressive ! Good explanation
@tonytee981
@tonytee981 4 роки тому
Hi, First I have to say that I really enjoy your instructional videos. You are one smart cookie. Keep em coming :) Secondly, I purchased the RCWL-0156 sensor and wired it up, both on its own, and then to an UNO, as per your instructions. ( I have a fair bit of experience with Arduino, and everything related to it, so I am confident that I connected everything properly) . I used a 220 ohm resistor for the out pin to the led. My issue is that although the RCWL functions properly. (IE: The led lights up when the sensor senses movement), it only has a range of 2cm. It doesn't pick up anything further than that. I received 5 units in my order, and tested all of them, and they all have the same range (2cm). Has anybody else experienced the same issue. Any ideas as to what could be wrong. PS: I tested with 2 different power supplies, first the UNO, and then I hooked up my Korad KA3005D set first to 12 volts, then to 24 volts and 0.003 amps. The sensing range was the same for all tests. Could it be a bad batch of sensors ? Cheers, T
@samraj_subramaniam
@samraj_subramaniam 2 роки тому
Great video. I am going to build this proximity sensor that sends data to my iobroker that is going to control other IoT devices in the room.
@mtbevins
@mtbevins 5 років тому
Great video. I absouluty love watching your videos. It is like candy for my brain. :)
@Sigurdinus
@Sigurdinus 5 років тому
Exceptional video, thank you very much. I really appreciate your calm and comphrehensive style of presentation.
@MultiTechEducation4U
@MultiTechEducation4U 2 роки тому
Sir, your videos are the best videos I ever saw.
@hussain55019
@hussain55019 4 роки тому
Great Sir always trying to use modules to their full potential..Love from Pakistan
@khurumpervaiz509
@khurumpervaiz509 5 років тому
Great video Sir 👍. Keep it up.
@Boogiemoose
@Boogiemoose 5 років тому
Ive used this to detect if my cats are outside my door. Its hooked up to a transistor that turn on leds that light up a cat shaped 3dprinted figurine. Been working fine outside for a couple of years now.
@unglaubichuberlieber8048
@unglaubichuberlieber8048 4 роки тому
since this rcwl-0516 can detect object from above, beneath, left and right, and how can one/the arduino knows where the object is moving from ??? thanks for your time and your input and this tutorial;
@RoyFokker93
@RoyFokker93 3 роки тому
Really good explanation. I have a question, are there radar modules that give an analog output instead of a digital one?
@roquesyves6598
@roquesyves6598 3 місяці тому
Thank you for all these excellent videos. Can you do one on the LD2410C radar?
@petermoritz2452
@petermoritz2452 3 роки тому
Nice video! Do you know if they trigger each other if you have them close? Would like to use this to track a speed of a moving object. So I would need to have these on a straight line fearly close for good resolution.
@holyrunner1973
@holyrunner1973 4 роки тому
Great Presentation!!!!
@behzadabf
@behzadabf 3 роки тому
Very clear perfect video....thanks
@hirajijadhav375
@hirajijadhav375 Рік тому
Very easy to learn type video. I like it so much thanks
@carldea
@carldea 4 роки тому
Great tutorials! Mr Bill, What do you use to present your slides? Thank you! keep up the great work.
@604smit
@604smit 5 років тому
very useful, thanks!!
@forthidiot4297
@forthidiot4297 5 років тому
Very nice explanation
@Zarkomr
@Zarkomr 2 роки тому
Really nice presentation, could this be used for inwall pipe and wire detection?
@rgdphome8974
@rgdphome8974 5 років тому
Gr8. Thanks for good explanation as always. Sir, as a common man, I thought, such sensor could be used to measure the distance.
@quaternion-pi
@quaternion-pi 5 років тому
Excellent! Waiting for my sensors to arrive. Practical discussion of using PIR or ultrasound vs this radar sensor (range, false positives, penetration of glass windows, etc) will be addressed in my own experiments. It would be nice if the sensor did not stay on for two seconds so it could be rotated and data collected in many directions in real time. Thanks for your great projects, well explained, as always.
@ristomatti
@ristomatti 5 років тому
There are other microwave sensors out there that just output the raw data but they seem to be more difficult to operated. As these are so cheap, you could use two or more pointing to different directions?
@quaternion-pi
@quaternion-pi 5 років тому
Thanks for the suggestion and clarification on available sensors - 3 sensors coming for just that reason.
@Nguyen_Phuc08
@Nguyen_Phuc08 5 років тому
Interesting video as always.
@coldrider3517
@coldrider3517 3 роки тому
Allo and thank you very much for the great knowledge you share with us , my question about this microwave sensor is : Range ; is there a way to have a set range ,meaning ignore from X range and more but when movement is inside the set range then an action is taken ?
@bitschips
@bitschips 2 роки тому
Really good video. Thanks for sharing your knowledge. I have one question please. The object must be in front of the antenna or is it able to detect movement of objects that are not perpendicular to the antenna? Best regards from Valencia, east coast of Spain.
@hariwi39
@hariwi39 2 роки тому
Good channel for teaching practical material thanks
@MrBobWareham
@MrBobWareham 3 роки тому
As always a great video I want to make one for my front door, so I see that it works through plastic but does it work through glass as well. Thanks, Bob from the UK
@LukeWatts85
@LukeWatts85 3 роки тому
Sure test it out and see. That's all part of the fun of it :)
@charlessweeney2061
@charlessweeney2061 2 роки тому
Perfection.
@dipakbhalodia7155
@dipakbhalodia7155 5 років тому
Thanks good working
@anuraggorkar5595
@anuraggorkar5595 4 роки тому
Excellent Video. Extremely informative. Sir can you please make a video on how to use an esp8266 with Arduino?
@youssefdirani
@youssefdirani 4 роки тому
thank you dear
@MiguelJimenez-cu5ft
@MiguelJimenez-cu5ft 5 років тому
great video. thanks.
@jacquesmertens3369
@jacquesmertens3369 4 роки тому
Seems like a great device to detect Orchestral Manoeuvres In The Dark.
@JoeElevator
@JoeElevator 11 місяців тому
Muchas Gracias..!! 😊
@tonyjones5443
@tonyjones5443 4 роки тому
Hi great video, what distance will the sensor detect at?
@francoisguyot9770
@francoisguyot9770 2 роки тому
Nice and practical as usual. What's its distance sensing range?
@winters.innovative.solutions
@winters.innovative.solutions 5 років тому
Excellent video!!! How about line following sensor arrays?
@garydalrymple5997
@garydalrymple5997 3 роки тому
The ldr-resistor example would be great for a war droid at night in sleep mode.Working on a turret right now.A few gesture sensors paintball gun and some high grade steppers systems.Converting some old solar panels to power it.
@rickharold7884
@rickharold7884 Рік тому
Super cool
@jnkmal9519
@jnkmal9519 Рік тому
Me 30 minutes ago: What the heck is a RCWL-0516? Me after watching the video: I'm sure I could work with a RCWL-0516 and I now understand the Doppler effect. Awesome! :)
Radar Sensors from $3 to over $100: Which one is Best?
14:31
Andreas Spiess
Переглядів 147 тис.
All About RCWL0516 Microwave Radar Motion Sensor Module
11:59
Crazy Couple DIY
Переглядів 19 тис.
Bro smelt it & passed out 😂 #comedy
00:10
MrTalalaa
Переглядів 6 млн
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Переглядів 3,5 млн
0% Respect Moments 😥
00:27
LE FOOT EN VIDÉO
Переглядів 29 млн
Getting Started with LIDAR
47:27
DroneBot Workshop
Переглядів 1,4 млн
OLED Displays with Arduino - I2C & SPI OLEDs
41:41
DroneBot Workshop
Переглядів 1 млн
How microwave body detectors work.  With RF section schematic.
30:18
bigclivedotcom
Переглядів 269 тис.
#135 Radar Sensors / Switches: Comparison and Tests
16:11
Andreas Spiess
Переглядів 578 тис.
Laser vs Ultrasonic - TOF10120 vs. HC-SR04
31:09
DroneBot Workshop
Переглядів 175 тис.
Effective Ways To Detect People With Common Sensors
7:43
Core Electronics
Переглядів 48 тис.
439 24GHz Radar Presence Detector that Works (LD2410)
13:19
Andreas Spiess
Переглядів 298 тис.
An Improved Multi-sensor
29:40
ResinChem Tech
Переглядів 27 тис.
459 Radar Sensors and Summer Break
17:18
Andreas Spiess
Переглядів 118 тис.
Доработка датчика движения RCWL-0516
6:39
Playing This On Loop ♾️
0:27
Red Bull
Переглядів 43 млн