Connecting the Electronic Components

Full System Schematic

As the power supplies require a power cord with a 3-pronged open end. The picture on the left shows which prong goes where on the power supplies. Note that The servo motor and touch screen will be getting 5V from an external power supply. Meanwhile, the 5V pin from the Arduino will provide 5V to the connections on the motor driver that require 5V.


The black wire should go to L, the white wire should go to N, and the green wire goes to the ground symbol. The symbols might appear in different places on different power supplies, so make sure that the wires are plugged into the slot with the correct symbol.

These are the connected paths on a breadboard. On the outside, there are long rails that are typically used for power and ground connections. The numbered rows are connected horizontally up until the divider column in the middle.

These are the pins that will be used on the left side of the Arduino. The white wire connects to the 12V+ power supply, the brown wire is connected to the ground rail on the breadboard. The A0 pin is the signal pin going to the servo motor. The orange 5V wire goes to the rail connected only to the 5V wires from the motor driver.

These are the pins that will be used on the right side of the Arduino. The blue and yellow wires will go to the touch screen and are colored according to the wires on the touch screen connector. The green wire goes to the DIR- on the motor driver and the purple goes to the PUL- on the motor driver. These are the wirings on the Arduino for 1 pump, but if multiple pumps are added, then the purple and green wires should go into the corresponding pins: purple to even pins and green to odd pins, for each pair of consecutive numbered pins on the Arduino board (e.g. 2+3, 4+5, 6+7, …).

In the following sections, connections are shown for each component for the sake of clarity. As such, not every connection will be shown in each image, only the ones pertaining to the particular component. Refer to the wiring diagram for a complete connection diagram.


The wiring should look something like the image on the left with just the motor driver attached. The 5V from the Arduino and the 5V wires from the motor driver are connected to a different breadboard for clarity.

The power supplies should be connected to the breadboard like this. The wires from other components should be connected to the corresponding rails. Since the 12V+ is connected to row 2, the Arduino Vin, and the VCC from the motor drivers should also be hooked up to the same horizontal row. The leftmost rail is for the 5V+ side from the power supply. This should be connected to the servo motor and touch screen red wires. The rightmost rail is the ground rail for everything (black and brown wires). Note that the ground from power supplies (or V-, which is the same thing) is connected to this rail.

These are the rails and pins for where the servo should be connected. If more servo motors are required, add a wire from the next A# pin (e.g. A1, A2, …) and wire them to the 5V and ground rails accordingly.

As mentioned, this is the 4-pin connector going to the touch screen. The blue and yellow pins go to the Arduino and the red and black pins go to 5V and ground, respectively. The connector end simply goes into the touchscreen.

Make sure that the switches on the motor driver are as according to the image above. This sets the stepper to the 16 microsteps setting and provides 0.5A to the motor. The motor can run at higher amperage, but it will be louder and heat up a bit more. Thus, it is recommended to run it at a lower, but sufficient amperage.