Documente Academic
Documente Profesional
Documente Cultură
Sprinkler Design
Contributions:
Daniel Schmalz (project leader): Ouput Control Module
Akarsh Ningoji Rao Kolekar: GPS Parsing
Tej Sharadbhai Kothari: SD Card Parsing
i
Revision Record
Date Author Comments
9 February Daniel Schmalz N/A
2018
ii
Table of Contents
Section Page No.
List of Tables ............................................................................... Error! Bookmark not defined.
List of Figures ....................................................................................................................... iv
1 SCOPE................................................................................................................................. 1
1.1 System Identification ........................................................................................................................... 1
1.2 Document Overview ............................................................................................................................ 1
iii
4.3 Output Control ICD ............................................................................................................................ 15
List of Figures
Figure Page No.
Figure 1 - System Block Diagram ...................................................................................................................................1
Figure 2 - System Block Diagram ...................................................................................................................................4
Figure 3: FPGA Subsystem .............................................................................................................................................6
Figure 4: Altera SD Interface Block Diagram ..................................................................................................................6
Figure 5: GPS Parsing Block Diagram .............................................................................................................................7
Figure 6: Top Level GPS Diagram ...................................................................................................................................7
Figure 7: GPS Parsing ASM .............................................................................................................................................8
Figure 8: SPI Parsing Block Diagram ..............................................................................................................................9
Figure 9: SPI Parsing ASM ............................................................................................................................................10
Figure 10: Output Control Block Diagram ....................................................................................................................11
Figure 11: Output Control ASM ...................................................................................................................................12
iv
1 SCOPE
This Digital Design Document details the requirements and design for an automated sprinkler system.
1
2 APPLICABLE DOCUMENTS
The following documents of the exact issue shown form a part of this specification to the extent
specified herein. In the event of an inconsistency between the documents referenced herein and the
content of this specification, this specification shall be considered a superseding requirement.
2
3 SYSTEM REQUIREMENTS
3.1 Interfaces
3.1.1 Inputs
3.1.1.1 Clock Signal
The clock signal is provided by an on board oscillator component.
3.1.1.2 RS232
The timing input come from a GPS in the RS232 standard. A UART module takes in the serial data, then
outputs it to the FPGA 8 bits at time in parallel.
3.1.1.3 SPI
The designated start and stop times are written to an SD card. The FPGA extracts this information using
the SPI protocol. An IP designed by Altera (Altera UP SD Card Avalon Interface) interfaces with the IP
bus, and then outputs the data 32 bits at a time in parallel.
3.1.1.4 GPIO Input
The rain sensor inputs to a GPIO pin. This reveals whether or not it is raining.
3.1.2 Outputs
3.1.2.1 GPIO
4 GPIO pins indicate whether or not any of the four sprinklers should start.
3
3.2 System Design
The block diagram shown in Figure 2 shows the block diagram design for the system level. Each of the
blocks will be examined in the sections below.
3.2.1 SD Card
The SD card will be used to provide the programming to the irrigation system. It will detail when each of
the four zones are water. The file format for the SD card is shown in Listing 1. Starting with line 1, the
first “HHMM” denotes the start time in hours and minutes for region 1. The second “HHMM” on line 1
indicates the stop time for region 1. The next four lines give start and stop times for the remaining
regions in increasing order.
HHMMHHMM
HHMMHHMM
HHMMHHMM
HHMMHHMM
Listing 1: Input Data Format
3.2.3 GPS
The GPS will be a NMEA compliant RS-232 based commercially available GPS unit.
4
3.2.5 12V Solenoid Water Valve
The water valves are from various manufacturers and are currently on use on the farm. The new control
system will interface to the existing infrastructure.
3.2.6 FPGA
The FPGA board that will be used for this design is a DE10-Standard board from Terasic. Please see the
subsystem and component sections of this document that detail the FPGA design.
5
3.3 Sub-System Design for the FPGA Module
The block diagram shown in Figure 3 shows the block diagram design for the sub-system level of the
FPGA module. Each of the blocks will be examined in the sections below.
6
3.5 Component Level Design For the GPS Parsing Module
Figure 5Figure 1 shows a block diagram of the GPS parsing module. Figure 6 shows the top level
connection from the external GPS module to the block diagram shown below.
7
Figure 7Figure 5Figure 1 shows an ASM of the GPS parsing module
8
3.6 Component Level Design For the SPI Parsing Module
Figure 8Figure 5Figure 1 shows a block diagram of the SPI parsing module. The following 32 bit registers
store the ascii characters corresponding to a start or stop times of the form “HHMM” as detailed in
Listing 1.
9
Figure 9Figure 7Figure 5Figure 1 shows the ASM of the SPI parsing module.
10
3.7 Component Level Design For the Output Control Module
Figure 10Figure 8Figure 5Figure 1 shows a block diagram of the Output Control Module.
11
Figure 11Figure 9Figure 7Figure 5Figure 1 shows the ASM of the Output Control Module.
12
4 APPENDIX A: INTERNAL DOCUMENTS
4.1 GPS Parsing ICD
13
4.2 SPI Parsing ICD
14
4.3 Output Control ICD
r?_start SPI Parser Mux 32 the '?' can be replaced with a 1,2,3, or 4
r?_stop SPI Parser Mux 32 the '?' can be replaced with a 1,2,3, or 4
NS Output_ASM Output_ASM 3 -
PS Output_ASM Output_ASM 3 -
15