Tecnologia & Jogos
RasPi Magazine

RasPi Magazine No. 23

From the team behind Linux User & Developer magazine, RasPi is the essential guide to getting the most out of the Raspberry Pi credit-card sized computer. Packed with expert tutorials on how to design, build and code with the Raspberry Pi, this digital magazine will educate and inspire a new generation of coders and makers. What you’ll find in every issue: • Get hands-on with your Raspberry Pi – we show you the best way to code, build and create with this awesome educational computer. • Awesome RasPi projects in each issue – get inspired to create something amazing with projects big and small. • Our easy to follow step-by-step tutorials and designed for all abilities and age groups. • Need to know more about anything Raspberry Pi? You can chat with the team and get your questions answered.

United Kingdom
Future Publishing Ltd
Back issue only
Ler Mais

nesta edição

1 minutos

Our homes are getting cleverer, but not everybody wants the cost (or the restrictions) of big brand- name Internet of Things devices – especially not when all you need to make your own is a Raspberry Pi, a few tips, tricks and HATs and some ingenuity. In this issue you’ll learn how to make your own automated system for your home, which you can use to switch sockets, open and close your garage door, check and change the temperature, keep an eye on your security and more. Want to do a test run? Learn how some PubNub staffers visualised a smart home with a Raspberry Pi and some LEGO! You’ll also learn how to build a radio transmitter, how to monitor your environment and much more. Editor Get inspired Discover the RasPi community’s…

1 minutos
home automation with your pi

We regularly talk about how the Raspberry Pi is the perfect little computer to have around the house doing work that requires just enough computing power to keep it running. It’s not the purpose of the device, but it is just really good at it. File servers, media centres, etc – its size and flexibility make it an often surprisingly powerful tool. And we can always go a step further. Instead of handling idle computing tasks around the house, what if we had it control the house? Through modern home automation and a bit of fancy coding, you can easily make the Raspberry Pi do a little bit more and control many aspects of your home. In this feature, we’re going to run you through not only setting up the controllable…

2 minutos
your smart home setup

Remote control sockets Energy saving and green houses are a big thing right now, and you can buy power strips that will shut down every socket based on the draw from a single socket. This isn’t always accurate, though, and being able to manually control the socket is not always easy if it’s hidden away or part of a power strip. With the use of remote control sockets, you can control the power of anything from the Pi and a web interface, enabling better control and less use of device standby modes. Lights A classic home automation function is controlling the lights in the house depending on the time of day or how dark it is. There are many ways you can do this: the popular method right now is Wi-Fi enabled bulbs,…

4 minutos
build your own automated system

Remote control sockets We are going to use a 433MHz receiver and transmitter module (these can be found for a couple of pounds on eBay – simply search for ‘433MHz’ and you’ll find what you’re looking for) connected to an Arduino to switch a pack of remote control sockets. We used a pack of four remote control sockets from Energenie (£17 on Amazon). Remote control sockets are ideal for items such as floorstanding lamps, and anything else without an on/off switch. In our expert’s case, he has an audio mixer that doesn’t have an on/off switch. Once you have the sockets set up to work with the remote, you can use the 433MHz receiver and a simple piece of Arduino software to capture the message sent by the remote so it can…

4 minutos
control your automated system

We are going to use heimcontrol.js as the control software for our automated system. This is a home automation web interface written in Node. js that runs on the Raspberry Pi, and sends low level serial commands to an Arduino connected via USB to control various hardware connected to it. Although some of the things the Arduino does can be done with the Raspberry Pi in theory, the Raspberry Pi does not have the ability to read analogue voltages, so temperature and light sensors would not be possible in this case. Also, the Raspberry Pi only has one hardware pulse width modulation output and three are needed for the LED strip. Raspberry Pi prep Use the latest Raspbian image as a starting point for this project. Log into the Pi using the…

3 minutos
set up your control interface

01 Start heimcontrol.js on boot Before we start adding devices, it makes sense to start heimcontrol.js on boot. To do this, we can add a line to /etc/rc.local which is a script that gets ran at boot by the root user. The file needs to be edited with sudo and your favourite editor, for example: Heimcontrol.js will be started automatically at boot from now on, but for now you can start it with node /home/pi/heimcontrol.js/heimcontrol.js. 02 Add the camera feed Go to Settings and select Webcam. Set the method to Streamer and the devices as /dev/video0. Pick an interval; we picked two seconds but you can pick any interval you like. Shorter intervals are more feasible on a Raspberry Pi 2, as it is generally more responsive. Click Save and then go back to…