
- #Opensprinkler pi command line how to
- #Opensprinkler pi command line install
- #Opensprinkler pi command line code
Plug in the transmitter to the pinouts, making sure the DATA-VCC-GND pins on the transmitter match the A3-VIN-GND pins on the circuit board. The pinouts are located either close to the top of the PCB, or next to the Ethernet jack. Remove the OpenSprinkler enclosure, and locate the RF transmitter pinouts (marked A3 VIN GND).
#Opensprinkler pi command line install
Step 2: Install RF Transmitter to OpenSprinkler In that case, just use a 315MHz transmitter-receiver pair. Keep in mind that although most remote power sockets work in the 433MHz band, there are some that work in the 315MHz band. Now click button S3 or S1 on the RFToy, the power socket should be toggle on or off just like when you press the buttons on the remote. Then plug it into the RFToy (making sure the DATA and GND pins on the transmitter match the DATA and GND pins on the RFToy).
#Opensprinkler pi command line code
To test if the code works, take out the 433MHz transmitter, and solder a 17cm (6.7inch) long wire antenna to the ANT pin. Once decoded, the signal will be converted to a 16-character hexademical code. Follow the on-screen instructions to record the on/off signal of a power socket. Take out the RFToy, plug in a 433MHz receiver (making sure the VCC and GND pins on the receiver match the +5V and GND pins on the RFToy). The estimate time for modification is 15 to 20 minutes. Heads-up: the following steps require a small amount of soldering.

Once we have the code, we can use OpenSprinkler to simulate the code, thus be able to control remote devices. The RFToy is a gadget that I’ve designed to easily decode signals from common remote power sockets. If we can sniff the signal, we can use a microcontroller plus a 433MHz transmitter to replicate the signal, thus be able to directly control the power socket in software. When you press a button on the remote, it sends out a signal to the power socket, which gets decoded and acted upon. First, common remote power sockets operate in the 433MHz radio frequency band. Let me briefly explain how the whole thing works.

#Opensprinkler pi command line how to
Here is a quick video tour on how to get started: Trying to find a programmable way to control your Christmas lights? Look no further! With OpenSprinkler’s easy-to-use web interface and flexible programming capability, you can enable automated control of lights, heaters, pumps, fans - anything that can be plugged into wall outlets. So you can now use OpenSprinkler not only to control sprinkler valves, but also powerline devices. With the just released OpenSprinkler firmware 2.1.1, support for interfacing with remote power sockets has finally arrived. Also, one Arduino plus transmitter can simultaneously talk to many power sockets, making this a scalable solution too. lights, heaters, pumps, fans), this is my favorite solution, because it’s low-cost (remote power sockets are widely available at cheap price) and convenient (no messing around with relays and powerline wires). For home automation involving powerline devices (e.g. In the past I’ve written several blog posts about how to use Arduino to interface with remote power sockets.
