Paul Kocialkowski's coding blog - Tag security http://code.paulk.fr/tag/security en Free software, programming and stuff Sun, 02 Sep 2012 18:07:00 +0200 PluXml Arduindoor http://code.paulk.fr/article5/arduindoor http://code.paulk.fr/article5/arduindoor <p>Quite a while ago, I bought some device with a laser pointer. I did lost it over time and eventually ran into it just a couple days ago. In the meantime, I bought an Arduino and started experiencing with it, especially with photo-sensitive resistors (photoresistors).</p> <p><span style="float: left; padding-right: 5px; padding-bottom: 5px;"><a href="http://photos.paulk.fr/albums/arduindoor/photos/1.jpg"><img src="http://photos.paulk.fr/albums/arduindoor/thumbnails/1.jpg" alt="Installation" /></a></span> So I wondered what kind of fun could come out of a laser + a photoresistor + an Arduino. Actually, it didn't take long to figure out what to do. Remember all the Mission: Impossible-like movies and shows, where people are to move into laser-secured rooms, without interrupting any of the laser beams? Well, that's pretty-much the idea I came up with: "securing" my room door with such things.</p> <p><span style="float: right; padding-right: 5px; padding-bottom: 5px;"><a href="http://photos.paulk.fr/albums/arduindoor/photos/2.jpg"><img src="http://photos.paulk.fr/albums/arduindoor/thumbnails/2.jpg" alt="Setup" /></a></span> The setup is pretty easy: the Arduino is on one side of the door, with the photoresistor and another 10k resistor that we need to have a changing voltage. The laser is on the other side of the door, directed right to the photoresistor and connected to the Arduino via a couple wires. So the general idea here is to make the Arduino power the laser and get the tension from the photoresistor (or the 10k resistor) a couple times every second. Here is a scheme: </p> <div style="text-align: center;"><img src="http://download.paulk.fr/arduino/albums/arduindoor/source/Arduindoor.png" alt="Scheme" /></div> <p>Here is a demo video of the Arduindoor system running (first time making an alarm ring, second time playing/pausing music) : </p> <div style="margin-left: -15px;"> <video id="summer-hot" class="video-js vjs-default-skin" controls preload="auto" width="640" height="360" data-setup="{}" poster="http://download.paulk.fr/arduino/arduindoor/video/arduindoor_360.png"> <source src="http://download.paulk.fr/arduino/arduindoor/video/arduindoor_360.webm" type='video/webm'> </video> </div> <br /> <p>If you're interested in the idea, you can setup your own with the additional help of:</p> <ul> <li>Photos: <a href="http://photos.paulk.fr/?album_path=arduindoor">http://photos.paulk.fr/ (Arduindoor)</a></li> <li>Source code (Arduino/host): <a href="http://download.paulk.fr/arduino/arduindoor/source/arduindoor.tar.gz">http://download.paulk.fr/ (arduindoor)</a></li> </ul> Sun, 02 Sep 2012 18:07:00 +0200 Paul Kocialkowski Fatal error : type : 2 message : Trying to access array offset on value of type null file : /core/lib/class.plx.motor.php line : 746 See https://www.php.net/manual/en/errorfunc.constants.php about type of error ============================================================ Drop this plugin now for running PluXml and report to its author !!