Tag Info

Hot answers tagged

5

It turns out that the issue is a faulty/weak motor connector socket. While randomly trying to troubleshoot, I found that if I did nothing more than press or move the cable, the motor would act bizarrely. Initially I thought it was a bad cable, but after trying additional cables it seems that it is more likely just a poor connection at the motor. I suppose ...


4

Your code handling the behaviours like "Shoot 3 times if the touch sensor is triggered" or "Shoot if the light sensor is triggered" should use 'if' statements. Then, instead of always being called, the "shooting" code would append only on sensor events. After shooting, the robot would then go back to the "Driving around" part of the code. This page is a ...


4

No, the standard NXT-G software provided by LEGO will not allow you to program a RCX brick. Outside of official software, your best bet is probably to use NQC which is C-like; there's also NXC for the NXT which is similar. There are a lot of others which have been discussed in the following questions: Is there any other way to program the Lego Mindstorms ...


3

As far as I remember there is no possibility within NXT-G to programmatically execute another program. Moreover, as I understand it the default firmware simply doesn't have that possibility (the command to start a program is a direct command which must be sent via bluetooth and can't be used in a program). Maybe other programming languages using other ...


3

As you say yourself, you want to detect the tilt of the pendulum rod, so I'm assuming what you're after is actually its angle. Measuring anything else would probably result in tedious calculations anyway; and in addition, considering you'll want to try to keep the angle in a specific range, you'll need to know it. As such, an angle sensor may seems the most ...


2

If you are you using ROBOTC 2 for RCX you need to install the separate driver for windows 32bit. This driver is not included in the ROBOTC install (at least not with version 2.03). It might also be a good thing to start with a fresh install of ROBOTC 2.03.


2

I think the simplest way is to use an NXT Converter Cable (Available from Bricklink). This has an NXT connector on one end and the standard 9v connector on the other. You can connect the 9v connector to any 9v battery box, (e.g. Battery Box with Switch (9V)) and, depending on the polarity, power the NXT motor forward or backward. Now, the issues: The ...


2

Most sensors have the capability of sending you notifications or updates as the value of their sensor changes. This is accomplished by repeatedly contacting the NXT brick and querying the sensor. The polling frequency allows you to configure for each sensor how often this is done. In most cases, you may leave this value set to 0, which indicates ...


2

As was pointed out, this question is not specific in nature, so it's hard to give a definitive answer. If you haven't already done so, it would probably be helpful head over to Lego.com and grab get the NXT 2.0 User Guide and perhaps begin looking through the sample programs. This book may also be helpful to you: The LEGO MINDSTORMS NXT 2.0 Discovery Book: ...


1

I think you're overlooking a very simple yet elegant solution: connect a NXT motor to the motor port (no problem there, that's what it's for), connect a RCX rotation sensor to the RCX (again, the intended purpose), and by now you should pretty much know where I'm going with this: connect the rotation sensor mechanically to the NXT motor. Considering the NXT ...


1

Those answers above do all work. If I were looking for fast speed, I would probably use USB, however if you robot moves around, then bluetooth is probably the best solution (the slowest thing in the loop is the NXT anyhow :P). If your Bluetooth hardware on your computer supports multiple devices, then simply address each associated COM port per device. ...


1

There are some answers to this on Stack Overflow: C++ OOP Library for Programming the Lego NXT NXT++ is the best choice with dual USB/Bluetooth support. The C++ communication library has more features, but it's Bluetooth-only.



Only top voted, non community-wiki answers of a minimum length are eligible