This is the main project my Raspberry Pi is dedicated to right now, so I figure I can add my two cents. Keep in mind this project is still very much a work in progress.
I chose to use the C programming language for this project exclusively on the Raspbian OS, and that may have affected some of my decisions and instructions. I'm going to only list free and ...
I'm using these items:
Receivers ON-OFF to control my lights (you typically put a device in the walloutlet or instead of the walloutlet). They work in the 433 MHz band (ISM).
Out of the box you have a remote control which sends a signal to the receiving device and switch it on or off.
In my case, I created this situation:
Created an HTML site on my ...
SainSmart sells Arduino relay modules (shields), they could also be used on Raspberries. There are different models (higher amperage, number of outputs, etc). For example SKU:20-018-100-FBA can be used for "equipment with a large current". And a useful article discussing Using the Raspberry Pi to Control AC Electric Power that mentions the SainSmart.
You could use mpd, pulseaudio and raop2 module, if necessary:
mpd for managing playlists, library, etc (sudo apt-get install mpd)
pulseaudio for managing audio outputs: raop for AirPlay, or any other output device such as analog jack, HDMI, http streaming service, etc (sudo apt-get install pulseaudio)
raop2 module for pulseaudio if the original raop module ...
Finally! I found it after almost two months after trying out every minor change in configuration and peripherals/accessories every day. It turned out to be a USB extension cable issue. I was using a 3 meter USB extension cable, which was not having noise filter. When I replaced the same with 5 meter cable with Noise Filter on both sides, everything works ...
The thing is called X10, it's an industry standard for most home automation tasks, including controlling lights. The control signal is sent over the same power line your appliances are connected to.
To be able to control everything from the computer, you might want to read about X10 Computer Interfaces from OpenRemote web site. The model you're most ...
What you're looking for is a Solid State Relay or mechanical Relay. The idea is that a small amount of current at a low voltage (such as from your RPi) can be used to trigger the flow of a larger amount of current at a higher voltage (such as a lamp).
I would recommend $12 SainSmart 8 Channel DC 5V Relay Module for Arduino Raspberry Pi, as it's already been ...
Relays are pretty safe to use without any special isolation like optocouplers. The reason people recommend optocouplers in DIY projects... well because its DIY and an optocoupler is safer in case of something going wrong.
The input pins power a coil and push or pull a lever using some kind of snap hinge to eliminate bounce and sparks. So you are already ...
You'll need just two things:
Make use of the GPIO pins
Using the GPIO port of the Pi is possible with numerous libraries for all significant languages. Finding one that interfaces well with Python or C is no trouble at all. Just have your pick, e.g.
Libraries for interfacing with the GPIO
Use a relay to control the 12V power line
I went with pocketsphinx_continuous and a $4 sound card.
To manage the fact that it needs to stop listening when using speech synth I used amixer to handle to input volume to the mic (this was recommended best practice by CMU as stop-starting engine will result in poorer recognition)
echo "SETTING MIC IN TO 15 (94%)" >> ./audio.log
amixer -c 1 set ...
Let's break this answer in two parts: scheduling a task and turning a led on and off, than wrap together. You can go to the end and just get the script if you prefer!
Scheduling a task
So I would suggest you use the atd for one time scheduling in Raspbian. If you need something repetitive, use cron - I will cover here only how to use the at command. More ...
The right device is
Make sure that the openHAB process has sufficient rights and that Z-Way (if installed) is stopped (/etc/init.d/Z-Way stop).
Because of the uncommon name of the Device, you have to tell openHAB at startup that this is a RXTX device - append
to start.sh (or start_debug.sh)
My answer to a related question and some of the other discussion on the following may prove instructive. https://raspberrypi.stackexchange.com/a/9561/8697
The simple answer is NO.
The reason domestic power is higher voltage (110/230v) is to reduce losses, and this is only distributed over relatively short distances (a couple of km at most).
In telephone ...
You can achieve each of those things with Python on the Raspberry Pi. The key is in the Raspberry Pi Python library support for GPIO peripherals.
For help on a particular sensor search for raspberry pi Python sensor name.
Most of the sensors you mention are digital (return 0 or 1) and may be directly connected to the Pi provided their voltage is 3V3 ...
Yes. use PocketSphinx for speech recognition, Festvox for text to speech (TTS) and some USB audio with line in (or an old supported webcam which also has line in).
Google searches for these software packages and "Raspberry Pi" provide many examples and tutorials to set this up.
SiriProxy - Only use this if you have a device that uses Siri - you don't need to jailbreak anything. It basically intercepts Siri on the network you install it on.
Speech2Text - You can use Googles API to decode speech to text but the example contains some other methods too.
Julius - A speech recognition decoder.
As pointed out by Lenik, you will need ...
Create an account at ANY Dynamic DNS server website. I used dnsdynamic.com as example for simplicity
Open a terminal on your Raspberry Pi and install the update service:
sudo apt-get install ddclient
You can type in settings during the wizard or just press enter. We will edit the configuration file any way.
Edit the configuration file /etc/ddclient.conf ...
There may be radio frequency bands in your country where very low power unlicensed radio emissions might be permitted (FCC Part 15 rules in the U.S.). However an unfiltered GPIO output won't broadcast in only one RF band.
The GPIO transmitter trick uses a periodic digital output to produce a radio signal. This is due to one of Fourier's theorems which ...
I've found LIRC to be relatively easy way to send IR messages, but really wanted to be able to control LIRC from java. I like programming in java and didn't find any straightforward tutorial for python to convince me work with it instead of java.
After several hours of trying to send IR codes from the pi using java I found the next solution to be relatively ...
Find a problem in your life that needs solved, and then solve it :) Want to know when you lights are on or off in the house? Measure and log temperature in your home? How about your own IP enabled weather station? Start you coffee pot when your alarm clock goes off?
You name it, you can do it with the Pi!
Mostly, just have fun with it!
A relay is an electro magnetic, mechanical switch. You should not power a relay directly from GPIO because relays use allot of power to pull and hold the switches, plus there is risk of feedback that can cause damage to the GPIO. You need to use Diodes to prevent this and have a reliable power source, which the Pi does not really have.
It is easier to buy ...
It sounds like you are wanting to wire the wall switch and the relay as a three-way switch arrangement. This way, if the relay has the light turned on, flipping the wall switch will turn it off, and vice versa. You could wire a single-pole double-throw relay to work as a 3-way switch, and install a 3-way switch in the wall (if it isn't already a 3-way switch)...
As a stage light technician, I would recommand to search about DMX512.
DMX512 is the light control standard protocol, working on XLR cables (3 pins or 5 pins). The point is, it is really easy to find DMX controlled dimmers.
Thanks to Roberto's answer I began searching for information about DISPLAY and that particular part of my error. Where I found this page:
For those interested the issue was in dblogger.py with matplotlib's default display back end.
You can use my piscope to check reception and transmission.
It is best to run piscope on a Linux machine networked to the Pi but it'll probably give acceptable performance when run directly on a Pi2 or Pi3.
piscope requires the pigpio library to be installed and to have the daemon running on the Pi (sudo pigpiod).
If your transmission uses Manchester ...
I suggest you try with my example DHTXX code.
Extract the zip to a directory and then compile/link with
gcc -Wall -pthread -o DHTXXD test_DHTXXD.c DHTXXD.c -lpigpiod_if2
The start the daemon
and run the code
/DHTXXD -g4 # assuming you are using Broadcom GPIO 4
pigpio is pre-installed on recent Raspbians, otherwise try sudo apt-get install ...
If I turn the software into a daemon will that work?
Yes. The problem is possibly two-fold:
First, if you exit a remote shell with a process running in the foreground, that process will die right away. MobaXterm looks like it's more of a complete remote desktop, so analogously, if this is a GUI application, that will die when you close the remote desktop....
To me it seems a lot easier to connect the pi outside your existing relay - essentially making the pi work as just another switch in parallel with the other ones on the circuit you want to control.
This way you can use your existing bi-polar relay board.
simulate this circuit – Schematic created using CircuitLab
This will save you the trouble of ...