Installation and Setup
Mirage M Series User Manual
43
020-101942-02 Rev. 1 (10-2018)
Configuring the GPIO
The GPIO connector can be configured to automate any number of events using the serial command
code
GIO
. Each Pin is defined as either an
input
or
output
depending on the required outcome.
Configure the pin as an input if you want the projector to respond to something the device does and
as an output if you want the external device to respond to an action taken by the projector. For
example, configure the pin as an output if you want the lighting in a room to automatically dim
when the projector is turned on.
By using the GIO command, you can also set the state of each output pin as
high
or
low
. By
default, the state of each pin is
high
. The voltage applied to pins in the high state is +3.3 V.
A low state (or value of 0) is read on an input pin if the
circuit attached to the pin is open. A high state (or
value of 1) is read on an input pin if the circuit attached
to the pin is shorted to ground. This corresponds to a
switch closing event.
Example:
Turn room lighting on when the projector is
turned off (assumes a control/automation unit is configured to turn the lights on when pin 2 of its
input goes high).
The strings in the commands refer to pins 2, 3, 4, 6, 7, 8, and 9 in order from left to right.
GPIO pins
Pin #
Signal
Pin 1
+ 12V (200mA)
Pin 2
GPIO 2
Pin 3
GPIO 4
Pin 4
GPIO 6
Pin 5
Ground
Pin 6
GPIO 1
Pin 7
GPIO 3
Pin 8
GPIO 5
Pin 9
GPIO 7
(GIO+CNFG “OOOIIII”)
Set pin #2, 3, and 4 configuration to output and pin 6, 7, 8, and 9 to input
(GIO+STAT “HLXXXXX”)
Set pin #2 to high, pin 3 to low and the state of all other pins unchanged
(GIO+STAT)
Request the state of all pins
(GIO+STAT “HLLHLLH”)
Reply of pin states—H means pin is high, L means pin is low
(GIO+CNFG)
Request the configuration of all pins
(GIO+CNFG “IIIOOOO”)
Reply of pin configurations—pins 2, 3, and 4 are Inputs, pins 6, 7, 8 and 9 are
Outputs
Pin
Open (0 or L)
Pin
Closed (1 or H)
http://www.pureglare.com.au