DC Motor with Microbit – Part 2

A new exercise for controlling a DC motor with the Microbit has been added to my Microbit course.  In this example a DC motor can reverse direction and vary the speed using an integrated circuit (IC) taking the place of a transistor and diode in the previous lesson. Only one motor is controlled in this exercise, but the  IC can control two motors.  Full lesson.



Screen Shot 2017-10-15 at 12.47.47 PM

Using a DC Motor with the Microbit

The next lesson for the Microbit is nearly finished. The lesson is how to control a small DC motor with the Microbit programmed in the Makecode block language. The circuit is pretty simple. The circuit uses a transistor,  a diode and a resistor.



The lesson starts with simply turning on and off the motor using the built-in Microbit button using the DigitalWrite block.  Next, there are instructions on how to vary the motor speed with the AnalogWrite block.



The circuit is then modified to use a knob to control the speed of the motor. The detailed lesson is here. The next lesson is adding the ability to change the direction of the motor.

The class I’m teaching will make DC motor instruments. For example: