Tag Info

New answers tagged

0

There is a LabVIEW block for the NXTBee. For example, here is a tutorial from the manufacturer.


5

The NXT actually uses IEEE 794 32-bit floating point number format in little endian byte order. I like using this site for conversions. So, to decode your messages: TX: 00 09 00 05 60 EA 00 00 00 Byte 0: 0x00 - response required Byte 1: 0x09 - write message command Byte 2: 0x00 - Mailbox 1 Byte 3: 0x05 - Message size of 5 bytes Bytes 4-7: 0x60 ...


0

Check your motors. I had the same problem due to one motor being older than the other. Try to match motors which have a similar age or usage. If this is not possible, use a gyro sensor. Also, check the center of gravity. This can cause wheel slippages.


2

It could be that one wheel slips more than the other. This happens when the tires get dirty. Also, you can adjust your center of balance so that more weight is on the drive wheels and they will slip less. You can also use the gyro sensor to compensate for any slippage of the wheels.


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 ...


0

The following works if you just want the builtin six/seven colors, without any calibration. task main() { SetColorSensorFull(S3); while(true){ int value=Sensor(S3); // value now contains 1 for black, 2 for blue, 3 for green, 4 for yello, 5 for red, 6 for white, and something else for an unknown color. } However, if you want to do ...


0

I'm not entirely sure if you need the raw data, but if you're just looking to read the different colour values, there is a much easier way. To turn on and set up the sensor, use SetSensorColorFull(S3);. Then to retrieve the value just use Sensor(S3). The value returned will be an integer from 1 to 6, corresponding to the following colour values: 1 = black ...


0

Control loops. The builtin RotateMotor commands are very imprecise. Have a look at this file for a nice library that makes skid steer vehicles turn very precisely: https://www.dropbox.com/s/o31qaxx0glx4m3x/Instacode.h?dl=0 You'll need to adjust the constants at the top of the file.



Top 50 recent answers are included