created motor controller circuit