User Tools

Site Tools


Writing /var/lib/dokuwiki/data/meta/teaching/ie0117/proyectos/2012/i/final_2013/berrylocky_byky.meta failed
teaching:ie0117:proyectos:2012:i:final_2013:berrylocky_byky

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
teaching:ie0117:proyectos:2012:i:final_2013:berrylocky_byky [2016/03/07 15:25] – ↷ Page moved from teaching:ie0117:proyectos:2012:proyectos_2012:final_2013:berrylocky_byky to teaching:ie0117:proyectos:2012:i:final_2013:berrylocky_byky amorateaching:ie0117:proyectos:2012:i:final_2013:berrylocky_byky [2022/09/20 00:08] (current) – external edit 127.0.0.1
Line 485: Line 485:
 Once installed RPi.GPIO ((Further information about GPIO at [[http://en.wikipedia.org/wiki/General_Purpose_Input/Output]])) is needed to setup (export) the pins. A scheme of the pins can be found down here in the image. In this project we use the BCM GPIO numbering, especificaly the pin 18 (12th pin counting from the bottom of the pins) and the ground pin(6th pin from the bottom).  Once installed RPi.GPIO ((Further information about GPIO at [[http://en.wikipedia.org/wiki/General_Purpose_Input/Output]])) is needed to setup (export) the pins. A scheme of the pins can be found down here in the image. In this project we use the BCM GPIO numbering, especificaly the pin 18 (12th pin counting from the bottom of the pins) and the ground pin(6th pin from the bottom). 
  
-Those pins are connected directly to the circuit make previously [[teaching:ie0117:proyectos_2013_i:berrylocky|Designing and creating the circuit]] to open the latchkey. Those pins are managed with code shown in newblink.py. This python script executes a few of simple commands in console to export and setup the GPIO pins. The reason this script was made in this way is because when running a python script, a sudo command is needed and it makes zbarcam fail. So running directly into console avoids the need to run the script as root.+Those pins are connected directly to the circuit make previously [[teaching:ie0117:proyectos:2013:i:berrylocky|Designing and creating the circuit]] to open the latchkey. Those pins are managed with code shown in newblink.py. This python script executes a few of simple commands in console to export and setup the GPIO pins. The reason this script was made in this way is because when running a python script, a sudo command is needed and it makes zbarcam fail. So running directly into console avoids the need to run the script as root.
  
 {{ :ie0117_proyectos:final_2013:pinout.jpg?nolink&300 |}} {{ :ie0117_proyectos:final_2013:pinout.jpg?nolink&300 |}}
teaching/ie0117/proyectos/2012/i/final_2013/berrylocky_byky.1457364328.txt.gz · Last modified: 2022/09/20 00:08 (external edit)