<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Fanjita's Rants (Entries tagged as remote control)</title>
    <link>http://www.fanjita.org/serendipity/</link>
    <description>Yes, it really does mean that.</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.6 - http://www.s9y.org/</generator>
    <pubDate>Thu, 01 Jan 1970 00:00:00 GMT</pubDate>

    <image>
        <url>http://www.fanjita.org/serendipity/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Fanjita's Rants - Yes, it really does mean that.</title>
        <link>http://www.fanjita.org/serendipity/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Interfacing with radio controlled mains sockets - part 2</title>
    <link>http://www.fanjita.org/serendipity/archives/53-Interfacing-with-radio-controlled-mains-sockets-part-2.html</link>
            <category>Arduino</category>
    
    <comments>http://www.fanjita.org/serendipity/archives/53-Interfacing-with-radio-controlled-mains-sockets-part-2.html#comments</comments>
    <wfw:comment>http://www.fanjita.org/serendipity/wfwcomment.php?cid=53</wfw:comment>

    <slash:comments>10</slash:comments>
    <wfw:commentRss>http://www.fanjita.org/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=53</wfw:commentRss>
    

    <author>nospam@example.com (Fanjita)</author>
    <content:encoded>
    &lt;img class=&quot;serendipity_image_right&quot; width=&quot;400&quot; height=&quot;240&quot;  src=&quot;http://www.fanjita.org/serendipity/uploads/Photo 31 Mar 2012 23:41.jpg&quot;  alt=&quot;&quot; /&gt;
&lt;p&gt;&lt;a href=&#039;http://www.fanjita.org/serendipity/archives/51-Interfacing-with-radio-controlled-mains-sockets-part-1.html&#039;&gt;My last post&lt;/a&gt; discussed receiving and decoding signals from the Maplin socket controller.  Here, I&#039;ll describe how I went the opposite way - faking the signal to control the sockets directly with an Arduino.&lt;/p&gt;&lt;p&gt;As it turned out, this was a lot simpler than receiving.  For one thing, the &lt;a href=&quot;http://proto-pic.co.uk/434mhz-rf-link-transmitter/&quot; target=&quot;_blank&quot; title=&quot;&quot;&gt;transmitter module&lt;/a&gt; is just 4 pins rather than 8, and can be directly driven from the Arduino with no further components.  For another, I already had a representation of what the signal needed to look like - I just had to drive the transmitter input pin with the right timings.&lt;/p&gt;&lt;p&gt;So, here&#039;s some trivial code to do just that - it turns channel 3, ID 2 on for 3 seconds, then off for 10 seconds, repeatedly.  The transmitter module plugs directly into analogue pins A3-A5, as shown in the photo.  The antenna pin is left unconnected for the time being - in practice, you&#039;d probably want to connect a suitable antenna (or just a short piece of wire, as per the data sheet) to get optimal range.&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://www.fanjita.org/serendipity/archives/53-Interfacing-with-radio-controlled-mains-sockets-part-2.html#extended&quot;&gt;Continue reading &quot;Interfacing with radio controlled mains sockets - part 2&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 31 Mar 2012 23:39:14 +0100</pubDate>
    <guid isPermaLink="false">http://www.fanjita.org/serendipity/archives/53-guid.html</guid>
    <category>arduino</category>
<category>remote control</category>
<category>rf</category>

</item>
<item>
    <title>Interfacing with radio controlled mains sockets - part 1</title>
    <link>http://www.fanjita.org/serendipity/archives/51-Interfacing-with-radio-controlled-mains-sockets-part-1.html</link>
            <category>Arduino</category>
    
    <comments>http://www.fanjita.org/serendipity/archives/51-Interfacing-with-radio-controlled-mains-sockets-part-1.html#comments</comments>
    <wfw:comment>http://www.fanjita.org/serendipity/wfwcomment.php?cid=51</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.fanjita.org/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=51</wfw:commentRss>
    

    <author>nospam@example.com (Fanjita)</author>
    <content:encoded>
    &lt;p&gt;&lt;!-- s9ymdb:28 --&gt;&lt;img class=&quot;serendipity_image_left&quot; width=&quot;300&quot; height=&quot;300&quot;  src=&quot;http://www.fanjita.org/serendipity/uploads/N78KA.serendipityThumb.jpg&quot;  alt=&quot;Remote controlled mains socket&quot; /&gt;
&lt;p&gt;Maplin have recently had special offers on remote-controlled mains sockets - as cheap as £5 for a socket and controller pair.  Since the control frequency is on the standard 433MHz band, and I had a pair of &lt;a href=&#039;http://proto-pic.co.uk/433-mhz-rf-link-receiver-4800bps/&#039;&gt;Arduino-friendly 433MHz transmitter/receiver modules&lt;/a&gt; lying around, I thought I&#039;d have a play to see if the control protocol can easily be reverse-engineered for use with the Arduino.&lt;/p&gt;&lt;p&gt;So, I dutifully hooked the receiver module up to 5V and an oscilloscope, and started pressing buttons on the controller.  Things looked promising - a simple ASK pulse train, probably Manchester encoded.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;serendipity_imageComment_right&quot; style=&quot;width: 400px&quot;&gt;&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;!-- s9ymdb:29 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;400&quot; height=&quot;240&quot;  src=&quot;http://www.fanjita.org/serendipity/uploads/RFwaveform.BMP&quot;  alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;serendipity_imageComment_txt&quot;&gt;A single data packet.  Not shown is the leading low pulse between each packet - approx 13ms.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.fanjita.org/serendipity/archives/51-Interfacing-with-radio-controlled-mains-sockets-part-1.html#extended&quot;&gt;Continue reading &quot;Interfacing with radio controlled mains sockets - part 1&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 29 Mar 2012 23:17:00 +0100</pubDate>
    <guid isPermaLink="false">http://www.fanjita.org/serendipity/archives/51-guid.html</guid>
    <category>arduino</category>
<category>attiny</category>
<category>remote control</category>
<category>rf</category>

</item>

</channel>
</rss>