PICNIC Demo Module 2IP-based utility outlets
陳育瑋、方煒台大生機系
Objective
Development of a demo module 1. providing utility outlets that can be used for
home appliance capable of locally manual control and remotely on/off control through internet.
2. teaching usage of PICNIC.
3. teaching VB programming.
Software
• Written in Visual Basic v6 (Microsoft, USA)
• Required PICOCX.ocx (Active X 控制項 )
Device
• PICNIC
• SSR: solid state relay
• Relay or utility outlet
Solid State Relay (SSR)
Input terminal
Output terminal
5 types of SSR and popular 3
Type (input V range)
Output V range
DCAC
(3-32VDC)
24-280V AC
ACAC
(80-280VAC)
24-280V AC
DCDC
(3-32VDC)
5-120V DC
3 way and 4 way switch• Three-way-switch is used when providing control in two locations for one home appliance.
• In between 2 three-way-switches, 1 four-way-switch is needed to provide control in 3 locations for one home appliance.
• In between 2 three-way-switches, installing n four-way-switches can provide control in n + 2 locations.
Home appliance
AC 110V
On/off control in 2 locations for one home appliance
AC 110V
On/off control in 3 locations for one home appliance
Home appliance
Home appliance on/off control in 2 locations with one side connect to the internet
PICNIC
Toggle Switch
Home appliance outlet
Relay
B connect
SSR Internet
same outlet from above
Relay
A connect
An example: Lamps control
Control 2 Fans (110
VAC )
Control 8 TFLs (110 VAC )
Relay
Relay
SSR RB4
PIC110V
110V
Demo module ver.1
• Replacing relays with utility outlets• Up to 8 outlets per Picnic• One outlet required one SSR
RB4
Home appliance 1
PIC
110V
110V
RB5
RB6RB7
Outlet#1
SSR#1
To SSR#1
To SSR#3 To SSR#2
To SSR#4
Digital output ports
RB4
Home appliance 2
PICNIC
110V
RB5
RB6RB7
Outlet#2
SSR#2
To SSR#1
To SSR#3 To SSR#2
To SSR#4
Digital output ports
7
6
5
4
5
4
7
6
Problem: The person at remote side needs to know the current status (on or off) of the
home appliance
PICNIC
Toggle Switch
Home appliance outlet
Relay
B connect
SSR Internet
same outlet from above
Relay
A connect
Demo module ver.2
• Modified version of module ver.1• Up to 4 outlets per Picnic• One outlet required 1 SSR and 1 Relay
RB4
Home appliance 2
PICNIC
110V
RB5
RB6RB7
Outlet#2
SSR#2
To SSR#1
To SSR#3 To SSR#2
To SSR#4
Digital output ports
RB0From Relay#2
Relay#2
Digital Input ports
Demo module ver.2
A commercial productIP-relay
• IP Relay is an Ethernet-enabled box containing 1 RS-232 serial port and 2 relays with contacts on a terminal block. The device can be also used as a remote RS-232 serial port (the Virtual Serial Port drives software for windows is free) or as RS232/ethernet converter (terminal server). The remote device can be switched on/off or reset using the ethernet i/o relays.
http://www.hw-group.com/products/ip_relay/index_en.html
System topology scheme
Usage examples
• Remote monitoring of IP camera system's failure
• Remote control of the network configuration
• Remote control and restarting of micowawe connections.
• Remote devices control (ventilation, door opening..)
A commercial productI/O Controller
• I/O Controller is a unit containing 8x digital input over ethernet, 8x digital output over ethernet and RS-232/485 serial (Terminal server) interface. All the interfaces are accessible over a network using the M2M (Machine to Machine) protocol on TCP/IP.
http://www.hw-group.com/products/io_controller/index_en.html
Applications examples
• Remote control of technology over RS-232 and RS-485 bus • Remote control of displays and signalling • Remote reading of PIR sensors, door contacts and security
systems • Remote relay control • Industrial I/O • Card readers, RFID readers • Sales machines • Security alarms • Attendance systems • UPS controll and logging • Bar code readers