Creating a Motion Detector using an Arduino, a Photoresistor and MATLAB
This example illustrates how to measure the light sensitive analog voltage from a photoresistor circuit connected to Pin 0 of an Arduino Uno.
The example then applies three types of calculations in real-time to determine if the current voltage reading signifies motion.
Using a pre-recorded dataset, the data is further processed in MATLAB to categorize the motion.
This example requires the user to first install the MATLAB Support Pacakge for Arduino Hardware which is available here:
http://www.mathworks.com/matlabcentral/fileexchange/47522
For more information on MATLAB support for Arduino, see the following resource page:
http://www.mathworks.com/hardware-support/arduino-matlab.html
Zitieren als
MathWorks MATLAB Hardware Team (2024). Creating a Motion Detector using an Arduino, a Photoresistor and MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/47605-creating-a-motion-detector-using-an-arduino-a-photoresistor-and-matlab), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Image Processing and Computer Vision > Computer Vision Toolbox > Tracking and Motion Estimation > Motion Detection >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
html/
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.1 | Updated license |
||
1.0.0.0 |