> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/qtech/cellular-remote-control/sms-lite/wiring-examples.md).

# Wiring examples

Inputs and outputs in detail: pumps, generators and heavier loads.

Here we provide details of the inputs and outputs to aid technicians when wiring the SMS Lite for connection to control other devices. See [Install and wire](https://help.qtech.co.nz/qtech/cellular-remote-control/sms-lite/install-and-wire.md).

{% hint style="danger" %}
**Warning:** Do not directly connect to 220V AC voltage. The New Zealand and Australian wiring regulations require that any wiring in excess of 32 volts must be carried out or be certified by a registered electrician. Consult your local electrical installer for further guidance.
{% endhint %}

## Inputs

The four inputs are provided in terminal pairs and connect to opto-isolators. Connecting a switch to an input pair and closing the switch will turn the input **ON** opening the switch will turn the input **OFF**.

The input optocoupler is protected by voltage diode D11 and current protection R14 as well as some noise filtering C19. The input pair can be driven by dry relay contacts or an open collector transistor if required. The input side is connected to an isolated 3.3 VDC supply. The input pair can be closed (if driven by a relay) or the Signal input driven to Gnd (ground) by an open collector transistor.

![Input circuit: opto-isolator on an isolated 3.3 V supply](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FTG01McVuXP3Q1By7Digq%2Finput-circuit.png?alt=media)

## Outputs

The two relay outputs are provided by two Omron G6EK-134P low signal latching relays, which provide a single pair of normally open contacts. The rated voltage of the relay coil is 12 VDC. The relay is also fitted with a transient voltage suppressor.

![Omron G6EK relay contact ratings](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FmrPXjXoJ96JYpBg93Edu%2Frelay-contact-ratings.png?alt=media)

![Output relay with its transient voltage suppressor](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FipzI6wjv2Pezc8l4GLBO%2Frelay-suppressor.png?alt=media)

| Text                    | Contacts                                        |
| ----------------------- | ----------------------------------------------- |
| `ON [output]`           | Close                                           |
| `OFF [output]`          | Open                                            |
| `PULSE [output]`        | Close for 1 second, then open                   |
| `PULSE [output] [time]` | Close for a set time, up to 24 hours, then open |

The output can drive a direct load (up to the relay contact ratings). To drive greater loads, typically the output is used to drive another relay capable of carrying a larger load.

## Starting and stopping a pump

There are a few options for Pump start/Stop control. One or both relays can be used to control inputs on the pump:

1. **One output, held on:** The relay outputs can control a switch to start the pump, closing the contacts starts and runs the pump, opening the contacts stops the pump.
2. **Two outputs, pulsed:** The relay outputs can be used to pulse an input on the pump to start it. A second relay output can be used to stop the pump via a dedicated switch input on the pump.
3. **Through a non-latching relay:** An intervening non latching relay can be used to control the pump. A flyback diode should be used across the external relay coil.

   ![Pump controlled through an intermediate relay](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2F6k0kx7OMRZcOnfk8p7GW%2Fpump-intermediate-relay.png?alt=media)
4. **Start, then run:** A more complicated pump arrangement that requires a start phase then switching to run could be designed using two relay outputs.

   ![Pump with a start phase and a run phase, using both outputs](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FRQhfPtnythE0d16fn4Fi%2Fpump-start-run.png?alt=media)

## Driving AC loads

Heavier AC loads can also be driven using the SMS Lite to control another relay. An intermediate DC Relay must be used because the SMS Lite is not rated to Drive AC Loads directly.

* A flyback diode may be advised across the coil of the DC relay.
* For protection a metal oxide varistor (MOV) can be used across the DC relay, rated at least 275 Vrms. If the final load is inductive you should also place one on the output of the final relay. Alternatively, RC snubber circuits could be employed.

![AC load switched through an intermediate DC relay](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2F96yFP7TYWh798GVzq1jz%2Fac-load-intermediate-relay.png?alt=media)

{% hint style="danger" %}
The circuit diagram is conceptual only, and should not be implemented without consulting a registered electrician.
{% endhint %}

For a worked example, see [Remote generator control](https://help.qtech.co.nz/qtech/cellular-remote-control/sms-lite/remote-generator-control.md).
