Hobby Components SmartRFy HCMODU0145 User manual

SmartRFy Relay Modules
Manual
HCMODU0145,
HCMODU0146,
& HCMODU0147
Revision 1.0.0

DISCLAIMER
SmartRFy modules are micro power short range devices (SRD) using the 433MHz requency band.
This requency band is licensed exempt (within certain restrictions) in many countries including
the UK, Europe, Asia, and the US. It is the end users responsibility to ensure that it is legal to
operate devices in this requency band within your own country be ore use.
As with all wireless devices, external factors such as range and interference may cause transmissions to
be corrupted or blocked. Therefore these devices should not be used in applications where control or
monitoring is a critical re uirement.
This document is provided "as is". Hobby Components Ltd makes no warranties, whether express,
implied or statutory, including, but not limited to, implied warranties of merchantability and fitness for a
particular purpose, accuracy or lack of negligence. Hobby components Ltd shall not, in any circumstances,
be liable for any damages, including, but not limited to, special, incidental or conse uential damages for
any reason whatsoever.
COPYRIGHT NOTICE
This manual, including content and artwork is copyright of Hobby Components Ltd and may not be
reproduced without written permission. If you paid for or received a copy of this manual from a source
other than Hobby Components Ltd, please contact us at sales@hobbycomponents.com
2
© Hobby Components Ltd

Ta le of Contents
SmartRFy system overview..................................................................................................................5
SmartRFy relay modules......................................................................................................................8
Features.......................................................................................................................................9
Specification.........................................................................................................................................9
Relay Module Features.......................................................................................................................10
Power.............................................................................................................................................10
Relay s)..........................................................................................................................................10
LEDs..............................................................................................................................................11
Serial UART..................................................................................................................................12
Command interface feature.......................................................................................................12
Wireless serial port feature........................................................................................................12
Default configuration settings...................................................................................................12
Clear Factory Reset).....................................................................................................................13
SmartRFy commands.........................................................................................................................14
Command formats..........................................................................................................................14
Command format requirements................................................................................................14
Local command format.............................................................................................................15
Command quick lookup table........................................................................................................15
Generic commands........................................................................................................................15
Relay module specific commands.............................................................................................16
Generic SmartRFy commands.......................................................................................................16
Firmware version FWV?)........................................................................................................17
Get the modules zone ZON?)..................................................................................................17
Get the modules address ADD?).............................................................................................17
Serial serial timeout time STO=).............................................................................................17
Set the baud rate BUR=)..........................................................................................................18
Set number of transmit resends TRS=)....................................................................................19
Set the serial verbose mode VBM=)........................................................................................19
Set the modules zone number ZON=).....................................................................................20
Set the modules address ADD=)..............................................................................................20
Turn on/off repeater mode TRP=)...........................................................................................21
Factory reset FTRE)................................................................................................................21
SmartRFy relay module commands...............................................................................................23
Set the state of the relay SWx=)..............................................................................................23
Set an alternative relay name SxN=).......................................................................................23
Set the relay on time SxO=).....................................................................................................24
Set the threshold value to energise the relay TxH=)................................................................24
Set the threshold value to de-energise the relay TxL=)...........................................................25
Set the test condition for energising the relay MxH=).............................................................25
Set the test condition for de-energising the relay RML=).......................................................26
Appendix A: Example relay modes...............................................................................................28
Threshold mode.........................................................................................................................28
Timer mode...............................................................................................................................29
Toggle mode..............................................................................................................................31
Dimensions....................................................................................................................................32
3
© Hobby Components Ltd

1 channel relay module.............................................................................................................32
2 channel relay module.............................................................................................................32
4 channel relay module.............................................................................................................32
4
© Hobby Components Ltd

SmartRFy system overview
SmartRFy modules are a range of wireless modules that provide a simple low cost way of
controlling and monitoring remote devices and sensors. They are designed to work at their
basic level with no programming re uired. However, when reconfigured or controlled via
their serial interface they can also provide more complex and even autonomous functions.
SmartRFy modules work by wirelessly communicating with one another using simple text
based commands - for example, to turn on a remote relay a command such as RLY=1 can
be sent, and to turn it back off RLY=0. These commands can be automatically sent from
one module to another or can be sent by a user via a modules serial interface to manually
control modules on the SmartRF network.
They are addressable and can grouped into one of 255 zones, with each zone capable of
individually addressing 255 devices, giving a total of over 65,000 uni ue addresses.
SmartRFy modules are designed to be both easy and flexible to use by providing three
levels of control:
Zero con iguration (out-o -the-box)
5
© Hobby Components Ltd
Example: Controlling a remote digital pin and light from a push switch.

With no configuration at all the SmartRFy range of modules allow basic functionality such
as remotely switching relays, digital pins, or monitoring sensors, such as temperature,
humidity, light, motion etc. All SmartRFy modules default to the same zone and address
and so can respond to, or control, other modules without the need to modify any zone or
address settings.
Serial port con iguration
All smartRFy modules include a serial port which allows them to be re-configured using
simple text based commands. These text commands allow changing of configuration
settings and control of specific features of each module. Any setting changes are stored by
the modules non-volatile memory and so are retained even when power is removed from
the module. When reconfigured they are able to perform more complex functions and even
some basic autonomous tasks. For example, a SmartRFy relay module can be
reconfigured to control a heating system based on the temperature transmitted from a
remote sensor or, turn on a flood light for a set amount of time when triggered by a remote
6
© Hobby Components Ltd
Example: Remote 1CH relay module configured to turn on light when local modules’ PIR is
triggered and second remote relay module is configured to control a heating de ice based on local
modules’ temperature sensor readings.

PIR – all without any additional hardware. Serial port configuration also allows a modules
zone and address (all SmartRFy modules default to zone and address 0) to be changed.
This provides the option for modules to be placed into groups, which will then only respond
to other modules with a matching zone or address.
Slave controlled
SmartRFy modules can also be controlled via their serial port by other devices such as
microcontrollers or computer based automation software such as Node-RED. Using a
SmartRFy module as a slave device (must be capable of transmitting/receiving) gives a
master device the ability to monitor and control any other SmartRFy devices on the
network, regardless of their zone and address. SmartRFy modules can even be used as a
passive wireless serial port for passing non-SmartRFy data to other remotely connected
devices.
7
© Hobby Components Ltd
Example 1: Turning on a remote relay with zone = 1 and address = 5
Example 2: Send plain serial text “Hello” to a remote microcontroller

SmartRFy relay modules
The SmartRFy relay modules are available in 1, 2, and 4 channel versions and give the
ability to remotely switch electrical devices via other SmartRFy modules. For example, a
SmartRFy relay module can be used to switch a floodlight when triggered by a PIR sensor
connected to a remote SmartRFy digital TX module without re uiring any configuration.
Out of the box the relays can be remotely controlled by the appropriate input pin of the 4
channel digital TX module (HCMODU0143) or the single channel switch module
(HCMODUxxxxx). When reconfigured via the serial port these relay modules can be
programmed to automatically respond to a greater range such as temperature, humidity,
light etc.
Screw terminals provide convenient access to each relays normally open, closed, and
common terminals. As with all SmartRFy modules, the relay modules also include a serial
interface which can be used to reconfigure the device using simple text based commands,
or can be used as a basic wireless serial port allowing it to receive serial data sent from
other remote SmartRFy devices.
8
© Hobby Components Ltd

Features
•Available in 1 channel (HCMODU0045), 2 channel (HCMODU0046), and 4 channel
HCMODU0047) relay versions.
•Local and remote control via simple text based serial commands.
•Up to 255 zones and 255 addresses (default zone 0, address 0).
•Basic automation features (re uires a USB to serial adaptor or microcontroller for
configuration).
•Compatible with most microcontrollers featuring a serial UART interface.
•Wireless serial communication with 8 different baud rates (9600 default).
•Built in 1, 2, or 4 channel relays providing a set of NO/NC clean contacts accessed
via a screw terminal header.
•Relays can be controlled remotely via serial commands, or other SmartRFy
modules. The module can be set to automatically switch the relay based on
temperature, humidity, light or motion and supports on/off, toggle, and timer modes.
Speci ication
Model number: HCMODU0145, HCMODU0146, & HCMODU0147
Supply Voltage: 4.5 to 5.5V
Supply current min: 9.5mA (idle)
Supply current max: 1ch: 101mA (transmit + relay energised)
2ch: 181mA (transmit + all relays energised)
4ch: 341mA (transmit + all relays energised)
Operating fre uency: 433MHz (OOK)
Operating range: 30 Meters (unobstructed)
Interfaces: RF Tx and Rx, serial UART, and 1, 2, or 4 relay clean
contacts
Relay contact rating (resistive
load):
5A max at 28VDC or 240VAC
9
© Hobby Components Ltd

Module dimensions (WxDxH): 1ch: 45.5mm x 40.4mm x 19mm
2ch: 62.5mm x 40.4mm x 19mm
4ch: 136.5mm x 40.4mm x 19mm
Relay Module Features
Power
Power can be applied to the module via the 5V and GND pins on the serial interface
header. It can be powered using an external power supply ranging from 4.5 to 5.5V with a
minimum current capacity of 120mA (1ch), 200mA (2ch), or 360mA (4ch).
Relay(s)
The relay modules include built-in relays to allow external electrical e uipment to be
remotely switched.
A screw terminal provides access to the relay(s) normally open (NO), common (COM) and
normally closed (NC) contacts.
Each relay can be controlled using the SWx command where x is the relay number (0 to
3). The module will respond to this command being sent via its serial interface, or remotely
from any other SmartRFy device set to the same zone and address. By default, setting the
SWx command to 1 (e.g. SW0=1) will energise the relay, and setting it to 0 (e.g. SW0=0)
will de-energise the relay.
10
© Hobby Components Ltd
This manual suits for next models
2
Table of contents

















