Hello Friends!

Well, as you know, in September the new premiere shield  of Arduino, Arduino YUN. This little friend has a Linux embedded system with which we can run anything you can think of (at least so far).

While there is very little information on this new board, with departure in the guide that provides the Arduino page (which will link later), plus a little knowledge of many Linux, can carry out a major project a Control Access.

This time I will explain how to do this project, but in a manner sufficient particular all through our Arduino. This works, thanks a database server MySQL which will settle in our YUN, this database will store two tables, one for users associated with a particular RFID and another table to keep records of all cards that have passed through our reader. While we use programming languages ​​PHP and Python scripts to perform some basic and work with our data.

Moreover, the hardware overhead, we use a reader ID-20 next to a Serial LCD of 16 characters, plus an RGB LED which will be our informant states.

We may use this access control everything we can think of, modify, and add a relay or another idea. It can be used on anything where you have cards and want a record.

Recall that this document is free publication, commercial use and exempt modifications are not allowed. I hope it's a way more extensive path of Open Source electronics.

So we go to the next step, the parties need!

Step 1: The Parts

For do this project, we need to have:

* Arduino YUN     https://www.sparkfun.com/products/12053   $71.95
* RFID Reader ID-20 (125 kHz)    https://www.sparkfun.com/products/11828   $34.95
* RFID Reader Breakout     https://www.sparkfun.com/products/8423    $0.95
* Basic 16x2 Character LCD 5V    https://www.sparkfun.com/products/790     $16.95
* Serial Enabled LCD Backpack     https://www.sparkfun.com/products/258    $16.95
* LED RGB 5mm    https://www.sparkfun.com/products/105    $1.95
* Buzzer   https://www.sparkfun.com/products/7950    $1.95
* Somes Header Pin and wire     $5.00 aprox.

In all, if you buy at the store Sparkfun, everything will be near $150.
If you live in Latin America, I would recommend buying the parts in www.olimex.cl, is a very good Chilean electronics store.

<p>I love the combination of Python and the Arduino. So I have created a collection about it. I have added your instructable, you can see the collection at: &gt;&gt; <a href="https://www.instructables.com/id/Arduino-and-Python-and-perhaps-a-Rasberry-Pi/"> https://www.instructables.com/id/Arduino-and-Pytho...</a></p>
<p>ou se situe le fichier base1.py</p>
<p>Hola ! El archivo base1.py fue un error de tipeo en el codigo, el verdadero se llama comprobar.py, de todas formas el c&oacute;digo esta actualizado aca: https://github.com/camilo-nunez/Control-Access-of-Arduino-YUN-with-MySQL-PHP5-and-Python</p>
<p>Can you help me? when i do:</p><p>mysql_install_db &ndash;-force</p><p>Neither host 'Yun' nor 'localhost' could be looked up with</p><p>/usr/bin/resolveip</p><p>Please configure the 'hostname' command to return a correct</p><p>hostname.</p><p>If you want to solve this at a later stage, restart this script</p><p>with the --force option</p><p>Do you know i to solve this? Thank you</p>
<p>How and where do I save the py and php files in Arduino YUN?</p>
Hi, I recommend you save it to the MicroSD card, two folders asides,one for files .py and one for php files, remember that the php files must be in the mount folder / www that alojaste MicroSD.<br><br>So that you have well directions:<br><br>For .php files ---&gt; /mnt/sda1/arduino/www/php<br>For .py files ---&gt;/mnt/sda1/arduino/py<br><br>Greetings and good luck !
Thank you:-)
Hi. It seems like a good tutorial you have made. But I miss an introduction explaining what this thing is supposed to do. <br>The closest thing I found was this : <br>&quot;We may use this access control everything we can think of, modify, and add a relay or another idea. It can be used on anything where you have cards and want a record.&quot;<br><br>Could you please elaborate?
Hello friend! Well, the access controls consists in implement a mechanical electronic mechanism that identifies if the person who wants to get this approved and based on that give access to some dependency (entry permit). <br> <br>In this case, the mechanism will use is the RFID technology. Grace making these accesses swatch with Arduino YUN or generally with Arduino, is that you can modify to your taste, that's why this tutorial serves as a basis for implementing it. <br> <br>If you need more help feel free to ask!

About This Instructable




More by camilo.n1012:Control Access of Arduino YÚN with MySQL, PHP5 and Python Access control with Arduino + Keypad 4x4 + Servo (UPDATE) Save data of temperature and humidity on MySQL with Arduino Uno and Wifly 
Add instructable to: