DC motors
bentejuy Jan 20, 2016 Tags MotorDC InterfaceGPIO InterfacePWM

One of the objects that has raised the most questions for me about how to design it has been the object responsible for controlling DC motors, and not necessarily because of its complexity or the possible technical difficulties involved, but because of the different possibilities we have for controlling it, ranging from a simple on/off for the motor to controlling the speed and direction of its rotation. The challenge was not to create several objects for each configuration, and to do it in a simple, efficient and elegant way. I hope I have succeeded.

Read More »