Tinycontrol Lan Controller v3 User manual

LAN Controller V3.0
Manual

2
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
LAN Kontroler
Lan Controller v3 is a completely new version of device produced from 2011y.
A small board works as a web server which presents the various sensor readings: tem-
perature, humidity, voltage, current, events and allows you to remotely control up to 10
outputs.
Modern 32bit processor, additional ash chip, regulated amplier for measurements al-
low not only for more features but innovative web interface. Thanks communication be-
tween hardware and web browser by XML les it is possible to design own web interface,
which t much better to end customer demands as our universal and should be easiest to
use for specic functionality. We hope to acquire new applications thanks it.
Lan Controller talks with computers and Internet network using universal protocols
like HTTP and SNMP. In new version we add support for MQTT now and we launched free
(up to 5 devices) cloud mqtt.ats.pl. It allow to collect, processing and present as a graph
all data sent by Lan Controller.
Specic functionality of MQTT protocol allow control outputs from Internet even if devi-
ce is located in local network behind router.
Example of applications
•in industry: machines, technological lines, working environment monitoring;
•in markets: refrigerators remote monitoring;
•in oces and workplaces: cooperation with access systems, observation
of environmental conditions;
•at home: for heaters automation, lighting according dust sensor or scheduler,
garden watering systems;
•at home: for controlling temperature in heating installations, heat pumps,
solar installations;
•renewable energy: measurements of productivity of PV installations, battery charging,
AC power consumption and production measurements;
•in farms and garden: monitoring and controlling greenhouses, watering, food dispensing
machines for animals.
We invite you to visit our website
www.tinycontrol.eu
There you will nd the rmware updates and information about the new possibilities.
MQTT broker
cloud services
router

manual LAN Controller V3.0 – LANKON-008
3
www.tinycontrol.eu
Monitoring, Controlling, Restarting
FEATURES:
•4 analog inputs
•2 analog inputs up to 3,3V - for DC voltage, DC current or other physical quantities by
voltage output sensors,
•digital buses: 1wire - up to 6 DS18B20 temperature sensors, I2C - up to 2 sensors, for
example AM2320 humidity sensor,
•4 logical inputs, as state (high, low) sensors (open, close, PIR) and for pulse counters
from energy meters,
•1 relay on board, (NZ,C,NO),
•1 transistor output, same voltage as supply, for loads up to 1A,
•4 outputs OC standard, for switching relays or small power loads
•4 PWM outputs, works as PWM, on/o and servos control*
•UART port for communication with PV DC/AC Inverters like Duraluxe, SDS011 AIR quali-
ty sensor or other devices
•communication option for LoRa and GSM modules*
•temperature and supply monitor on board
•modern and convenient web interface with pule down menu
•possibility of modication web interface or build new from scratch by www generator
•possibility of conguration Status panel, upload own background (with drawing of in-
stallation) and setting of sensor and outputs windows visibility
•logging as administrator for conguration and user for status preview
•advanced Even Cong with checking if 2 conditions are fullled
•support for: SNMP, HTTP GET/POST request or all MQTT protocols
•free access (up to 5 devices) to mqtt.ats.pl cloud for collecting, computing and visuali-
zation of data.
•remote controlling of outputs from Internet and mobile device even if LAN Controller
is behind router*,
* option possible in future.
Lan Controller is innovative device for remote controlling and measuring by LAN network
and internet. Because of many measurement features, many conguration possibilities
and embedded automatization are of application is only limited by user imagination. But
it cause that our company as a producer is not able to test all possible congurations and
it could happen that ones of setting will not work according to your expectations. In all
such cases please mail to info@tinycontrol.pl
But in rst place we ask to read this manual carefully. As a rich source of information
also serves user forum http://tinycontrol.pl/forum/
You are invited to use and share you experience!

4
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
FACTORY SETTINGS
•IP address of the module: 192.168.1.100
•administrator: admin password: admin
•user: user password: user
TECHNICAL SPECIFICATIONS
•supply voltage: 8 ÷ 55 V DC
•power consumption: 0,5W - without an attached relays
•PoE supply: YES, passive (PoE max. <55 V)
•Protection from wrong supply polarization: YES
•interface: Ethernet 100 Mbit/s
•relay: 255 V AC 10 A
•operating temperature: –20 to +85 °C
•weight: 50 g
•dimensions: 67 x 68 x 39 mm + DIN socket (can be mounted on DIN rail)
INPUT / OUTPUT:
•4 ANALOG INPUTS INPA1÷INPA4 WITH AMPLIFIER - 2 input voltage ranges:
The scope of of measured voltage for a range of 3.3 V
gain=1 from 0 to 3300 mV
gain=10 from 0 to 330 mV
gain=50 from 0 to 60 mV
The scope of of measured voltage for a range of 33 V
gain=1 from 0 to 33000 mV
gain=10 from 0 to 3300 mV
gain=50 from 0 to 600 mV
for voltages between 0 ÷ 5 mV, the measurement is not sure.
•2 ANALOG INPUT WITHOUT GAIN INPA5÷INPA6:
range of measured voltage of 0.1÷3.3 V
•1 DIGITAL INPUT in standard 1-WIRE and I2C (connector 6P6C RJ12):
measurement 6 temperature probes DS18B20 and the temperature and humidity sensor AM2320
•4 LOGIC INPUT:
VLow - max 1,1 V
VHigh - min 1,5 V, max 12 V
•1 RELAY:
10 A / 240 V AC, 15 A / 24 V DC
3 styki: NZ, NO, C
•1 TRANSISTOR OUTPUT:
giving adequate voltage to control receivers with current consumption up to 1A
•4 OUTPUT OUT1÷OUT4 (connector IDC10-2):
OC output of 100 mA, controlled downside to switching relays, transistors, etc.
•4 PWM OUTPUT:
the output frequency range of 50 Hz to 100 kHz
•UART - serial - console preview functioning of the Lan Controller system:
Transmission parameters: 115200 bitrate, 8 N 1

manual LAN Controller V3.0 – LANKON-008
5
www.tinycontrol.eu
PINS and COMPONENTS DESCRIPTION
service jumper pins
Ethernet
100 Mbit.
PoE max 55V
IDC10-1
INP3D
INP4D
+5V
OUT5=V power
GND
NC
C
NO
Zasilanie
max 55V
power LED
relay LED
INP6
RJ12 6p6c
1wire
RELAY OUT0
INP1D
INP2D
GND*
- Ground for analog
and digital inputs
IDC10-2
RESET
green LED
orange LED
digital
inputs
}
PIN/Component Description
Power Power supply 8V ÷ 55V DC
power LED LED indicator on – power on board
relay LED LED indicator on – relay active
green LED LED indicator on – eth link active
orange LED LED indicator on – data transmitted
IDC10-1 Additional Inputs / Outputs PWM1÷3
IDC10-2 Additional outputs transistor OC standard, for example, relays
INP1D÷INP4D Logical inputs Low=0~0,8V, High=0,8V~20V
Also supports a pulse counter
+5V For sensors supply
GND* Ground for analog and digital inputs
INPA1÷A4 Analog inputs
OUT5 Transistor output (+), voltage = power supply, max 1A
GND Ground for transistor output (–)
NC Relay OUT0, normally closed contact
C Relay OUT0, common contact
NO Relay OUT0, normally open contact
INPA3
INPA4
GND*
INPA1
INPA2
analog
inputs
}
GND SPI_SDO SPI_SCK SPI_SDI SPI_CS +3,3V
GND RX TX +3,3 V +5 V
Console pins

6
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
Outputs connection - relay OUT0:
NC – contact normaly closed
C – common contact
NO – contact normaly open
CAUTION: Although the relays are able to switch alternating voltage 255VAC 10A,
the same Lan Controller does not meet the safety requirements for connection to
dangerous voltages for unauthorized persons (unsecured plugs, no ground). Such
a system can make a person authorized and properly secure the device in a closed
box, eg. Electricity. It is safer to also use external relays eg. DIN rail switching high
voltage and only the controlled from Lan Controller.
NO C NC
RESET BUTTON
Pressing for about 0.5 seconds to change state relays, and hold for longer - up to around
ve seconds will change all settings (both network and conguration) on the factory re-
set. Conrmation of the settings is fast switching on and o the relay (click-click), not to be
confused with the change of status and exclusion of the relay after a reboot.
login as an administrator: user: admin password: admin
IP: 192.168.1.100
IDC10-1
9 – +5V
7 – UART_RX
5 – GND
3 – +3,3 V
1 – UART_TX
GPIO1 –10
GPIO2 – 8
PWM3 – 6
PWM2 – 4
PWM1 – 2
IDC10-2
9 – POWER
7 – PWM0
5 – GND
3 – +5V
1 – INPA5
OUT1 –10
OUT2 – 8
OUT3 – 6
OUT4 – 4
INPA6 – 2
ETHERNET
100 Mbit
PoE max 55 V
SCL – 1
+5V – 2
SDA – 3
1wire – 4
GND – 5
+3,3V – 6
INP6
RJ-12 6p6c
1wire
RESET
POWER
max 55 V
DESCRIPTION OF CONNECTORS:
RJ12 6P6C (1-wire bus, I2C), IDC10-1, IDC10-2:

manual LAN Controller V3.0 – LANKON-008
7
www.tinycontrol.eu
IDC10-2 socket: Connection OUT1÷OUT4
OUT1÷OUT4 are open collector, it means that the switching means connecting mass of
the system.
So, it can be actuated, for example relays, motors of low power (fans), connecting on the
one hand to the output OUT "–" (mass), and on the other hand, "+" supply.
For relays with 12V coils or fans use an external 12V power supply.
In the case of the nished plate 4-ch relay can plug them supplied with them tape outlet
IDC10-2. The relays are then fed from the internal 5V.
CAUTION: For relays with more power switched due to the higher power consumption,
it is recommended to use an external power supply, for example, 12V or 24V. + 5V vol-
tage from the Lan Controller board is also used to power sensors and should not be
charged more strongly than 300mA.
Connecting the PWM outputs on transistor circuit extension (optional)
+12V
OUT1÷OUT4
coil relay

8
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
SENSORS CONNECT
1. Measurement of DC voltage at the inputs INPA1÷INPA4 (3÷33V)
To enable the measurement to be in the "Input" to choose for INPA1÷INPA4 range
Vin = 3.3V or 33V, and possibly small signal strengthening GAIN.
For INPA5 and INPA6 can turn on only 3.3V range.
Measured voltage:
0 ÷ 3.3 V DC
Measured
voltage:
0 ÷ 3.3 V DC
0r
0 ÷ 33 V DC
GND
GND
INPA6
Pin5
Pin2Pin1
INPA1÷INPA4
INPA5

manual LAN Controller V3.0 – LANKON-008
9
www.tinycontrol.eu
2. Measurement of the DC voltage through resistive divider
If you need to measure the voltage higher than 33V to INPA1÷INPA4 or 3.3V on INPA5,
INPA6 use a resistive divider. U voltage dividers connected to the terminals should be safe,
or properly protected against accidental shock hazard.
WARNING: The supply voltage of long cables exposed to lightning, for example, the pho-
tovoltaic system can result in the transfer of electrical charge on the sensitive input Lan
Controller and can cause damage.
R1
R1
U
U = U1+ U2
U
=
R2
R2
U1
U1
U2
U2
R1+ R2
=R2
U2
EXAMPLE
U– Input voltage for the measurement
U2– the voltage at the input INPA1÷INPA4 or INPA5, INPA6
for the measurement of up to 33 V at the input INPA5 or INPA6 (max. 3.3 V)
should be used divider:
R1= 9 kΩ, R2= 1 kΩ,
for the measurement of up to 360 V at the input INPA1÷INPA4 (max. 33 V)
should be used divider:
R1= 99 kΩ, R2= 10 kΩ,
As a result of the multiplier enter of sharing: U/ U2
Pin1
GND
INPA1÷INPA4
R1
U
R2
U2
R1
U
R2
U2
GND
INPA6
Pin2
Pin5
INPA5

10
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
4. Connection the current sensor ACS709
GND
FAULT
Recommended
installation of cables
Recommended
installation of cables
3. Connection the current sensor ACS711ex
IP+
IP+
IP–
IP–
The sensor can measure DC currents to 15A or 30A (depending on the version of the sensor).
It can be connected to all analog inputs: INPA1÷INPA6.
Power supply: + 3.3V (pin 3 of the output IDC10-1).
The sensor can measure DC currents to
75A.
It can be connected to all analog inputs: INPA1÷INPA6.
Power supply: + 3.3V (pin 3 of the output IDC10-1).
GND
GND
Pin3
Pin3
INPA1÷INPA6
INPA1÷INPA6
+3,3V
+3,3V

manual LAN Controller V3.0 – LANKON-008
11
www.tinycontrol.eu
5. Connection of the AC sensor SCT 013 030
6. Connection of the AC sensor SCT 013 000
The sensor can measure AC currents up to 30A with a resolution of
about 50mA, but for a power supplies of low PF, measurement inac-
curacies can be signicant. The sensor does not require a separate
power supply.
red
red
INPA1
GND
white
white
180 Ω
The sensor can measure the AC current. This model does not have an internal resistor
which is conducted to measure, and therefore for a measurements to about 26A, connect
the 180 Ω resistor in parallel to the terminals (INP and GND). The displayed value will be
real. For measurements higher currents should give smaller resistor and proportionally
multiply displayed current.
For example: to increase the range x3 (78A) must be used resistor 60,4 Ω
to increase the range x4 (104A), use a resistor of 45,3 Ω
INPA1
GND

12
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
7. Connection the PT1000 temperature sensor
8. Connection of the dusk sensor
PT1000
Dusk
Sensor
R=3,3kΩ
R=100kΩ
To enable the measurement to be in the "Input" to choose for INPA1÷INPA4 measurement
PT1000.
Attention:
PT1000 analog sensor require calibration due to cable resistance.
To enable the measurement to be in the "Input" choose for INPA1÷ NPA4 range of 3.3V.
The day indicated voltage is close to 0, but with nightfall will grow signicantly, up to
about 2,9V in total darkness. This allows enough freely determine the point of switching
night lighting.
GND
GND
INPA1÷INPA4
INPA1÷INPA4
+5V
+5V

manual LAN Controller V3.0 – LANKON-008
13
www.tinycontrol.eu
9. Connection distance sensor
Sharp GP2Y0A02YK0F sensor allows measurements of distances in the range of 20 to 150
cm by using infrared reection.
It can be connected to the inputs INPA1÷INPA6, set to 3.3V.
For a + 5V power supply output voltage will be highest for 20 cm (about 2,9V) and will
decrease as the distance.
The outputs of the counter: "S–" is connected to GND, and the "S+" to logic inputs
INP1D÷INP4D. In the "Power / Energy" choose the correct input on the menu, and then in the
window below, enter conversion imp / kWh, which is characterized by a connected counter.
red
yellow
black
10. Energy measurement by means counter with pulse output
20
+ –
1 2 4
21
INP1D÷INP4D
GND
GND
INPA1÷INPA6
+5V

14
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
setup
operation time
delay setting after which
the loss of movement
can actuated output again
PIR
sensor
Detected
motion
Jumper
setting
Output
low state 0~0,8V high
state 0,8V~20V
11. Connection of PIR motion/presence sensor
INP1D÷INP4D
+5V
GND
The sensor uses a analysis of the infrared radiation. Low state logic output is a state of rest,
a state indicating the activity is high.
The detector can be adequately linked to + 5V, GND, and one of the digital inputs
INP1D÷ INP4D, and then set its negation.

manual LAN Controller V3.0 – LANKON-008
15
www.tinycontrol.eu
NOTES

16
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
Management by WWW.
All functions Lan Controller v3 are available for conguration and viewing via the
website.
There are two types logon: as an administrator and user.
The administrator has access to all settings, the user only to the panel status, which
sees only what will make an administrator. In the following pages shows the settings
and congurations available after logging in as an administrator.
1. Status
Page that displays all the data collected from the Lan Controller indicating the name and
sensor readings, analog inputs and outputs, and logic.
From the position of administrator can in any way to remove these items, move, and add
scripts changing the displayed value (*)
Status page items
1. Information panel - displays:
- Time since last reboot: Uptime
- Date and time
- VCC supply voltage
- CPU temperature
2. Language and positions menu:
- ON/OFF - enadle / disable moving items
- SAVE - save the positions of elements
1
3
4
5
6
7
2

manual LAN Controller V3.0 – LANKON-008
17
www.tinycontrol.eu
2. Load a picture - page visible only to the administrator
Przeglądaj - button to open the window to choose the image le from the local computer.
Uploaded photo must be in the size 1024x768 otherwise not be displayed correctly.
Remove image - remove the image le
Uploaded an image le is to improve the presentation of the data, it may be for example
a system diagram or drawing the operator panel. Ideally suited when Lan Controller is an
element of control of the machine or installation.
- RESET - reset the position of elements
- EN - site language
3. ON/OFF Output panel: out0 ÷ out5 - displays the names of outputs and the switching
which is also an indicator of the output - ON / OFF
4. PWM Output panel: pwm0 ÷ pwm3 - displays the names of exits, and a button switch
which is also an indicator of the output - ON / OFF. Below is a slider to change the ll factor.
5. Analog inputs panel: inpa1 ÷ inpa6 - displays the names and values of readings analog
inputs.
The readings are shown as the value directly from the transducer mV and measured as the
value calculated from the sensor (e.g., the current value A)
6. Temperature and humidity measurements panel: eld contains the name of the sensor
and the value eld.
DS1 ÷ DS6 eld display DS18B20 temperature sensors, and the elds T1 and H respectively
the temperature and relative humidity measured by the humidity sensor.
7. Logic inputs panel: INP1D÷INP4D - displays the names of zones, and below is shown
their logic state.
8. Additional menu is composed of three buttons:
•Thebuttonwithabrushisresponsibleforchangingthebackgroundcolor/inputs
•Thefolderbuttonisresponsibleforthestorageofitemsinafolder
•Theclaspsbuttonenables/disableseldsstretching

18
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
3.
Control - page is only visible to the administrator. It contains a set of
pages to congure the inputs and outputs visible in Status.
1
2
3
4
Control / Out
1. ON/OFF output panel - allows you to select which outputs out0÷out6 may be visible.
Separately, you can select the description eld and the change of state. In the latter case it
makes it possible to change the state of the user. Checkbox "Reverse State" reverses only
logical state of the outputs (relay does not change). Lan Controller remembers the state of
the outputs when power is restored.
2. Reset time - automatically changes the output state to opposite entered the time
in seconds from the rst change (caused by the user or by the function of events).
3. Auto switch - the output changes automatically switched on times on / o certain elds.
4. Out after start - sets the delay in switching outputs after power (if it was turned on befo-
re turning o). The very useful in controlling high power loads.

manual LAN Controller V3.0 – LANKON-008
19
www.tinycontrol.eu
Control / PWM
1. Switching Frequency for the outputs pwm0 and pwm1 ÷ pwm3 - here the frequency
is the same for these outputs.
2. PWM Output panel - it allows you to select which pwm0 ÷ pwm3 output to be seen.
Separately, you can select the visibility of the description elds, slider changes the duty
ratio and the on / o PWM output.
Additional eld:
"active low" - is used to reverse the action of the switch and ll factor,
"mode on/o "- check this box causes the PWM output changes in the output of the two
state: on / o.
NOTE: for the Lan Controller v3 is available a separate system - board - the overlay transi-
stor, which allows you to use PWM outputs to control the load of up to 2÷4A (depending
on the amount used of outputs) and a voltage input connected to the cap (maximum 28V).
In the on / o switch allows us to enable / disable connected consumers, such as LED ligh-
ting, sprinkler valves or fans, while the PWM duty cycle change slide smoothly regulate the
output voltage. The ideal application is for example the brightness control of LED strips.
The transistor outputs of the system are connected in a common "+" (such as LED strip
RGB).
1
2

20
manual LAN Controller V3.0 – LANKON-008
www.tinycontrol.eu
Control / Inputs
1. Input analog measurement inclusion panel and input name eld.
ATTENTION: when you save names are allowed ONLY characters: a ÷ z, A ÷ Z, 0 to 9, and "_"
(underscore) without nationality characters.
2. Selection functions menu for analog input or voltage range. After selecting the voltage
range can select a checkbox to strengthen the input. The range of useful measurements for
these reinforcements was given at the point of INPUT / OUTPUT instructions. If you select a
specic sensor for the analog input range and strengthening will set themselves.
3. Reading measurement inclusion panel - for display on the Status page.The eld can not
be displayed even when it is turned on, for example, to send readings to a remote server.
The panel also contains a eld calibration - a value that is added to or subtracted directly to
the measuring transducer and no conversion for the selected function. This makes it exac-
tly oset the impact, for example. Long cables on the measured value.
4. Temperature and humidity measurements panel - allows you to select the name eld
and the eld of temperature and humidity sensors for display on the Status page.
5. Visibility and the names logic inputs status panel. Below are checkboxes "Negative"
- if you want to change the logic of the logic input.
1
2
3
4
5
This manual suits for next models
1
Table of contents
Other Tinycontrol Controllers manuals