After several months, I have decided to return to This project with which I intend to create a free home automation system, and economically affordable; This low microcomputer-based consumption, but cross-platform and portable to any device with OS GNU/Linux available from port GPIO.In previous posts We learned to control modules of relays optoacoplados with Raspberry PI by bash, PHP, and Python; on this occasion I have optimized the automation system, and incidentally I've migrated it to Raspberry PI 3 to dispose of wireless connectivity, But if you wish you can use any previous model.
On this occasion we will learn to control the power of an electrical appliance; before you start the server we have installed LAMP as we saw in the previous delivery.
In the previous post we saw were the GPIO pins and some examples of practical applications, Today we will focus on the operation of general-purpose pins, and learn to control them with the interpreter's orders Bash and with Python.
Will use a LED, a resistance of 330 ohm, wire, and one Breadboard, or solder and a soldering iron.
We will also need our Raspberry have already Raspbian pre-installed, If your case is not, You can see how to do it in the following link from the Directory.