Cost-effective motor and valve contro