DGI

Proportional control of LEGO Power Functions

Recommended Posts

Hello everybody!

It is no secret that the Power Functions system allows smooth control of motor power and regulation of the angle movement of servo motor. I have studied this issue and developed a proportional remote control system which was first designed for the management of wheeled and tracked models. But in fact it is a universal device, which can control any Lego models with PF IR Receivers.

The system is not a control panel by itself. It represents a set of sensors, control unit and an infrared transmitter module which are made in the form factor compatible with Lego Technic.

Here's how it looks

Сontrol unit:

Board.jpg

Sensors of various types:

sens.jpg

IR transmitter:

IR.jpg

All this is connected together by wires and must be installed in the transmitter model made from Lego Technic.

The device can be fully configured using the front panel buttons but a lot of functions and menu system are difficult to obtain. I wrote a manual, but did not translate it into English yet.

Here is a short video showing the basic idea. I'm sorry, my comments are in Russian.

At the beginning of the video I configure my system for a specific console design (the system remembers the maximum deviation of controls in this design). At the end of the video I run track model with the remote control, which is shown at the beginning of the video. To manage such a model i have made a special control mode, which converts the signals of throttle and steering into the power of left and right caterpillar motors.

I want to find out, whether it can be interesting to someone?

 

Share this post


Link to post
Share on other sites

Very interesting and unique system, never have seen something similar, it would make a great addition to the current controllers range with it's wide-ranging abilities . I hope there will be people interested in it :)

Edited by LXF

Share this post


Link to post
Share on other sites

I am sorry but there are still 7 speeds. It is build in the IR receiver. I have made a transmitter that allows to use these 7 speeds more comfortable than the train transmitter does.

Share this post


Link to post
Share on other sites

Rather interesting, though maybe it could be further improved by replacing the flawed IR with an RC setup, as PF is rather limited in range outdoors.  Also how did you make the shells for the electronics, they look great.

Edited by Tommy Styrvoky

Share this post


Link to post
Share on other sites
Quote

Also how did you make the shells for the electronics, they look great.

Thanks! I cant add more photo! Try the links:

Shells and boards

More Shells

what is inside

full scale photo of the sensors

4 holes are done in size of Lego black pins. Then i glued top and bottom plates whith thermal glue pistol and cut the unneeded glue.

Edited by DGI

Share this post


Link to post
Share on other sites

Here are some videos were my friend rides his models with the help of my remote:

 

Share this post


Link to post
Share on other sites

Cool. Very neat board layout.  You used an ATmega168 microcontroller.  Is it less expensive than an ATmega328?

 

Share this post


Link to post
Share on other sites
Just now, dr_spock said:

Cool. Very neat board layout.  You used an ATmega168 microcontroller.  Is it less expensive than an ATmega328?

 

Thanks!

The price difference is not so great. It may be 1.5$ for the first and 2$ for the second. And the cost of the microprocessor is not much stands out against the cost of the other components (especialy Step-Up DC-DC Converter and tantalum capacitors). I used the one that was at hand. But when I wrote all the code, found out that the resources of program memory and RAM are used by more than 80%, which I was surprised to see! So for exampe the ATmega88 is not suitable for that project.

Share this post


Link to post
Share on other sites

I'v made a video in English, tried to show the basic functions of the system:

 

Share this post


Link to post
Share on other sites

While I don't really like home-made PF controllers this one looks great. And implementation is neat as well.

I wish I had this one for MOCs controlled via PF IR, looks to be much easier to use with RC-like controller.

Share this post


Link to post
Share on other sites
24 minutes ago, efferman said:

let us dream: this as a "make your own remote" expansion set

Exactly! The system can be customized for any transmitter design. Not necessary of a pistol type. And it provides proportional control instead of discrete control of standard transmitter. Four proportional channels, four additional functions (lighting effects, etc.).

Share this post


Link to post
Share on other sites
On 09.12.2016 at 7:29 PM, Tommy Styrvoky said:

Rather interesting, though maybe it could be further improved by replacing the flawed IR with an RC setup, as PF is rather limited in range outdoors.

After I have read your post I thought a little about the RC models hardware adaptation to Lego.

The implementation can be the following:
The device has a connector for connection to a standard PF battery box (or a RC model accumulator).
The device has two standard PF connectors for two motors or servomotors of Lego PF.
The device has two standart RC connectors for connecting to the RC receiver (device will work with any RC receiver in standard mode).
The device provides power to the RC receiver (as BEC does, so there is no need to have separate battery for the RC receiver).
The device reads two channels from the RC receiver and converts them to the PWM control signal for two Lego PF motors or servomotors (device has two drivers for motors with PWM output).
The device has no settings, all (invertion, limits) is adjusted in the RC transmitter.
The main problem is to find where to buy PF connectors. I can use Lego extention cabels but they are expencive.

I think I can design and make such a device. I think the cost will be about 60$ but it might be interesting for me if I can sale at least 20!

Also it is posible to make a retranslator that will convert RC channels of RC receiver to IR PF commands and additionally power up the RC reciver from Lego PF battery box. The motors (or servomotors) of Lego PF then will be driven by a standart PF Receiver. Such a device is iven more simple as I dont need to add PWM motor drivers.

Share this post


Link to post
Share on other sites
7 hours ago, DGI said:

The main problem is to find where to buy PF connectors. I can use Lego extension cables but they are expensive.

You could always disassemble/ modify the end of one connector, to fit different wire and then resin cast the parts in bulk. The only hard part from that is how to make the contacts for the connectors.

Edited by Tommy Styrvoky

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.