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 »
Controlling a Bipolar Stepper Motor
bentejuy Sep 09, 2015 Tags MotorStepper InterfaceGPIO Bipolar

Bipolar stepper motors tend to have just two motor windings; they are called bipolar because these windings must change polarity in a determined order sequence to move with each step. They require more circuitry to be adequately controlled, but in exchange they offer some advantages compared to unipolar motors.

Read More »
A Class for Unipolar Motor Stepper - Part II
bentejuy Jul 23, 2015 Tags InterfaceGPIO MotorStepper Unipolar

In the previous post, we saw that stepper motor control is relatively simple with Raspybot, although currently it only supports the class InterfaceGPIO as layer of connection with the Raspberry Pi. In this example I'll show how to control a stepper motor in a non-blocking manner.

Read More »