Difference between revisions of "TIAO Smart Network Sprinkler Controller Hardware Layout"

From TIAO's Wiki
Jump to: navigation, search

10 PCS, 10cm x 10cm, 2 layers prototype for $38.80 shipped!
 
(22 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
For system connection diagram, please refer to [[TIAO Smart Network Sprinkler Controller System Connection Diagram]].
 
For system connection diagram, please refer to [[TIAO Smart Network Sprinkler Controller System Connection Diagram]].
  
The [http://www.diygadget.com/lawn-sprinkler-controller-and-accessories/tiao-smart-network-sprinkler-controller-16-station-sprinkler-controller-open-source-desktop-mobile-app.html TIAO Smart Network Sprinkler Controller (TSS)] is a piece of hardware controls your irrigation systems.  It replaces your traditional sprinkler controller.  [http://www.diygadget.com/lawn-sprinkler-controller-and-accessories/tiao-smart-network-sprinkler-controller-16-station-sprinkler-controller-open-source-desktop-mobile-app.html TSS] has many benefits over the traditional sprinkler controller:
+
The [https://www.diygadget.com/lawn-sprinkler-controller-and-accessories/155-tiao-smart-network-sprinkler-controller-16-station-sprinkler-controller-open-source-desktop-mobile-app.html TIAO Smart Network Sprinkler Controller (TSS)] is a piece of hardware controls your irrigation systems.  It replaces your traditional sprinkler controller.  [https://www.diygadget.com/lawn-sprinkler-controller-and-accessories/155-tiao-smart-network-sprinkler-controller-16-station-sprinkler-controller-open-source-desktop-mobile-app.html TSS] has many benefits over the traditional sprinkler controller:
  
 
* Web interface - program the watering schedule using your PC or mobile phone
 
* Web interface - program the watering schedule using your PC or mobile phone
Line 38: Line 38:
 
[[Image:TSS-layout.png|none]]
 
[[Image:TSS-layout.png|none]]
  
# [[#Pin Out|For testing purpose]]
+
# [[#Pin Out|Pin Out - for testing purpose]]
 
+
# [[#USB B|USB B - for updating firmware]]
# [[#Relay Header|Relay header]]
+
# [[#RF Header|RF Header - Radio Frequency (RF) transmitter Header]]
# [[#Analog header|Analog input and output (connect to onboard PCF8591]]
+
# [[#ISP header|ISP header]]
# [[#I2C header 1|I2C pins connect to Raspberry Pi's I2C pins]]
+
# [[#Extension board header|Extension board header - connect extension boards]]
# [[#Power header|DC power header (output)]]
+
# [[#MicroSD socket|MicroSD socket - optional]]
# [[#Expansion header|To connect to expansion boards]]
+
# [[#AVR Power selector|AVR Power selector - AVR power voltage selector]]
# [[#Hardware button|To start or stop the schedule]]
+
# [[#Relay header|Relay header]]
# [[#I2C header 2|I2C pins connect to Raspberry Pi's I2C pins]]
+
# [[#Soft button 1|Button 1]]
# [[#Raspberry Pi female header|Female header so you can mount Raspberry Pi directly on top of TSSPi]]
+
# [[#Soft button 2|Button 2]]
# [[#Fuse holder|Holds the 2A fuse]]
+
# [[#Soft button 3|Button 3]]
# [[#Status LEDs|Status LEDs]]
+
# [[#LCD display header|LCD display header]]
 +
# [[#Ethernet receptacle|Ethernet receptacle]]
 +
# [[#Fuse holder|Fuse holder holds the 2A fuse]]
 +
# [[#Power switch|Power switch]]
 +
# [[#Power status LED|Power Status LED]]
 
# [[#24V AC and rain sensor header|AC In, Common wire and rain sensor connector]]
 
# [[#24V AC and rain sensor header|AC In, Common wire and rain sensor connector]]
 
# [[#Station 1-16 header|Connect to each individual valve]]
 
# [[#Station 1-16 header|Connect to each individual valve]]
# [[#Raspberry mounting holes|To mount Raspberry Pi and TSSPi]]
 
  
 
==== Pin Out ====
 
==== Pin Out ====
Line 70: Line 73:
 
|-
 
|-
 
| 4
 
| 4
| V3.3
+
| V5
 
|-
 
|-
 
| 5
 
| 5
Line 76: Line 79:
 
|-
 
|-
 
| 6
 
| 6
| V5
+
| V3.3
 
|-
 
|-
 
| 7
 
| 7
Line 103: Line 106:
 
|-
 
|-
 
| 15
 
| 15
| V5
+
| V3.3
 
|-
 
|-
 
| 16
 
| 16
Line 115: Line 118:
 
|}
 
|}
  
 +
==== USB B ====
 +
[[Image:tss-USB-B.png||none]]
 +
Connect this USB port to PC or laptop (USB A male to USB B female) to update TSS firmware.
  
==== Relay header ====
+
==== RF Header ====
[[Image:TSSPi-c1.png||None]]
+
[[Image:tss-RF.png|none]]
 
 
 
{|
 
{|
 
! align="left"|Pin #
 
! align="left"|Pin #
Line 124: Line 129:
 
|-
 
|-
 
| 1
 
| 1
| NC - Normally closed pin
+
| A3 - Data
 
|-
 
|-
 
| 2
 
| 2
| CO - Change over pin
+
| VIN - 5V
 
|-
 
|-
 
| 3
 
| 3
| NO - Normally open pin
+
| GND
 
|}
 
|}
  
The relay is rated as 120V/2A, however for safety concerns, please connect anything higher than 36V/2A.
+
Radio Frequency (RF) transmitter header.  Works with standard 434MHz or 315MHz RF transmitter.
  
 
+
==== ISP header ====
==== Analog header ====
+
[[Image:tss-ISP.png||None]]
[[Image:TSSPi-c2.png||None]]
 
 
 
The TSSPi has on board PCF8591 8 bit AD/DA converter.  The JP1 header on the board maps to the pins on PCF8591.
 
  
 
{|
 
{|
 
! align="left"|Pin #
 
! align="left"|Pin #
! PCF8591 Pin
 
 
! Description
 
! Description
 
|-
 
|-
 
| 1
 
| 1
| AIN0 (1)
+
| MISO
| Analog input 0
 
 
|-
 
|-
 
| 2
 
| 2
| NC
+
| VIN - 5V
| 5V
 
 
|-
 
|-
 
| 3
 
| 3
| AIN1 (2)
+
| SCK
| Analog input 1
 
 
|-
 
|-
 
| 4
 
| 4
| A0 (5), A1 (6), A2 (7), VSS (8), AGND (13), EXT (12)
+
| MOSI
| GND
 
 
|-
 
|-
 
| 5
 
| 5
| AIN2 (3)
+
| RESET
| Analog input 2
 
 
|-
 
|-
 
| 6
 
| 6
| VDD (16)
 
| Vcc
 
|-
 
| 7
 
| AIN3 (4)
 
| Analog input 3
 
|-
 
| 8
 
| VDD (16)
 
| Vcc
 
|-
 
| 9
 
| AOUT (15)
 
| Analog output
 
|-
 
| 10
 
| A0 (5), A1 (6), A2 (7), VSS (8), AGND (13), EXT (12)
 
 
| GND
 
| GND
 
|}
 
|}
  
 +
==== Extension board header ====
 +
[[Image:tss-Ext.png||None]]
  
==== I2C header 1 ====
 
[[Image:TSSPi-c3.png||None]]
 
 
PI2C heard connects to Raspberry Pi's I2C pins:
 
 
{|
 
{|
 
! align="left"|Pin #
 
! align="left"|Pin #
 
! Description
 
! Description
 
|-
 
|-
| 1, 2
+
| 1
| Vcc
+
| Vcc - 3.3V
 
|-
 
|-
| 3, 4
+
| 2
| SDA
+
| QH*
 
|-
 
|-
| 5, 6
+
| 3
| SCL
+
| A4/ADC4
 
|-
 
|-
| 7, 8
+
| 4
| GND
+
| Clock/TOSC1
|}
 
 
 
==== Power header ====
 
[[Image:TSSPi-c4.png||None]]
 
 
 
{|
 
! align="left"|Pin #
 
! Description
 
 
|-
 
|-
| 1, 3, 5
+
| 5
| Vcc
 
|-
 
| 7, 9
 
| 5V
 
|-
 
| 2, 4, 6, 8, 10
 
 
| GND
 
| GND
|}
 
 
 
==== Expansion header ====
 
[[Image:TSSPi-c5.png||None]]
 
 
{|
 
! align="left"|Pin #
 
! Description
 
 
|-
 
|-
| 1
+
| 6
| <span style="text-decoration:overline">OE</span>
+
| Latch/AIN1
 
|-
 
|-
| 2, 4
+
| 7
 
| GND
 
| GND
|-
 
| 3
 
| STCP
 
|-
 
| 5
 
| SHCP
 
|-
 
| 6
 
| 24V AC
 
 
|-
 
|-
 
| 8
 
| 8
| Vcc
+
| <span style="text-decoration: overline">OE</span>/T1
 
|}
 
|}
  
 +
Connect any extension boards to this header.
  
==== Hardware button ====
+
==== MicroSD socket ====
[[Image:TSSPi-c6.png||None]]
+
[[Image:Tss-MicroSD.png||None]]
 +
Optional MicroSD socket for logging.
  
TSSPi has an onboard reset button, this button is connected to Raspberry Pi's GPIO24 (pin 18). A pull up resistor was installed, thus the GPIO24 is high when the button is not pressed, and it become low when the button is pressed.
+
==== AVR Power selector ====
 +
[[Image:Tss-PJ.png||None]]
 +
Select power source for AVR Microcontroller.  Default is 3.3v.
 +
3.3v Power: jumper over pin 1 and 2.
 +
5V power: jumper over pin 2 and 3.
  
  
 +
==== Relay header ====
 +
[[Image:Tss-Relay.png||None]]
  
==== I2C header 2 ====
 
[[Image:TSSPi-c7.png||None]]
 
 
PI2C heard connects to Raspberry Pi's I2C pins:
 
 
{|
 
{|
 
! align="left"|Pin #
 
! align="left"|Pin #
Line 270: Line 219:
 
|-
 
|-
 
| 1
 
| 1
| Vcc
+
| NC - Normally closed pin
 
|-
 
|-
 
| 2
 
| 2
| SDA
+
| CO - Change over pin
 
|-
 
|-
 
| 3
 
| 3
| SCL
+
| NO - Normally open pin
|-
 
| 4
 
| GND
 
 
|}
 
|}
  
 +
The relay is rated as 250V/3A/AC or 30V/3A/DC, however for safety concerns, please DO NOT connect anything higher than 28V/2A.
  
==== Raspberry Pi female header ====
+
==== Soft button 1 ====
[[Image:TSSPi-c8.png||None]]
+
[[Image:Tss-B1.png||none]]
  
The female header, which allows you to put the raspberry pi directly on top of TSSPi without using any wires.
+
The function of B1/B2/B3 depends on the firmware version.  For version 2.1.4, these are the functions:
  
 
{|
 
{|
! align="left"|Pin #
+
! align="left"|Press then release
! Raspberry Pi pin #
+
! Press and hold
 
|-
 
|-
| 1
+
| Display current IP address
| 17
+
| Stop all stations immediately.
 +
|}
 +
 
 +
==== Soft button 2 ====
 +
[[Image:Tss-B2.png||none]]
 +
The function of B1/B2/B3 depends on the firmware version.  For version 2.1.4, these are the functions:
 +
 
 +
{|
 +
! align="left"|Press then release
 +
! Press and hold
 
|-
 
|-
| 2
+
| Display MAC address
| 18
+
| Restart controller
|-
+
|}
| 3
+
 
| 15
+
 
|-
+
==== Soft button 3 ====
| 4
+
[[Image:Tss-B3.png||none]]
| 16
+
The function of B1/B2/B3 depends on the firmware version.  For version 2.1.4, these are the functions:
|-
+
 
| 5
+
{|
| 13
+
! align="left"|Press then release
|-
+
! Press and hold
| 6
 
| 14
 
|-
 
| 7
 
| 11
 
 
|-
 
|-
| 8
+
| Toggle between the main controller (MC) and each expansion board (E1, E2, etc).
| 12
+
| Manually start an existing program or a test program.
|-
 
| 9
 
| 9
 
|-
 
| 10
 
| 10
 
|-
 
| 11
 
| 7
 
|-
 
| 12
 
| 8
 
|-
 
| 13
 
| 5
 
|-
 
| 14
 
| 6
 
|-
 
| 15
 
| 3
 
|-
 
| 16
 
| 4
 
|-
 
| 17
 
| 1
 
|-
 
| 18
 
| 2
 
 
|}
 
|}
 +
 +
 +
 +
==== LCD display header ====
 +
[[Image:Tss-LCD.png||none]]
 +
 +
Insert the LCD module directly on the LCD header.  Make sure pins are aligned, otherwise the LCD/controller will be damaged.
 +
 +
 +
==== Ethernet receptacle ====
 +
[[Image:Tss-Net.png||none]]
 +
Plug Ethernet cable here for network access.  If wired network is not available, there are many other options, such as using a wireless router in client mode (for example: [http://www.diygadget.com/150mbps-wireless-n-nano-router-micro-usb-power-tl-wr702n.html 150Mbps Wireless N Nano Router (Micro USB Power) TL-WR702N] or [http://www.diygadget.com/150mbps-wireless-n-mini-pocket-router-direct-power-tl-wr700n.html 150Mbps Wireless N Mini Pocket Router (direct power) TL-WR700N]) or powerline network adapter kit ([http://www.diygadget.com/linxe-lsp06-200mbps-etherent-powerline-network-adapter-kit-2.html Linxe LSP06 200Mbps etherent powerline network adapter Kit (2)]).
  
  
 
==== Fuse holder ====
 
==== Fuse holder ====
[[Image:TSSPi-c9.png||None]]
+
[[Image:Tss-Fuse.png||None]]
  
The onboard fuse hold.  The fuse is rated at 2A.
+
The on board fuse hold.  The fuse is rated at 2A.
  
 +
==== Power switch ====
 +
[[Image:Tss-Pwr.png]]
  
==== Status LEDs ====
+
The main power switch.  Slide up to turn on the controller, slide down to turn off the controller.
[[Image:TSSPi-c10.png||None]]
 
  
Led indicators.
+
==== Power status LED ====
 +
[[Image:Tss-PwrLED.png||none]]
  
 +
Power status LEDs.
 
{|
 
{|
! align="left"| LED
+
! align="left"|Pin
 
! Description
 
! Description
|-
 
| S1
 
| Connected to Raspberry Pin 12 (GPIO18), TIAO Smart Sprinkler Pi Controller Software uses this pin to indicate the controller has active schedule in queue.  Other controller software may not use this LED.
 
|-
 
| S2
 
| Connected to Raspberry Pin 16 (GPIO23), TIAO Smart Sprinkler Pi Controller Software uses this pin to indicate the active schedule is running.  Other controller software may not use this LED.
 
 
|-
 
|-
 
| PWR
 
| PWR
| ON when TSSPi is connected to 24V AC
+
| ON: VIN (5V) is working
 
|-
 
|-
| Pi
+
| V33
| ON when Raspberry Pi is connected to TSSPi
+
| ON: Vcc (3.3V) is working
 
|}
 
|}
 
  
 
==== 24V AC and rain sensor header ====
 
==== 24V AC and rain sensor header ====
[[Image:TSSPi-c11.png||None]]
+
[[Image:Tss-Header1.png||None]]
  
This header allows you to connect the power (24V, 2A AC) to the TSSPi. This is the only power source needed for the controller.  Raspberry Pi draw power from TSSPi since TSSPi has onboard AC-DC converter.
+
This header allows you to connect the power (24V, 2A AC) to the TSS. This is the only power source needed for the controller.   
 
For power, connect one of the 24V AC 2A transformer's terminal to pin 8 (24V AC In) and the other terminal to pin 7 (GND)
 
For power, connect one of the 24V AC 2A transformer's terminal to pin 8 (24V AC In) and the other terminal to pin 7 (GND)
 
For rain sensor, connect one of the rain sensor's terminal to pin 5 (Rain sensor terminal) and the other terminal to pin 6.
 
For rain sensor, connect one of the rain sensor's terminal to pin 5 (Rain sensor terminal) and the other terminal to pin 6.
Line 401: Line 330:
 
| 24V AC In
 
| 24V AC In
 
|}
 
|}
 
  
 
==== Station 1-16 header ====
 
==== Station 1-16 header ====
[[Image:TSSPi-c12.png||None]]
+
[[Image:Tss-Header2.png||None]]
  
TSSPi can control 16 stations (including master station if you have one) without expansion board.  This header has 16 connectors, so you can connect up to 16 valves.
+
TSS can control 16 stations (including master station if you have one) without expansion board.  This header has 16 connectors, so you can connect up to 16 valves.
  
 
* Example 1: My irrigation system has 10 stations, I do not have a master station.   
 
* Example 1: My irrigation system has 10 stations, I do not have a master station.   
Line 412: Line 340:
 
* Example 2: My irrigation system has 15 stations, I have a master station.   
 
* Example 2: My irrigation system has 15 stations, I have a master station.   
 
** Connect RED wires of the valves to 'Common wire' connectors (see [[#24V AC and rain sensor header]]), then connect BLACK wire of the the master valve to connector 16, and other BLACK wires of regular valves to connector 1 to 15 respectively.
 
** Connect RED wires of the valves to 'Common wire' connectors (see [[#24V AC and rain sensor header]]), then connect BLACK wire of the the master valve to connector 16, and other BLACK wires of regular valves to connector 1 to 15 respectively.
 
==== Raspberry mounting holes ====
 
[[Image:TSSPi-c13-c14.png||None]]
 
 
Raspberry pi mounting holes.  TSSPi comes with screws and posts, so you can mount the raspberry pi on TSSPi.
 

Latest revision as of 21:15, 3 November 2017

TIAO Smart Network Sprinkler Controller

For system connection diagram, please refer to TIAO Smart Network Sprinkler Controller System Connection Diagram.

The TIAO Smart Network Sprinkler Controller (TSS) is a piece of hardware controls your irrigation systems. It replaces your traditional sprinkler controller. TSS has many benefits over the traditional sprinkler controller:

  • Web interface - program the watering schedule using your PC or mobile phone
  • Supports complicate watering schedules
  • Unlimited watering schedules
  • Allow seasonal adjustments
  • Weather API access - automatically adjust watering amount/time by checking online weather forecast (rain/wind etc)
  • Control your sprinkler stations from anywhere in the world
  • Software supports unlimited stations
  • Total of 16 stations (or 1 master station + 15 stations), can expend to unlimited stations using our extension board
  • Software supports unlimited stations
  • Supports rain sensor
  • Open source software - which means you can add your own function to the controller!
  • System ON/OFF hardware switch
  • Status LEDs (5V and 3.3v power)
  • Status LCD - displays system status etc
  • Low cost! It's cheaper than the traditional sprinkler controller!

TSS Hardware Dimensions

The board dimension of TSS is 122.5 x 87mm, or 48.2 x 34.2 inch. It also has 4 mounting holes, the radius of the mounting hole is 2mm:

Tiao-smart-sprinkler-controller-board-2d.png


TSS Connector Layouts

The following picture shows the connector layout of the TSS. You plug the LCD module directly on top of TSS without using any wires.

TSS-layout.png
  1. Pin Out - for testing purpose
  2. USB B - for updating firmware
  3. RF Header - Radio Frequency (RF) transmitter Header
  4. ISP header
  5. Extension board header - connect extension boards
  6. MicroSD socket - optional
  7. AVR Power selector - AVR power voltage selector
  8. Relay header
  9. Button 1
  10. Button 2
  11. Button 3
  12. LCD display header
  13. Ethernet receptacle
  14. Fuse holder holds the 2A fuse
  15. Power switch
  16. Power Status LED
  17. AC In, Common wire and rain sensor connector
  18. Connect to each individual valve

Pin Out

Tss-JP2.png
Pin # Description
1 SDA
2 GND
3 SCL
4 V5
5 ADC5
6 V3.3
7 ADC7
8 ADC6
9 TXD
10 RXD
11 SCK
12 PD2
13 MISO
14 MOSI
15 V3.3
16 AIN0
17 GND
18 PD7

USB B

Tss-USB-B.png

Connect this USB port to PC or laptop (USB A male to USB B female) to update TSS firmware.

RF Header

Tss-RF.png
Pin # Description
1 A3 - Data
2 VIN - 5V
3 GND

Radio Frequency (RF) transmitter header. Works with standard 434MHz or 315MHz RF transmitter.

ISP header

None

Pin # Description
1 MISO
2 VIN - 5V
3 SCK
4 MOSI
5 RESET
6 GND

Extension board header

None

Pin # Description
1 Vcc - 3.3V
2 QH*
3 A4/ADC4
4 Clock/TOSC1
5 GND
6 Latch/AIN1
7 GND
8 OE/T1

Connect any extension boards to this header.

MicroSD socket

None Optional MicroSD socket for logging.

AVR Power selector

None Select power source for AVR Microcontroller. Default is 3.3v. 3.3v Power: jumper over pin 1 and 2. 5V power: jumper over pin 2 and 3.


Relay header

None

Pin # Description
1 NC - Normally closed pin
2 CO - Change over pin
3 NO - Normally open pin

The relay is rated as 250V/3A/AC or 30V/3A/DC, however for safety concerns, please DO NOT connect anything higher than 28V/2A.

Soft button 1

Tss-B1.png

The function of B1/B2/B3 depends on the firmware version. For version 2.1.4, these are the functions:

Press then release Press and hold
Display current IP address Stop all stations immediately.

Soft button 2

Tss-B2.png

The function of B1/B2/B3 depends on the firmware version. For version 2.1.4, these are the functions:

Press then release Press and hold
Display MAC address Restart controller


Soft button 3

Tss-B3.png

The function of B1/B2/B3 depends on the firmware version. For version 2.1.4, these are the functions:

Press then release Press and hold
Toggle between the main controller (MC) and each expansion board (E1, E2, etc). Manually start an existing program or a test program.


LCD display header

Tss-LCD.png

Insert the LCD module directly on the LCD header. Make sure pins are aligned, otherwise the LCD/controller will be damaged.


Ethernet receptacle

Tss-Net.png

Plug Ethernet cable here for network access. If wired network is not available, there are many other options, such as using a wireless router in client mode (for example: 150Mbps Wireless N Nano Router (Micro USB Power) TL-WR702N or 150Mbps Wireless N Mini Pocket Router (direct power) TL-WR700N) or powerline network adapter kit (Linxe LSP06 200Mbps etherent powerline network adapter Kit (2)).


Fuse holder

None

The on board fuse hold. The fuse is rated at 2A.

Power switch

Tss-Pwr.png

The main power switch. Slide up to turn on the controller, slide down to turn off the controller.

Power status LED

Tss-PwrLED.png

Power status LEDs.

Pin Description
PWR ON: VIN (5V) is working
V33 ON: Vcc (3.3V) is working

24V AC and rain sensor header

None

This header allows you to connect the power (24V, 2A AC) to the TSS. This is the only power source needed for the controller. For power, connect one of the 24V AC 2A transformer's terminal to pin 8 (24V AC In) and the other terminal to pin 7 (GND) For rain sensor, connect one of the rain sensor's terminal to pin 5 (Rain sensor terminal) and the other terminal to pin 6. The rain sensor is optional.

Pin Description
1, 2, 3, 4 Common wire, connect to sprinkler valve's common terminals.
5 Rain sensor terminal
6, 7 GND
8 24V AC In

Station 1-16 header

None

TSS can control 16 stations (including master station if you have one) without expansion board. This header has 16 connectors, so you can connect up to 16 valves.

  • Example 1: My irrigation system has 10 stations, I do not have a master station.
    • Connect RED wires of the valves to 'Common wire' connectors (see #24V AC and rain sensor header), then connect BLACK wires of the valves to connector 1 to 10 respectively.
  • Example 2: My irrigation system has 15 stations, I have a master station.
    • Connect RED wires of the valves to 'Common wire' connectors (see #24V AC and rain sensor header), then connect BLACK wire of the the master valve to connector 16, and other BLACK wires of regular valves to connector 1 to 15 respectively.


10 PCS, 10cm x 10cm, 2 layers prototype for $38.80 shipped!