duncanmcg
Posts: 6
Joined: Sun Jul 08, 2012 7:30 am

Remote mains switching

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.

User avatar
tand
Posts: 20
Joined: Sat Jul 14, 2012 7:56 am

Re: Remote mains switching

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
maksm
Posts: 10
Joined: Sun Jul 08, 2012 6:36 pm

Re: Remote mains switching

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.

saturn
Posts: 1
Joined: Sun Jul 15, 2012 4:45 pm

Re: Remote mains switching

Sun Jul 15, 2012 4:52 pm

Great idea for controlling mains. Can you share more information how to connect transmitter to Pi?

duncanmcg
Posts: 6
Joined: Sun Jul 08, 2012 7:30 am

Re: Remote mains switching

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.

duncanmcg
Posts: 6
Joined: Sun Jul 08, 2012 7:30 am

Re: Remote mains switching

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.

fabi280
Posts: 17
Joined: Wed May 30, 2012 5:36 am

Re: Remote mains switching

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-controll ... ack-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 http://www.raspberrypi.org/phpBB3/viewt ... 58#p133558

IanH
Posts: 67
Joined: Mon Dec 19, 2011 5:53 pm

Re: Remote mains switching

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).

Return to “Automation, sensing and robotics”

Who is online

Users browsing this forum: No registered users and 5 guests