Close

Adding the motor controller

A project log for Low-cost watch parts washer

Build a budget parts washer for cleaning tiny items, such as the parts of a mechanical watch

robgRobG 08/31/2023 at 08:030 Comments

This bit is optional - you could simply connect the motor to a battery or USB power source and it would spin constantly in one direction. However I suspect better cleaning results are obtained when the parts are sloshed back-and-forth in the fluid, so this controller circuit could be used.

Connect up the Digispark board and motor controller as follows:

DigisparkMotor Driver
5VVCC
GNDGND
P0A-1A
P1A-1B

(Actually the last two can be either way round, it doesn't matter much)

The connect the motor to the controller's "Motor A" outputs, again which way round the connections go doesn't really matter. You should end up with something like this:

Microcontroller and motor driver connected up
We can make the wiring neater later on...

Following these instructions to set up the Digispark board, program it with the source code in the Files section. Each time the board is plugged into a USB socket, after a few seconds the motor should start turning, alternately one way and then the other.

Discussions