Lego Power Function (PF) Motor Speed Controller

by rvdalen in Circuits > Electronics

62 Views, 1 Favorites, 0 Comments

Lego Power Function (PF) Motor Speed Controller

Lego PF Motor Speed Controller - small & large modules).jpg
Lego PF Motor Speed Controller - small (Full pict).jpg
Lego PF Motor Speed Controller - large (full pict).jpg

Inspired by this product I made my own versions of a speedcontroller for Lego PF motors.

Supplies

Lego PF Motor Speed Controller - commercial.jpg
HW-70 PWM Motor speed controller.jpg
HW-70 PWM Motor speed controller - Schematic.jpg

This product contains a commercial HW-70 PWM Motor Speed Controller Module.

It is based on the well known NE555 timer-IC to make a PWM ouput signal.


I bought a couple of these modules on AliExpress (for approx. 1€20 each incl shipping).

3D Print the Enclosure (small Module)

Lego PF Motor Speed Controller - small.jpg
Lego PF Motor Speed Controller - small (bottom-wire_entry).jpg

Then I made a small snapfit enclosure for it in FreeCad and 3D printed it.

The cable entry on the lid is marked with "wire".

The bottom (= lid) fits on lego studs.

You can find the the native files on my github

Make Lego PF Connection Cable

PF Connector.jpg
Lego PF Motor Speed Controller - PF_Connector.jpg

On AliExpress I bought a couple of PF connectors and 4 core wire and made my own DIY Lego PF connection cable.

Before assembling the PF cable, I removed the C1 and C2 contacts from the Bottom part of the connector so that only 1 connector is required to connect both the battery box (via the 0V and 9V contacts in the BOTTOM part) and the motor (via the C1 and C2 contacts in the TOP part).

See here the working of de Power Function cable

The Result - LED Dimmer

Lego PF Motor Speed Controller - small_LED-Dimmer.jpg

Because the output voltage cannot be reversed with this version, this module is actually more suitable as an LED dimmer than as a speed controller for a motor.

Extension; Add a DPDT Switch

Lego PF Motor Speed Controller - large - schematic.jpg
Lego PF Motor Speed Controller - large - enclosure.jpg

The addition of a DPDT switch does allow the motor to change direction - The type I found on AliExpress has 3 positions (FORWARD-STOP-REVERSE).

For this version I designed a larger snapfit enclosure in FreeCad

You can find the the native files on my github

Replace Screw Connector

Lego PF Motor Speed Controller - large - headercon.jpg

First of all I replaced the screw connector on the HW-70 Module by a header connector (removed 3 pins first).

After that I soldered and tested all connections - The assembly of the PF cable is described in Step 2.

3D Print the Enclosure (Large Module)

Lego PF Motor Speed Controller - large - enclosure.jpg
Lego PF Motor Speed Controller - large - Scale.jpg
Lego PF Motor Speed Controller - large (bottom-wire_entry).jpg

Finally I 3D printed the enclosure and mounted the circuit into this housing.

The cable entry on the lid is marked with "wire".

To make the stripes on the potentiometer scale, color in the lines with a black marker and then wipe it clean with alcohol, leaving the stripes.

The Result - Motor Speed Controller

Lego PF Motor Speed Controller - large (result).jpg
Lego PF Motor Speed Controller - large (bottom).jpg
Lego PF Motor Speed Controller

The result is a full function speed controller for Lego PF motors.

The bottom (= lid) of the module fits on lego studs.