این دستورالعمل به شما نشان میدهد که چگونه یک Tripwire لیزری بسازید که میتواند در توییتر و گرفتن تصویر از وبکم، و همچنین اجرای هر دستوری که میتوانید در یک اسکریپت bash قرار دهید، بسازید.
این آموزش در واقع بسیار ساده است و حتی به عنوان یک پروژه آردوینو مبتدی نیز مناسب است. به یک سیستم عامل گنو/لینوکس (یا احتمالاً مک) با آردوینو IDE و Processing IDE نیاز دارد. اگر یک برنامه پردازش پیچیده تر ایجاد کنید، این پروژه می تواند در ویندوز نیز پیاده سازی شود .
نیازهای سخت افزاری
برد آردوینو
نشانگر لیزری/قلم
مقاومت وابسته به نور
مقاومت 100 کوم
اختیاری:
وب کم
Breadboard
نرم افزار مورد نیاز
Arduino IDE
Processing IDE
Linux OS (من از Arch Linux برای این پروژه استفاده می کنم)
Curl
Webcam (بخشی از xawtv)
سایر موارد:
لحیم کاری آینه
و تفنگ
چسب
داغ سیم آهنی لحیم
کاری اره برقی/نی چاقو
یا قلم توپی
![](https://www.instructables.com/static/defaultIMG/file.TINY.gif)
arduino.pde 359 بایت
![](https://www.instructables.com/static/defaultIMG/file.TINY.gif)
processing.pde 688 بایت
![](https://www.instructables.com/static/defaultIMG/file.TINY.gif)
twitter.trip 270 بایت
من نیاز داشتم که LDR و لیزر در موقعیتی باشند که حرکت نکنند، بنابراین LDR و مقاومت خود را مستقیماً بدون برد برد به آردوینو وصل کردم، اما شما می توانید هر طور که دوست دارید این کار را انجام دهید، عکس های زیر برای لحیم کاری و خم شدن است. آنها را به شکل من همچنین یک نمودار ساده گنجانده شده است.
![اتصال Arduino Laser Tripwire](https://duino4projects.com/wp-content/uploads/2013/04/Arduino-Laser-Tripwire-connection.jpg)
من انتهای یک خودکار توپی را بریدم تا بتوانم آن را روی LDR بلغزانم تا از تأثیر نور محیط بر خواندن جلوگیری کنم، همچنین می توانید از نی استفاده کنید.
نشانگر/قلم لیزری
برد آردوینو
مقاومت وابسته به نور
مقاومت 100 کوم
برای جزئیات بیشتر: توییتر Laser Tripwire با دوربین وب کم با استفاده از آردوینو
در ادامه، متن انگلیسی این مطلب را میتوانید مشاهده نمایید:
This instructable will show you how to construct a laser tripwire that can twitter and grab an image from a webcam, as well as execute any command you can put in a bash script.
This instructable is actually quite simple and is even suitable as a beginner arduino project. It requires a GNU/linux (or possibly Mac) operating system with the arduino IDE and Processing IDE working properly. This project could also be implemented in Windows if you created a more complex processing application.
Hardware Requirements
Arduino Board
Laser pointer/pen
Light Dependant Resistor
100Kohm Resistor
Optional:
Webcam
Breadboard
Software Requirements
Arduino IDE
Processing IDE
Linux OS (I’m using Arch Linux for this project)
Curl
Webcam (part of xawtv)
Other Stuff:
Mirror
Solder and Soldering Iron
Wire
Hot Glue Gun
Hacksaw/Knife
Straw or Ballpoint Pen
![](https://www.instructables.com/static/defaultIMG/file.TINY.gif)
arduino.pde359 bytes
![](https://www.instructables.com/static/defaultIMG/file.TINY.gif)
processing.pde688 bytes
![](https://www.instructables.com/static/defaultIMG/file.TINY.gif)
twitter.trip270 bytes
![Arduino Laser Tripwire connection](https://duino4projects.com/wp-content/uploads/2013/04/Arduino-Laser-Tripwire-connection.jpg)
I cut the end off of a ballpoint pen so that I could slip it over the LDR to prevent ambient light from affecting the reading, you could also use a straw.
Laser pointer/pen
Light Dependant Resistor
100Kohm Resistor