|
| | Re: train control
|
| Hi Daniel, (...) sorry to reply so late, I wanted to try it myself but didn't get around to do it yet (I'm starting an IT-Business as a consultant/systems programmer, see (URL) managed to run a train from an RCX with the standard power levels using (...) (20 years ago, 5-Jul-04, to lugnet.robotics.rcx.java)
| | | | Re: NQC problem...driving me insane!
|
| (...) You should check to make sure your light sensor is in fact changing more than 5 counts. Start by changing the above code to 2 or 3. I don't recall with NQC, but with some languages (BrickOS) the values are backwards, so you may need to check (...) (20 years ago, 5-Jul-04, to lugnet.robotics.rcx.nqc, lugnet.org.ca.rtltoronto)
| | | | Re: NQC problem...driving me insane!
|
| (...) Well, actually, that code works fine (running MacNQC, a fairly recent version, with 2.0 firmware). One thing to check, code-wise, is to display SENSOR_1 on the LCD, and see what the numbers are (is it set to raw mode? Is the sensor bad (I've (...) (20 years ago, 4-Jul-04, to lugnet.robotics.rcx.nqc, lugnet.org.ca.rtltoronto)
| | | | NQC problem...driving me insane!
|
| Hey all, I know I must be doing something very simple wrong here - but I can't for the life of me figure it out. What I'm trying to do: Have a light sensor pointed at a surface. Pass that value off to a variable (the variable then contains the (...) (20 years ago, 4-Jul-04, to lugnet.robotics.rcx.nqc, lugnet.org.ca.rtltoronto)
| | | | Re: train control
|
| (...) There is a fundamental difference between the RCX and a Lego Train controller - the controller uses smooth power from a 3-pin regulator, with the voltage varied using a chain of resistors. The RCX uses PWM power with approximately 166ms square (...) (20 years ago, 3-Jul-04, to lugnet.robotics.rcx.java)
| |