Official website

Showing posts with label 433MHz. Show all posts
Showing posts with label 433MHz. Show all posts

Thursday, June 26, 2014

Arduino radio remote control [ RF 433MHz/315MHz ]

In this post we will develop an Arduino remote control that will receive and transmit at 433MHz/315MHz. This will allow us to control devices that operates in that frequencies such as plug socket receivers.


What we need:
So, let's get started!

After wiring modules to arduino, download and install rc-switch lib. To do so navigate to Sketch/Import Library/Add Library




After installation is complete it will appear in library list.

Upload the sketch using codebender
Alternatively download the sketch and upload it to arduino.


Open serial monitor and press a button of the remote control. You should receive a binary code.


Of course Jubito and jaNET Framework provide the capability to listen the serial port via judo API.

Syntax: judo serial listen <ms>
milliseconds are optional. By default it is set to listen for 10 seconds (10000ms).



If you successfully complete the above steps, then, scan all the buttons of the remote control and write down the corresponding readings. At this time you are ready to create your virtual remote and accomplish transmissions from Jubito.

First make sure you have properly configured arduino's serial port and then enable it.


From Instruction Sets menu press Add New Launcher. Enter a name (handler) and type the following command...

judo serial send 000111101100000001100001


the binary code is the corresponding key press. For example the button A of the remote control that turns on the plug. To test if the 'plug-A-on' launcher is working, go to terminal tab and type...

plug-A-on


this command should power up the plug!

Dashboard Interface
When you create launchers for all buttons you are ready to create the virtual remote control. Again from Instruction Sets menu press Add New Instruction Set and fill the mandatory fields (name, action, category, header) and some optional if you desire, e.g. Thumbnail URL.


Notice that in action field we add an asterisk in the beginning. It is used to point the plug-A-on launcher. You can write some additional text also if you like, for example...

*plug-A-on Socket A is on

which will cause a response 'Socket A is on' to the button press instead of the 'Operation Completed' system message. After that the new instruction set is accessible from the dashboard.


Now you are able to clone any remote control at 433/315MHz.