The Crazy Airplanes

ftComputing : Programme für die fischertechnik-Interfaces und -konstruktionskästen
  
ftComputing.de
Home
Back
Sitemap
Index
Links
Impressum
Mail
 

Two Airscrew are operating a Merry-Go-Round

To operate that thing, it will be enough to switch it on and off. But it can be done much more complicated and produce a ROBO Pro program with foreward, backward, slow and quick rounds and the sounding of a horn.

The Construction

The thing is very simple, if you have the (old) parts for it : Basis plate with an axis in the middle and an old slip ring on it with an wide red wheel on it. The current comes from contacts on the to lanes of the slip ring.

On the wide red wheel to static parts are mounted, with motors and airscrew on there end. And for decoration purposes a 'Männeken' behind each motor.

And somewhere a beeper.

The interface should be connected with a long (quite longer) cable, to operate it without hacking you own fingers when the thing is running.

Fore those, who only want to program : two fixed motors with a lamp (instead of the beeper) will be noisy enough to have fun with programming.

 

The Main Program

Is very simple :

One sub call followed by the next. A loop could be installed to have the fun repeated endless.

StartHupe : Sounding the horn for starting.

Anlauf : Starting slow and then come so quick to be nearly invisible.

Lauf8 : Drive it for 10 seconds with full speed.

Lauf48 : Operate it alternating with speed 8 (full) and speed 4 (half).

Sirene : Sounding the horn for the grand final.

LaufR : Fullspee back.

Lauf8 : Fullspeed foreward again.

Auslauf : Slow down ending with reverse stream brake.

Anlauf : Loop for Increasing the Speed, local Variables

The motor ist started with the lowest speed level. The speed will be increased by 1 in steps of 0.5 secs until reaching the maximum 8.

The loop is constructed with a local variable n, the command '+1' and a simple if A>8.

Because of n is a local variable, it is initalized to 1 with each call of Anlauf. The loop therefore run from 1 to 8.

Lauf48 : Driving with alternating Speed

A loop again, which runs 5 times. In this case a level 1 loop command is used in combination with level 3 command. This loop is more convinient to use, if no variable is needed.

The motor run with alternating power level 2 and 6, each for 2 secs always on right turn. It can be done on some different ways, try it.

Sirene : High and low sounding on the Horn

 

 

This time two loops are nested : The outer one is a simple for counting the highs and lows. Increasing and decreasing is done with two variable controlled loops. The local variable is used in both. Because of it is used in an outer loop it must be initialized eached time to 1 for the first loop, it comes to the secon loop with the value 9 and is decremented to 8 the start value.

Auslauf : Slow down Ending with reverse stream brake.

All elements are known. A downto loop with variable and coming to stand by reversing the motor direction.

 

Update (dd.mm.yy) : 10.03.2005