Using the DC power jack

With the standard motor

The controller has two ports that can be used to power the device. The first one is the USB located at the back of the unit and the second is a standard 5.5mm outside diameter, with 2.1mm center positive pin, it’s the most common type (note: do not attempt to power the dispenser with both simultaneously!)

By default the DC jack is connected in parallel to the USB port. This means you should only use 5V power adapters, rated 1A or more. Remember, before using this port double check with your multimeter for voltage and polarity.

DC Jack input
DC_Jack_input2

With bigger motors

The device has been optimized to work with the default stepper motor but if you want you can also connect much larger ones, the motor driver is capable of up to 1.5A of current.

To reach these levels first you’ll need a power supply with a voltage output of 12V to 20V then follow these instructions:

– Open the dispenser and locate the solder jumpers J1 and J2 at the bottom:

Solder jumpers on PCB

– Desolder J1 and short J2, make sure there’s no solder left in J1.

– Add a standard 7805 regulator on the top left side, according to the silk screen on the board.

Optional: The regulator tab can be soldered on the PCB or secured with a 4-40 or M3 screw and nut.

Here’s a simplified diagram of how it works:

Power input schematic

As mentioned before, by default the DC connector is in parallel to the USB port, therefore you can only use 5V power supplies. But when you short J2 and open J1 the stepper driver is powered directly, while the boost converter will be disabled by the microcontroller, which in turn is now powered by the 7805 regulator that you need to add.

Note: You can’t use the USB port once you’ve installed a regulator, you would have to remove it again If you want to go back to using a USB cable.

Molex 4 pin housing

For the motor cable use a standard 4 pin 0.1” female header, or use the intended locking polarized version. Molex part number: 50579404

Now that you have a new motor connected and a higher voltage supply, the only thing left to do is  change the current limit of the stepper driver. As explained in changing torque and power consumption you need to measure the “Vref” test point while adjusting the trimmer very slowly. Use this formula: Motor current=Vrefx2

Set the motor current according to your motor specifications and test to see if motion is smooth with no loud noises.
Be aware that if changing to a larger motor you might start to skip steps at higher rotation speeds.

Remember, you can use a higher voltage supply than the motor rating, so for example with a 4V rated motor you can use a 12V supply no problem. As long as the current limit is set correctly the motor won’t be damaged.