Questions about programming the various LEGO programmable bricks, including Mindstorms (EV3, NXT, and RCX), Wedo and Scout, in either the provided languages and editors, or more advanced languages.

learn more… | top users | synonyms

0
votes
1answer
48 views

Raw RGB data to Color?

Why doesn't my code ork? It should convert raw RGB to HSL. R = rgbn[INPUT_RED]; G = rgbn[INPUT_GREEN]; B = rgbn[INPUT_BLUE]; var_R = ( R/255 ); var_G = ( G/255 ); var_B = ( B/255 ); float H = 0; ...
0
votes
2answers
25 views

Programming NXT color sensor with NXC?

I am programing Lego Mindstorms NXT 2.0 color sensor in BricxCC. I already have RGB data with the command ReadSensorColorRaw. I heard that it is easier to get the colour from HSL format. I've tried a ...
1
vote
0answers
27 views

I need a block that can combine a movement program with NXTbee radio

I am a student. I am working on a science project using Lego Mindstorms robots enhanced with NXTbees creating a mesh network. My engineering mentor has me using Labview. I am trying to find a ...
0
votes
1answer
135 views

Can Mindstorms EV3 communicate using protocol 802.15.4?

My aim is to make the robot communicate using protocol 802.15.4 through a USB dongle 802.15.4 over 6LoWPAN. The robot has to be able to get information from TelosB. I wonder whether this possibility ...
5
votes
1answer
566 views

RobotC for RCX cannot find USB IR Tower

I have looked for similar question but found null. So here I am asking. I have Win7, a RobotC fo RCX and Mindstorms for RCX (both are old version, but available free). I borrowed an old LEGO kit ...
0
votes
0answers
78 views

Daisy chaining EV3 with RobotC

I'm trying to run EV3 programs with RobotC and trying run on EV3 Daisy Chaining. I have three independent EV3 bricks labelled A,B,C. I want, according to the color reading by the color sensor on ...
1
vote
0answers
53 views

How can I rotate an EV3 motor an exact number of degrees using RobotC?

I'm trying to rotate the motor of an EV3 by an angle of 50°. I can't. How I can rotate a NXT/EV3 motor by a given angle using RobotC?
2
votes
1answer
112 views

EV3 RMIregulatedMotor Regulation Problems

I have problem with regulation of the motor when I control EV3 with Bluetooth. Here is the code: RemoteEV3 ev3 = new RemoteEV3("10.0.1.1"); ev3.setDefault(); RMIRegulatedMotor leftMotor = ...
2
votes
2answers
633 views

EV3 Brick Error Symbols?

I am currently developing an EV3 robot that sorts colored technic beams. However, the brick will only run part of the program and then generate a strange error code on the brick's screen. The error ...
1
vote
0answers
63 views

Programming the LEGO Mindstorms T-Rex [duplicate]

I followed the instructions up to the MoveAbsolute My Block for the T-rex but I'm not able to link the last connection (Brake at End). Can anyone advise what I might need to change?
5
votes
1answer
2k views

Mindstorms 2.0 can't download to NXT brick with error 142023

Using Mindstorms education 2.0 on a Windows 7 computer I can't seem to get the program to see the NXT via USB or bluetooth dongle. When connected by USB nothing appears in the NXT window with device ...
0
votes
0answers
31 views

Use of Mindsensors IMU with Labview

I thought someone could help me with a the Mindsensors AbsoluteIMU ACG and its use with the Lego Mindstorms NXT. Is it possible to use it with and get data out of it?
1
vote
3answers
1k views

API for Android or iOS connecting to EV3 by bluetooth

There is official API for Windows, WindowsPhone8 and WinRT https://legoev3.codeplex.com/ it lets you connect to EV3 brick and control it remotely from your WindowsPhone. Are there any libraries ...
0
votes
0answers
40 views

How to transfer my F# exe file to NXT brick

I have developed a project in F# with MonoBrickFirmware library. I want to transfer the project to NXT brick, and run it.
0
votes
1answer
113 views

Execute program programmatically

I want to program our Ev3 for FLL (class assignment), and I want to use an object oriented approach in a very procedural environment. Is there a programmatic way to execute another program inside the ...
4
votes
2answers
346 views

Is there a microphone that works with Mindstorms EV3?

I'm planning to program my EV3 robot to do voice chat over VOIP using ev3dev and a Debian program. Is this possible? Are there microphones known to work with EV3, and has anyone had experience using ...
1
vote
2answers
143 views

Reading current motor speed, opOutput_Read

I'm trying to read current motor speed using direct command: Instruction opOutput_Read (LAYER, NO, *SPEED, *TACHO) Opcode 0xA8 Arguments (Data8) LAYER – Specify chain ...
1
vote
1answer
148 views

How to program light sensor to follow moving light using NXT

Cannot figure out how to simply program Lego Mindstorm NXT robot to follow another moving robot that has a bright LED light attached to it. Currently my programme looks like this:
2
votes
1answer
107 views

Trying to get a modified traffic signal challenge worked out

The challenge is for a robot to go around the perimeter of a rectangular field and execute 90 degree turns when it gets within 4.5 inches of a wall. Simultaneously, if the bot encounters a red flag, ...
1
vote
1answer
100 views

Lego EV3 - Get output device type, opOUTPUT_GET_TYPE

I would like to know what kind of motor (XL, L) is connected to EV3 output port (A|B|C|D). I need to use direct command: Instruction opOutput_Get_Type (LAYER, NO, *TYPE) Opcode ...
3
votes
2answers
509 views

Is it possible to edit a my block input parameter value?

I have created my blocks but want to change the input parameter to a negative. Is this possible or must all the myblocks be re-written?
3
votes
1answer
39 views

NXT brick not executing programs correctly

I have an issue that I am hoping someone might be able to resolve: We're using Mindstorms in the classroom as part of a STEM program and have one NXT brick that wont execute programs correctly. The ...
2
votes
1answer
102 views

How make robot turning going straight?

I have been struggling with this function for a while. I want my robot to turn left until it detects black then turn right until it hits black again. Then, I will divide the angle in half and call ...
3
votes
2answers
395 views

IDE recommendations for EV3 programming

Does anybody have any recommendations for non-GUI programming of the EV3 unit? I'm impressed by the LabVIEW software, but as a professional C# and VB.Net programmer (with C, C++ experience), I find ...
2
votes
1answer
298 views

can't send multiple commands to EV3 using Python

I want to use Python to send commands to an EV3 brick. In C++ things work as expected - for instance, this starts the motor on port A and then stops it after a while: #include <unistd.h> ...
1
vote
1answer
88 views

Teleoperated arm trouble

I have built a robotic arm with the lego Mindstorms ev3. My goal is to control its motion via teleoperation, that is , to have a gyro sensor strapped onto my arm and have the robot mimick the up and ...
1
vote
1answer
503 views

RGB sensor HOWTO use?

I've got an RGB sensor (this one with the three LED thingies) and wonder how to access it using NXC. I know I can SetSensorColorFull(IN_1); and then access it using ReadSensorColorEx or, for ...
0
votes
1answer
263 views

Guide me on how to use my Mindstorm RCX kit on OS X Mavericks

Any suggestions on how I can use my old RCX set on Mavericks? I have set up Xcode command line tools, and I am getting compiler errors while trying to download nqc through Macports. Even downloading ...
4
votes
1answer
314 views

How to build an automatic Lego train system?

I was wondering if anybody has ever tried using the IRLink NXT sensor to make an automated train system and if so, what kind of setup did you have to make it all work? I have been working on a train ...
2
votes
1answer
58 views

How to make NXT bricks communicate information?

Is it possible to connect, in some way, two NXT bricks that has program functions running on both. For example, Brick one would tell brick two that it is okay to start a program. Are there any sensors ...
3
votes
2answers
71 views

Is there a time mechanism that can be added to an NXT program?

I wanted to create a system where an NXT block would be set into function at a certain time of day (maybe 5:00 and then 5:10 and so on). I would want the timing function to be embedded into the NXT ...
1
vote
1answer
261 views

EV3 Event Delegation

My problem is that the robot, which should just remain in the program until the Escape Button is pressed, just stays in the while-loop. The current code looks like this: using System; using ...
1
vote
1answer
589 views

EV3 parallel MyBlocks, but only one working

TL;DR = Is there any obvious reason why a MyBlock, added twice in parallel to a program, will only run one of them? In my EV3-G program, I have a MyBlock which uses the Proximity Heading to control ...
2
votes
3answers
1k views

What is a normal range of reading of the Light Sensor using EV3 Raw Sensor block?

EV3 software does not support the Light Sensor. It does support the Color Sensor. The solution is to use the Raw Sensor Block. What is "normal" for raw sensor block readings? I'm getting readings ...
5
votes
1answer
157 views

Pass sensor or motor port number as a parameter

I want to create a block for one light sensor or one motor separately. Is it possible to give the number of the port as a parameter to a sensor or motor block via data wire? In NXT-G it was possible.
4
votes
2answers
212 views

How can I find the analog output of a color sensor?

Could anyone provide me with an image of the voltage output of an NXT or EV3 colorsensor. I would like to have the analog output if it's possible, and not the digital output.
0
votes
1answer
67 views

I can’t run the NXT 1.0 program software on my Mac version 10.6

How do I fix this? I run the install program, restart my computer, go to the “Applications” folder and there is a folder named “LEGO MINDSTORMS NXT”. I open the folder and there are three “options”: a ...
5
votes
2answers
2k views

How to program two NXT motors to run at the same time?

I'm working on a project with multiple axis of movement… trying to get two motors to run at the same time in order to achieve a mix of two!
0
votes
1answer
150 views

Are variables always global with NXT?

New to NXT software. What I'm trying to do is get my motor to go one of 5 distances, but I'm not sure how to choose between those actions. What I thought of was setting 5 variables to 5 sensors. The ...
2
votes
1answer
207 views

NXT Programming not working

I recently got back into NXT stuff (keep in mind I have a NXT 1.0). My screen was broken,but got that fixed. The software works,but I think the programming doesnt. I made it so If I push a button,the ...
2
votes
1answer
117 views

NXT brick erratic programming behavior

I think I have a defective NXT brick. It has been programmed to move in a direction for 1 second, wait 1 second and then move in the reverse direction for 1 second. The code downloads on another ...
6
votes
2answers
344 views

Ultrasonic problems with the red and blue balls?

I'm still new to NXT, I try to make the robot locate a ball using the ultrasonic sensor, while there I should be in a square area marked by white color. How can I make the robot locate the object (by ...
6
votes
1answer
213 views

Is there a way to change the Lego NXT sensor polling frequency?

I am using LEGO NXT 2.0 with the native NXT flowchart-style programming environment, I would love to be able to poll the sensors more frequently. (In particular, it seems that the light sensor is ...
7
votes
1answer
431 views

How can I power an NXT motor without the NXT brick?

I know almost nothing about robotics, so I was wondering how can I power the nxt motor without using the nxt brick, and how can I send signals to it?
5
votes
1answer
493 views

Program a full rotation of a NXT motor in X seconds

I'm interested in mimicking the functionality of the Arqball Spin, at $60 it isn't cheap so I'd like to make the most out of my Mindstorms parts. I'd like to use NXT-G to program a motor to rotate ...
4
votes
1answer
2k views

Can you program an RCX using the Mindstorms NXT 2.0 software?

I was asked to teach a robotics class and found several RCX bricks in storage. Can I use these bricks with the Mindstorms NXT 2.0 software? If not, what would be the software I would need to use the ...
8
votes
1answer
264 views

NXC Saturation algorithm for limiting motors?

What is a good algorithm in NXC for control saturation? I want to make sure my motors don't turn past a certain angle, or they will break the model. I could do something like: if (angle > 45) ...
6
votes
0answers
217 views

PosRegEnable - How to change motor parameters?

I want to set PID parameters for a faster 'attack' when using PosRegEnablePID() on a motor. I am compiling with nbc/nxc 1.2.1 r4 mac osx fatbinary using -Z2 and -EF flags. But the compiler says: # ...
6
votes
1answer
527 views

NXT brick output ports not working properly

My NXT brick will not let motors run. When I download a program the motor will move forward and backward and then stop - sort of a wiggle. Another motor will not work at all. This happens for all ...
6
votes
1answer
244 views

NXT motor power accuracy

When turning the motors, how precise is the speed parameter? I am programming in the NXC language (standard firmware) and wishing to know how many decimal points will be taken, if any, and whether the ...