To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.trainsOpen lugnet.trains in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Trains / 8504
8503  |  8505
Subject: 
Re: motorized points - beating a dead horse
Newsgroups: 
lugnet.trains
Date: 
Sun, 3 Dec 2000 14:31:54 GMT
Viewed: 
1208 times
  
"STEVEBAR" <stevebarile@yahoo.com> wrote in message
news:G4z98v.KA4@lugnet.com...
Carlo,
I built this version (see link below) and still the motor tears itself of
the plates, once the gear teeth ride up on the top of the rack teeth. If I
reduce the power level thru the RCX then there isn't enough torque to
overcome the "stickiness" of the switch track mechanism :(

Steve,
please try with this demo code (in NQC).
I think the "trick" is in the 100 ms output pulse length.

task main()
{
// configura sensore touch su porta 1
SetSensorType(SENSOR_1, SENSOR_TYPE_TOUCH);
SetSensorMode(SENSOR_1, SENSOR_MODE_BOOL);

// minimum needed power
SetPower(OUT_A, 4);

Dritto();
while (true) {
  Curva();
  Wait(100);
  Dritto();
  Wait(100);
}
}

void Dritto()
{
int retry = 3;

if (SENSOR_1 == 0)
do {
  OnRev(OUT_A);
  Wait(10);
  Off(OUT_A);
  retry--;
}
while ((SENSOR_1 == 0) && (retry >= 0));
}

void Curva()
{
int retry = 3;

if (SENSOR_1 == 1)
do {
  OnFwd(OUT_A);
  Wait(10);
  Off(OUT_A);
  retry--;
}
while ((SENSOR_1 == 1) && (retry >= 0));
}



Message is in Reply To:
  Re: motorized points - beating a dead horse
 
Carlo, I built this version (see link below) and still the motor tears itself of the plates, once the gear teeth ride up on the top of the rack teeth. If I reduce the power level thru the RCX then there isn't enough torque to overcome the (...) (24 years ago, 3-Dec-00, to lugnet.trains)

22 Messages in This Thread:









Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR