Tag Info

Hot answers tagged

5

If the ultrasonic cannot echo-locate the objects because they're too small, even with the sensor suspended very close to the floor, I suggest using a very sensitive feeler out front. It can be sticking forward like a jousting lance, and your robot can swivel back & forth while traveling to scan. The trick to making it very sensitive is to: (1) make it ...


2

Not right now. RobotC support is already there ( although it isn't free ).


2

Maybe you should look into using a multiplexer to add additional sensors to an NXT brick. The Hitechnic Sensor Multiplexer lets you connect 4 sensors using only 1 of the NXT connection. The same thing can be done with motors. For example using the Mindsensors NXTMMX, you can add 2 additional motors per multiplexer (even better, if you daisy-chain the ...


2

By "smoother limit", if you mean "when it gets closer to the limit, it will softly land there by slowing down" then: I recommend using PID control where the response (how fast the motor is moving to the limit) is controlled proportional to the error (how far away from the limit you are). Wikipedia has a good intro to PID control: ...


2

PosRegSetAngle should set the position of the motor relative to the position the motor was in when regulation was enabled. In what way didn't it work when you tried this? It sounds like you may be asking how to wait for the rotation to finish. I'm not sure if there is a built-in way to do this in NXC or not, but I think that something along these lines ...


2

NXC creates bytecode for the standard (or NXC upgraded) NXT virtual machine. The idea of this virtual machine is to create an abstraction layer to prevent malicious low level calls such as accessing memory registers on the processor. So, without a low level compiler, such access would not be possible.


2

Not sure what language you are using, or calls you are making before this, but: float var_Min = var_R; if (var_G > var_Min) var_Min = var_G; if (var_B > var_Min) var_Min = var_B; Should be (note the use of < rather than >) float var_Min = var_R; if (var_G < var_Min) var_Min = var_G; if (var_B < var_Min) var_Min = var_B; Your posted code ...


2

Yes, it is possible. Have a look at the "Comm module functions" section of the NXT help file. For example, since the touch sensor status is a boolean value, you could use the SendRemoteBool and ReceiveRemoteBool functions. You can communicate wirelessly using the Bluetooth functions (BT*) or you can have a wired connection using RS485 by connecting input ...


1

NXC compiles to machine code that runs in a virtual machine running on the NXT. The EV3 has a completely different virtual machine that is not compatible. So, of course programs compiled for the NXT will not run on the EV3. The developer of NXC and BrixCC started working on support for the EV3 when it first came out, but has not been actively working on it ...


1

To understand how to use the data, it help to understand how the color sensor works. Let's take a step back for a minute and have a look. The sensitive electrical component here is just a photodiode or phototransistor that lets us measure light intensity. If we turn all of the LEDs off we are just measuring ambient light. If we turn on just one of the LEDs ...



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