working example with serial control

accepts 3 arguments, up, down, and stop