Page | 61
9.6
Local Display
A local display option is available for stations that need easy to view data. With the Ai1BUOY, this is integrated into
the bottom terminal area, while the display for the Ai1POLE mounts on the same mounting pole with an M12
connector.
Ai1BUOY version integrated in terminal plate area. With this
version the switch mounts on the gland plate.
Ai1POLE version with standalone enclosure, for
mounting on the same pole as the Ai1
The display includes a button that has several functions:
-
Quick
press. Turns on display for preconfigured time.
-
Long
press. Sets ReadNow true to trigger a new read of the sensors. The display will briefly
show rEAd when this is activated.
-
Extended
press. Able to be used for user control.
The configuration of the display is via several constants defined at the top of the program (all times in seconds):
DISPLAY_PORT
Serial communication to display, typically uses C1 (ComC1_Tx) but may also be TX (ComRS232).
DISPLAY_POWER_PORT
Port used to provide power to the display, typically Vx2. By using Vx2 the display will be on when
other internal sensors are active (i.e. GPS, Current, Humidity). Can be changed to Vx1 if RS485
adapter is not used
DISPLAY_INTERRUPT_POWER_PORT
P_SW. Provides excitation power to switch
DISPLAY_INTERRUPT_PORT
SE1. Used to activate display as soon as switch is pressed.
DISPLAY_SWITCH_STATE_PORT
SE2. Used to detect long press actions. Connected to DISPLAY_INTERRUPT_PORT
DISPLAY_ON_TIME
Time that the display is activated when switch is pressed
SWITCH_LONG_PRESS
Time required for the switch to be held in for a long press action
SWITCH_EXTRA_LONG_PRESS
Time required for the switch to be held in for an extended press action
The library file is encrypted as called using
Include "CPU:Display.cr300"
. The
display functions are “DisplayInitialize” to setup the display (called once at
the start of the program), and DisplayUpdate to update all functions for the
display and switch (called each scan). The switch activation uses an interrupt
routine as illustrated below.
The display cannot represent all characters, as shown in the figure here (with k, m, v, w, x, y, and z not part of the
character set). Many words are not easily displayed so a set of recommended abbreviations are provided.
Reading
reAd Turbidity
turb
Dissolved Oxy
do
Send
SEnd Algae
8GA
ORP
orP
Level
dePt
Chloride
chld
PAR
PAr
Flow
dSch
Chlorophyl
chlr
pH
PH
Pressure
PreS
Conductivity cond
TDS
tdS