Remote mains switching


8 posts
by duncanmcg » Mon Jul 09, 2012 12:17 am
As with all good projects, this one has finally worked in the early hours of the morning, so it doesn't have much of a write-up yet...
...but if you're interested in home automation, I've managed to port some Arduino code to control Maplin remote mains switches with a £5 RF transmitter module.

The project is hosted on github https://github.com/dmcg/raspberry-strogonanoff.
Posts: 6
Joined: Sun Jul 08, 2012 7:30 am
by tand » Sat Jul 14, 2012 8:19 am
Did something similar, but used a bitbanging kernel driver (rfbb) to get more accurate timing.
See https://github.com/tandersson/rf-bitbanger for additional details.
What decoder chip is used in the Maplin sockets?
Be nice to your fellow threads!
User avatar
Posts: 19
Joined: Sat Jul 14, 2012 7:56 am
by maksm » Sat Jul 14, 2012 1:14 pm
Uf, very nice idea! But more details would make this a superb post. Like how did you connect the transmitor and the range of control, some details and your motivation for doing this project. Please write more :)

I've done remote mains controlling via an USB relay, check it out:
http://myraspi.tumblr.com/post/26217760 ... of-concept
This was not done with a RPi, but is all Python driven.
User avatar
Posts: 10
Joined: Sun Jul 08, 2012 6:36 pm
by saturn » Sun Jul 15, 2012 4:52 pm
Great idea for controlling mains. Can you share more information how to connect transmitter to Pi?
Posts: 1
Joined: Sun Jul 15, 2012 4:45 pm
by duncanmcg » Sun Jul 15, 2012 8:20 pm
tand wrote:Did something similar, but used a bitbanging kernel driver (rfbb) to get more accurate timing.
See https://github.com/tandersson/rf-bitbanger for additional details.

Now that's a lot more hardcore than my effort - I'll be stealing ideas
tand wrote:What decoder chip is used in the Maplin sockets?

I don't know - the original source reverse engineered the protocol with an oscilloscope.
Posts: 6
Joined: Sun Jul 08, 2012 7:30 am
by duncanmcg » Sun Jul 15, 2012 8:23 pm
I'll post some follow up, including the circuit, on github soon. But if you're motivated - there's really only one way to wire the transmitter - it has VCC, GND, ANT and DATA - VCC accepts 3.3V, and so does DATA.
Posts: 6
Joined: Sun Jul 08, 2012 7:30 am
by fabi280 » Thu Jul 26, 2012 12:42 pm
tand wrote:Did something similar, but used a bitbanging kernel driver (rfbb) to get more accurate timing.
See https://github.com/tandersson/rf-bitbanger for additional details.
What decoder chip is used in the Maplin sockets?


I guess the Maplin sockets (http://www.maplin.co.uk/remote-controlled-mains-sockets-5-pack-348217) are the same as mine.
Look at this ones I have - they are the same, except the socket type:
http://www.conrad.de/ce/de/product/6464 ... ifeld-30-m (Site is German, but just take a look at those pictures)

So if the IC is called SC5262S then it should work with rfbitbanger:
See viewtopic.php?f=37&t=11159&p=133558#p133558
Posts: 17
Joined: Wed May 30, 2012 5:36 am
by IanH » Fri Jul 27, 2012 9:04 am
I've got some Maplin remote-controlled sockets - the decoder is an SC2272 chip. The data sheet at

http://electronics-diy.com/download.php ... 72_eng.pdf

details the data format. The transmitter is an SC2262 - see

http://chipcan.com/en/sc2262.pdf

although the hand-held transmitter doesn't follow the given application circuit (the buttons used actually have three sets of contacts - each one connects several of the IC pins to ground when pressed).
Posts: 42
Joined: Mon Dec 19, 2011 5:53 pm