Page 3
User Manual English Introduction Thank you for purchasing this RF controlled Raspberry Pi starter kit. Using this RF transmitter add on board, you can control up to 4 radio controlled sockets from your Raspberry Pi. The add-on board connects to the row of pins called the GPIO which can be controlled as either input or output lines under the control of software.
Page 4
User Manual English The pin header connects to the add-on board as follows to allow you to control the GPIO lines as outputs to drive the radio frequency transmitter. Your software will use the outputs on the GPIO connector to drive the add-on board. We have written some code in Python to switch the two sockets on and off.
Page 5
User Manual English The PCB can therefore control a maximum of 4 radio sockets independently. However, more than one socket may be controlled by the same control code. There are two parts to the transmitter board, the encoder and the modulator: 1) The encoder will accept 4 input signal levels programmed onto 4 of the GPIO lines (D0-D3) as shown above.
Page 6
User Manual English GPIO.setup(15, GPIO.OUT) GPIO.setup(16, GPIO.OUT) GPIO.setup(13, GPIO.OUT) # Select the signal to select ASK/FSK GPIO.setup(18, GPIO.OUT) # Select the signal used to enable/disable the modulator GPIO.setup(22, GPIO.OUT) # Disable the modulator by setting CE pin lo GPIO.output (22, False) # Set the modulator to ASK for On Off Keying # by setting MODSEL pin lo GPIO.output (18, False)
Page 7
User Manual English # We will just loop round switching the units on and off while True: raw_input('hit return key to send socket 1 ON code') # Set K0-K3 print "sending code 1111 socket 1 on" GPIO.output (11, True) GPIO.output (15, True) GPIO.output (16, True) GPIO.output (13, True) # let it settle, encoder requires this...
Page 8
User Manual English raw_input('hit return key to send ALL ON code') # Set K0-K3 print "sending code 1011 ALL on" GPIO.output (11, True) GPIO.output (15, True) GPIO.output (16, False) GPIO.output (13, True) # let it settle, encoder requires this time.sleep(0.1) # Enable the modulator GPIO.output (22, True) # keep enabled for a period...
Page 9
CE Statement CE Certification This equipment complies with the requirements relating to Electromagnetic Compatibility Standards EN55022/EN55024 and the further standards cited therein. It must be used with shielded cables only. It has been manufactured under the scope of RoHS compliance.
EU ha tramutato le direttive WEEE in leggi statali in varie misure. Fare riferimento alle leggi del proprio Stato quando si dispone di un apparecchio elettrico o elettronico. Per ulteriori dettagli fare riferimento alla direttiva WEEE sul riciclaggio del proprio Stato. LINDY No 84001 Edition, September 2014 www.lindy.com...