Hot answers tagged

4

The most basic solution would be to store the character read by fgetc, for example, instead of: if(!isspace(fgetc(handle))) you'd write: char val = fgetc(handle); if(!isspace(val)) This way if the isspacecall returns false you will still have the latest character in the val variable. I'd also suggest you look into the switch statement instead of using ...


3

There is a tool called NeXTScreen that is available here that will let you see the screen (and remotely control the NXT). There are similar tools for OS X and Linux on the same page. Once you have this setup, you should be able to use any programming environment that you like. The screen viewing programs should be able to run at the same time as anything ...


3

I had that error when trying to install the NXT 2 installer (after having previously uninstalled Flash, to be sure). What I did was to not run the main installer, but instead the language specific installer (in my case English ... .mpkg, if I am not mistaken). I am not sure if I just used a different download for EV3 or if I just automatically skipped the ...


2

The adapter itself is generally called a "Molex" adapter. The one you have pictured looks similar to their Mini-Latch style. I would recommend an adapter like this. The pin spacing should be the same even if it is not made specifically for that connector. The red wire connects to pin 1 and the black wire connects to pin 2. The yellow wire is for speed ...


2

There is a modified Color sensor block available here. As of this writing, this is the most up-to-date direct link to download the block.


2

I have had the sound go out on one or two NXTs. I was able to restore it by doing a factory reset. On the back of the NXT, there are 12 technic pin holes. In the one closest to USB port, you will see a metallic button. With everything unplugged from the NXT and with the NXT powered on, press the button with a paper clip or other instrument that will fit in ...


2

It worked for me by installing the 8527 version (for NXT 1.0) on Mac OSX running El Capitan. It kept giving me an error - looked like it has some flash player dependencies. I removed the process it indicated and continued to install. Did so OK. Afterwards, the program runs fine.


2

According to the docs (emphasis added): Warning This function requires the enhanced NBC/NXC firmware version 1.31+ Make sure you are using the enhanced firmware provided with NXC and not the official firmware from LEGO.


1

You can remotely start and stop programs from the NXT software. So create a simple program that just has a few display blocks and an empty loop at the end to keep the program from stopping then run the program.


1

See https://appdb.winehq.org/objectManager.php?sClass=version&iId=33051 for latest instructions. I recently did some testing to get the EV3 software working on Linux using Wine, and actually got it to work! (The EV3 software can also be used to program the NXT) Here are the instructions: $ sudo add-apt-repository ppa:wine/wine-builds $ sudo apt-get ...


1

The error was caused because the file rw.txt was not uploaded to the nxt performing: t2n -v -put rw.txt Solved the problem.


1

Read the RobotC NXT Forum thread "Firmware Update & Arduino IDE Issues (Renamed)". The only post that count is the 31th post. Simply go to the Device Manager with the brick connected, choose the Bossa Device, choose property, pilot update and replace the Bossa device by the Lego Mindstorm device.


1

I think you should buy a Bluetooth Card for your PC to connect the NXT with your PC. After that you should program your Bluetooth Card to send specific Bluetooth Signal to the NXT while you are pressing a key. Next you should program your NXT to "react" to the specific signal sent from PC... That's all, it's not too easy...


1

If you are missing a component of a set supplied by LEGO Education, you have the following options: Contact LEGO Education support (different support line than the regular LEGO service support line) at https://education.lego.com/en-us/support. Their US telephone number is 800-362-4308. Plead your case there - they might have a digital copy or remnant ...


1

This looks like a state machine. Save the "state" of your program in a variable. The state will be which program to run, so 1, 2 or 3. You will also need some more variables to track the previous state and how many times a program has run. Code flow will be something like this: next_state = 1 prev_state = 0 run_count = 0 begin loop compute_next_state ...


1

One approach could be to install each parts manually: -go to th 'Parts' Folder in MINDSTORMS NXT (^^^^^) -Uninstall Flash Player if you don't have Flash Player 10 -Install Flash Player 10 from the 'PARTS' folder -Install the packages in the language you prefer -Install the packages that have no specified language -Go to launchpad and click MINDSTORMS ...


1

I know this is 3 and a half years late, but I figured I'd throw in my two cents. Attach an NXT light sensor and an RCX light sensor facing into each other. You can communicate bi-directionally by flashing the built-in LEDs. On the RCX side, this can be accomplished by switching the sensor mode between touch sensor and light sensor to passivate or ...


1

You can try installing the NXT 2.0 software. (See this question) Here is a working link for the software: http://service.lego.com/en-us/HelpTopics/default.aspx?questionID=2655. Look for "How can I get a replacement for the LEGO® MINDSTORMS® NXT software for set 8547?" It says that it will not install on OS X 10.10, however, I did successfully install it on ...


1

There is a great video on YouTube that shows how to repair this. https://www.youtube.com/watch?v=eCZNc7tPop0 Basically, there are some surface mount capacitors on the PCB board for the screen/buttons that need a little bit of soldering to make sure they are properly electrically connected. I have performed this repair myself with success.


1

A speed in second makes no sense to me. Are there more information about this motor, like to maximum rpm/power ? If so, maybe that the scale from -100 to 100 is some sort of percentage of max rpm/power, with the positives being one rotation direction and the negatives the other ?


1

Most probably the problem is that the array is declared, but not initialized. The program does not know how much memory to allocate for this specific array and so there is no allocated storage in RAM for this array. To solve this, try initializing your array. You can either provide the starting dimensions during declaration, like in the last example here: ...


1

Since you are trying to solve a Rubik's cube, check out the source code for the MindCuber. The solution there is that the values are not actually converted into colors. Rather the raw values are converted to HSV and then sorted by hue. The actual value does not matter, just how close it is to the other values. The Mindcuber also has a white calibration. ...


1

You can use any programming language you like to remotely control the NXT provided that it can access a serial port of your computer. The Bluetooth connection on the NXT provides a virtual serial port. You can see this by opening "Devices and Printers" and double-clicking on the NXT (provided that you have already paired it). Then have a look at the ...



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