We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [programming]

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.

Filter by
Sorted by
Tagged with
2
votes
1answer
394 views

Absolute Turning Motor in NXC

How can I turn my motor to 123 degrees, not for 123 degrees? I tried the PosRegSetAngle("output", "angle") command and didn't work. Documentation for PosRegSetAngle
2
votes
1answer
204 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 ...
2
votes
2answers
1k views

Can I program EV3 with the NXT-G IDE?

I am helping prepare a team for First Lego League and the new EV3 kit is what will be used. We are currently teaching the kids with NXT 2.0 kits that we have using the NXT-G IDE. It appears that we ...
2
votes
1answer
72 views

How to distinguish between objects using a sonic sensor?

I am trying to find a ball in the field, grab it, and drop in the specified area. I'm using an ultrasonic sensor on the front of the robot. My current solution for locating the ball is: Turn ...
2
votes
1answer
555 views

What is a better algorithm for wall following with an ultrasonic sensor?

This wall following algorithm uses the ultrasonic sensor. It has a horrible worst case behavior. Place the robot about 3 cm too far from the wall. Instead of moving closer to the wall, the robot ...
2
votes
1answer
274 views

EV3 Programme won't load to brick

I have installed EV3 on my PC and am trying to load a program into an NXT 1 Brick. When I click the down load button on the EV3 screen the Brick beeps twice and the program does not load. What am I ...
2
votes
1answer
220 views

Tufts MAZE LabView Program Will Not Run on EV3

Through the 2012 LabVIEW for LEGO software package, I found an example of a maze from Tufts. I cannot get it to run on an EV3. It appears to just constantly execute the initialization. How can I ...
2
votes
3answers
5k views

Programming NXT color sensor with NXC?

Currently I am working Lego robot that solves 2x2x2 Rubik's cube. I am programming Lego Mindstorms NXT 2.0 color sensor in BricxCC. I already have RGB data with the command ReadSensorColorRaw. I ...
2
votes
0answers
36 views

When the Chromebook crashes after coding the color sensor switch, what can I offer students to do for troubleshoot this consistent problem?

When students use the switcher block to program the color sensor on their Chromebooks, the app crashes. We have all accessibilities turned off and ChromeOS updated. What other troubleshooting steps ...
2
votes
0answers
60 views

Rearing off to the left without telling it to

I've started to build a robot, but when it drives it veers off to the left even though I'm just telling it to go straight. I think I need to do something to the motors but I don't know what or how. I'...
2
votes
0answers
37 views

NXT Mindstorms software glitch

My FLL team was doing some practice programming exercises this morning. One group wrote a program using color sensors, no issue. The next group opened a new program window and attempted to open a ...
2
votes
0answers
319 views

Creating custom blocks using EV3 block developer kit

I am trying to develop a custom block using ev3 block development kit but i get nowhere. I created the XML files according to the documentation and the VIX file but it does not compile, I cannot ...
2
votes
0answers
1k views

Bluetooth connection to EV3 from Java on Linux/Android

I would like to connect to my EV3 from PC (and then Android) via Bluetooth. I was able to connect to NXT with LEGO-MINDSTORMS-MINDdroid which uses direct LCP commands but as far as I know the ...
2
votes
0answers
189 views

NXT (NXC) Programs are too slow

I am using Bricx Command Center to write some NXC code for a side project. I am working with the MindSqualls C# Library in Unity and am trying to figure out some ways to use the NXT robots in an event-...
2
votes
0answers
363 views

How to determine orientation of a EV3 gripper?

I have built the EV3 Gripper using the manual. I am programming an ev3 brick using ev3dev. I need to determine the angle/direction/orientation of the robot programmatically, before I can issue a ...
2
votes
0answers
160 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?
2
votes
0answers
211 views

After adding a MyBlock icon to the EV3 palette of MyBlock icons, how can the new icon be associated to an existing MyBlock?

After following the advice given in adding a MyBlock icon to the EV3 palette, can the icon be associated to an existing MyBlock? Something better than copy/paste the contents of the existing MyBlock ...
2
votes
0answers
329 views

Ideas for large NXT projects [closed]

I currently have 6 NXT sets. Can anyone think of some large scale projects that I could attempt using most of the NXT bricks and pieces together?
1
vote
2answers
108 views

What does this symbol on the EV3 Brick mean?

I can’t figure out how to get my R3PTAR to open and close it’s mouth to bite. I keep getting this symbol. What does it mean?
1
vote
1answer
143 views

Program for NXT golf robot not looping properly

This is what I made: I will put this robot straight in line with the ball I have to make this robot go forward and once it reaches the ball, I have to make it stop and hit the ball with the swing ...
1
vote
2answers
2k views

How can I create custom EV3 blocks?

What do I need to create custom blocks and in particular the VIX part?
1
vote
1answer
819 views

Raw RGB data to Color?

I'm trying to convert the raw RGB values from a Colour Sensor into HSL but it doesn't seem to be working: R = rgbn[INPUT_RED]; G = rgbn[INPUT_GREEN]; B = rgbn[INPUT_BLUE]; var_R = ( R/255 ); var_G = ...
1
vote
3answers
549 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
60 views

Unsure of how to use a switch that is time dependent

Have been trying to make a line follower that can autocorrect itself if it would lose the line. The follower is supposed to turn around, go forward and catch the line if the line has not been detected ...
1
vote
1answer
199 views

EV3 does not react to commands (sent via bluetooth) after 1.7 seconds

Short description: I want to send commands via bluetooth to an EV3 brick from a Linux computer. I use python to send bytecodes via bluetooth and not any EV3-specific software Pairing the device was ...
1
vote
1answer
820 views

A 90 degree turn with 56145

I'm making a program for my ev3rstorm and I want it to have a 90-degree spin turn. I use the standard part ev3rstorm wheelbase or rather, treadbase. Using the move tank block (I use that block all the ...
1
vote
1answer
298 views

Site or example project / downloadable programme resource anywhere for the EV3 mindstorm?

There seems to be lots of available examples for the NXC version, but I can't find anything for the EV3. I thought that there would be a load of example project files with the software but there's ...
1
vote
2answers
598 views

Which program do I use to program my rcx 1.0 or 1.5

I am getting an RCX and I know it is ether a 1.0 or a 1.5. Which program do I use to program my RCX?
1
vote
1answer
192 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 ...
1
vote
1answer
400 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 ...
1
vote
1answer
388 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
911 views

“The type or namespace name ”Brick“ could not be found” Xamarin Studio with MonoBrick

I managed to establish a wifi connection with the Ev3 Brick via WinSCD and am programming the Ev3 with XamarinStudio/Mono Develop(http://xamarin.com/studio "XamarinStudio"). My problem is that "The ...
1
vote
0answers
66 views

iNXTG app programming NXT from ipad

I'm trying to find the old iNXTG to program NXT bricks via iPad but it is no longer available in the Apple Store. Does anyone know if there exists an archive for programs like that? The problem is ...
1
vote
1answer
82 views

How to send through Bluetooth motor angle position and mirror that position on another motor?

I've built a steering wheel that checks the servomotor position using NXC function - MotorRotationCount(). Now, I want to send that position to second brick using Bluetooth and apply that servomotor ...
1
vote
0answers
82 views

Function in EV3 Basic

I have been programming in basic for ~30 years. I want a translation of the following code into EV3 Basic: function index( x , y ) return x + y * ( maxx , + 1 end function sub look for i = 0 ...
1
vote
0answers
107 views

Use of Mindsensors IMU with Labview [closed]

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?
0
votes
1answer
366 views

How do I get started with Mindstorms NXT 2.0? [closed]

I need help programming a NXT 2.0 Lego Mindstorms. I want to make the robot turn, stop, go back, etc. when the color sensors see certain colors. For example when the robot sees red it stops then turns....
0
votes
1answer
36 views

EV3: Detect distances over 255cm with ultrasonic sensor?

In my use case, I have to detect things about 3-4 meters. I don't need to be accurate, +-2 or 3cm is enough. The EV3-G and most other places have a max distance of 255cm, which I understand that it is ...
0
votes
1answer
128 views

Using two color sensors simultaneously

I am new to the world of robotics, and I'm preparing a new project with my students. Our goal is to make a self driving robot that can read colored signs from the road in order to turn right or left a ...
0
votes
2answers
123 views

Can't link variable inside a switch when creating a new block

I have a problem when connecting the variable (from the create a block) to a variable in the function because it's inside a switch. How can I link them? I want to connect the variable to each (20) in ...
0
votes
1answer
128 views

How I can program a solar panel heliostat? [closed]

I want to make a program for an EV3 solar heliostat. It consists of two motors and a color sensor. I want it to follow the light. The station is fixed. EV3SolarStation pdf
0
votes
1answer
108 views

Bazooka blast ev3 Mindstorms using Python

I would like to shoot balls with the ev3 Lego robot. How can I code it using Python? Which components do I need for that and which function and motor use ?
0
votes
1answer
2k views

How do I rename an EV3 project?

I can rename the program in the Home Edition software but I just can't rename a project. Please tell me how to do it. Thanks!
0
votes
3answers
2k views

PC control Ev3 robot

I wanted to see if I could control my robot with a PC and I wanted to know if there was a way to do it. I have already searched for a controller for the PC and didn't find anything.
0
votes
1answer
718 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 ...
0
votes
1answer
51 views

using a remote control

I have just started to get into using a LEGO Mindstorms EV3 robot. I know you have to create a program on the laptop, then it has to be downloaded to the EV3 block. Can you use a remote control to ...
0
votes
1answer
54 views

NXT light sensor homework help

Read value from NXT kit using light sensor and show it in the middle of NXT screen. If measured lightness value is less than or equal to 50, right motor will stop and left motor will move with the ...
0
votes
1answer
317 views

EV3 Program - Menu

I've been trying to make a menu that when you press the < button on the block it will start and > to stop. The menu wil only occur at the start also, it will not be ongoing. I've attempted to use ...
0
votes
1answer
1k views

How to parameter the ports in move tank block EV3?

How do I parameter the ports at Move Tank block (in My Block)?
0
votes
2answers
142 views

Don't know how to call this but

I want to make a program that does a few things in a random order: I have this so far: The problem here is... I have set the switch block with the random number block to 3 different programs to run. ...