RC11xx(HP)-TM
RC25xx(HP)-TM
RC17xx(HP)-TM
2016 Radiocrafts AS
RC11xx(HP)/25xx(HP)/17xx(HP)-TM Data Sheet rev. 1.48 Page 37 of 86
2016 Tiny Mesh AS
Radiocrafts
Embedded Wireless Solutions
Digital Output Drive
GPIO
0 - 7, when configured as outputs, are capable of sinking or sourcing 2mA, which is sufficient for
driving a transistor or some high efficiency LEDs. When used to drive higher loads, the outputs must be
buffered by a transistor or similar, to provide sufficient drive current.
The two dedicated
RSSI/ TX LED
and
CONNECTION/ RX LED
outputs have higher drive capacity, and
should be limited by an external resistor for a maximum sink or source load of 10mA.
PWM (Dimmer) Output
GPIO
7 may be configured for PWM output (Pulse Width Modulation), and used for light dimming or
motor speed control, by setting
GPIO 7 CONFIGURATION
= 3.
SET PWM
commands will control the duty cycle of the
GPIO 7
output from 0 to 100%, providing full
range dimming control from fully off to fully on.
The default PWM value at Reset is configurable to any value between 0 to 100% by setting the
PWM
DEFAULT
parameter in Configuration Memory. The factory setting is 0.
The PWM switching frequency is fixed at 1 kHz
Analogue Input
The Tinymesh™ module features two independent analogue inputs. The analogue function of
GPIO 0-
GPIO 1
may be individually enabled by changing the default configuration setting of
GPIO 0
CONFIGURATION
and
GPIO 1 CONFIGURATION
. The analogue inputs will be sampled at a sampling rate
as defined by the
GPIO 0 ANALOGUE SAMPLING INTERVAL
and
GPIO 1 ANALOGUE SAMPLING
INTERVAL
configuration settings. The Sample Rate may be set in increments of 10ms. The default
setting is 100, or one sample per second. The analogue value is calculated as a sliding average of the
last eight samplings. The analogue converters are pre-configured to use an internal 1.25V voltage
reference. A positive input voltage between 0 and 1.25V applied to an analogue input pin will be
converted to a positive number between 0 and 2047 (0x07FF). Out of range values will be reported as
either 0 or 2047.
The analogue voltage value of the input signal may be calculated as:
Analogue voltage = Measured Value * 1.25 / 2047 [V]
Example
:
Measured Value:
0x4CC
Convert to decimal:
0x4CC = 1228
Analogue voltage conversion:
1228*1.25 / 2047= 0.75 [V]
Please note that negative voltages or voltages above the module supply voltage may result in
permanent damage to the module, please reference the electrical specifications for details.