Colaborei no espaço Reddit, com o utilizador u/MindS1, no listar de todos os blocos para sensores do LEGO NXT. Como este trabalho é muito útil para os docentes que usam NXT com sensores quer da Lego quer de terceiros, deixo aqui o post original com links para fazerem o download de todos os blocos que foram compilados bem como o modo de os instalar. O trabalho original é inglês, e deixo aqui na sua língua original.
I collaborated in the Reddit space, with the user u / MindS1, in the list of all LEGO NXT sensor blocks. As this work is very useful for teachers who use NXT with sensors from either Lego or third parties, I leave here the original post with links to download all the blocks that were compiled as well as how to install them. The original work is English, and I leave it here in its original language.
"Over the years, Lego and various 3rd parties have created many add-in blocks for the graphical NXT-G programming environment. To keep the platform alive, I'm putting my personal collection up for download."
UPDATES
Big thanks to /u/leonardoverde for helping collect NXT-G blocks from many additional hardware suppliers!
11/26/19 - added hardware support packages for HiTechnic, Vernier, LogIT. Added a few additional math blocks.
11/30/19 - added hardware support packages for Dexter Industries, Codatex, and POB.
Big thanks to /u/leonardoverde for helping collect NXT-G blocks from many additional hardware suppliers!
11/26/19 - added hardware support packages for HiTechnic, Vernier, LogIT. Added a few additional math blocks.
11/30/19 - added hardware support packages for Dexter Industries, Codatex, and POB.
DOWNLOAD
For use with any version of the Lego NXT programming software (but NOT the EV3 programming software). These are programming blocks originally from various sources such as Lego.com, Team Hassenplug, NXTASY.ORG (The original forum, before it went offline), and HiTechnic, mostly from the 2006 to 2012 era. Most of these cannot be found on the internet anymore, so I decided to upload the ones I've collected over the years.
You can download them from here:https://www.dropbox.com/sh/y0sigzqhhtxio2a/AADsdAMyuITsMbYKJuFrn5zba?dl=0
or here:
https://drive.google.com/file/d/1XKGXuLAgJhvEkDda_W9w6LXsi5FDVKB7/view?usp=sharing
HOW TO INSTALL NXT-G BLOCKS:
- If using NXT-G 1.1 or 2.0 skip to step 2. If using the original NXT 1.0 software, download the "Dynamic Block Update.zip" at the link above.
Right click -> Extract All.
Run "Dynamic Block Update\Products\LEGO MINDSTORMS NXT Dynamic Blocks Update\NXT_3RD_PARTY\3rdPartyUpdate.msi" to install the package into the NXT-G environment.
Later versions of the NXT-G software come with the Dynamic Block Update already installed. NXT-G 1.0 users can alternatively download and install the full NXT-G 2.0 software from the official source. NXT-G 2.0 is fully backwards-compatible with NXT 1.0 hardware and software. - Download one or more NXT-G block packages from the dropbox link at the top of this post.
- Right click each downloaded .zip folder, click Extract All. Remember where you're extracting your blocks to (usually your downloads folder).
- Open the NXT software. On the top menu bar, click Tools -> Block Import and Export Wizard.
- Click Browse and navigate to the place where the blocks were extracted, click OK. The list should find all the NXT-G blocks in that location.
- Click the blocks you want to import (ctrl-click to select multiple). Select a pallette to add the blocks to (Common, Action, Sensor, Flow, Data, or Advanced, your decision). Click import then restart NXT-G.
You should now have new NXT-G blocks to use.
NXT-G FEATURE BLOCK PACKAGES
These blocks simply add specialized functionality and do not require any specific 3rd-party hardware.
- "High Performance Actions.zip"
Official Lego NXT-G blocks. These blocks use less memory on the NXT than the original action blocks, and might result in faster code execution (untested).- Display Performance: Same as Display block, but less memory.
- Motor Performance: Same as Motor block, but less memory.
- Move Performance: Same as Move block, but less memory.
- Sound Performance: Same as Sound block, but less memory.
- "Advanced Display.zip"
Originally from NXTASY.ORG (author unknown)- Advanced Display Image: Allows passing parameters to .ric image files (for use with RICEDITv2).
- Advanced Display Text: Adds multiple fonts and sizes for text display.
- Advanced Display Number: Displays a number (EG from a sensor) with a caption.
- Display Time: Not sure, could not get it working.
-
- Average Block: Computes a running average of the past n samples. Intended to be used inside a loop and provided a new input value every iteration.
- Bit Logic: Provides bitwise AND, OR, NOT, XOR
- HTAtan2I (Integer math, for NXT-G 1.0): Arctangent (tan-1) function. Calculates angle from a coordinate pair.
- HTAtan2 (Floating-point, for NXT-G 2.0 ONLY): Arctangent (tan-1) function.
- HiTechnic Limit Number: Clamps a number to be within upper and lower bounds. Provides presets for power levels (0 to 100) and angles (0 to 360).
- HTSinCosI (Integer math, for NXT-G 1.0): Sin and Cos functions.
- HTSinCos (Floating-point, for NXT-G 2.0 ONLY): Sin and Cos functions.
- MinMax: Intended to be used inside a loop and provided a new input value every iteration. Outputs the minimum and maximum values the block has seen since the loop started.
- MathScript Block: Combines many math operations into one block. See help for usage.
- POW: Raises a number to a power.
- Square Root: Calculates square root of a number.
- SRand: Outputs a random number. Given a constant seed the program will output the same sequence of random numbers every time it is run.
- "Advanced Text Manipulation.zip"
Originally from NXTASY.ORG (author unknown).- Text Compare: Outputs TRUE if the two text inputs are the same.
- Text Contains: Outputs TRUE if text 1 contains text 2.
- Text Length: Outputs number of characters in the text input.
- Text Subset: Outputs a segment of the input text (substring function).
- Text to Number: If the input text is a number, outputs that number. Opposite of "Number to Text" block.
- "Datalogging.zip"
Originally from NXTASY.ORG (author unknown).- Datalog: Records values from up to 4 sources (usually sensors) to a Comma-Separated Values (.csv) file on the NXT. Intended to be used in a loop and provided new values every iteration. Can use the "Upload Datalog" button on the Datalog Block OR the "Upload File" tool in the NXT manager to get the datalog file onto your computer. Data can be viewed with any spreadsheet program like Excel.
- "IIC.zip"
Blocks for low-level I2C communication. For use with custom sensor hardware. Originally from Steve Hassenplug.- IIC Read: Reads a register from an I2C device at the specified address.
- IIC Write: Writes a value to a register in the I2C device at the specified address.
- IIC Multiple Read: Reads multiple times.
- "Power and Memory.zip"
Originally from NXTASY.ORG (author unknown), HiTechnic, and Steve Hassenplug.- Battery Level: Outputs the battery voltage in millivolts (mV).
- HTMotorPID: Allows finer control over the motor position regulators.
- Line Following Block: Implements a basic threshold-turn line follower algorithm in a single block. Intended to be looped, and (supposedly) offers higher performance than the equivalent in separate blocks.
- Memory Level: Outputs the number of bytes left in flash memory on the NXT. Useful in conjunction with the Datalog block (can stop datalogging when storage fills up).
- Motor Power Meter: Outputs a number representing how fast a motor is moving (0-100) compared to how fast the NXT expects it to be moving based on its power setting. Can be used to detect motor stalls.
- RS485.zip:
Originally from Dexter Industries.- RS485 Comm Block: All NXTs have an RS485 chip behind port 4 which can be used for high speed data transmission. Can be used to communicate with other NXTs (simply connect both port 4's using a standard NXT cable) or to communicate with other RS485 devices.
NXT-G HARDWARE SUPPORT PACKAGES
NXT-G blocks for specific hardware (sensors/motors/multiplexers/etc).
- "Legacy Blocks (RCX Compatibility).zip"
Official Lego NXT-G blocks (originally the Legacy Block Library). Provides support for RCX motors and sensors on the NXT via a converter cable.- Lamp (*): Control brightness of a 9V light bulb brick.
- Motor (*): Control power to a 9V motor. Link to a RCX gear motor, also works with the RC motor, train motors, micro motor, and Power Functions motors (requires additional 9V to PF converter cable).
- Light (*) Sensor: Read the RCX Light Sensor.
- Touch (*) Sensor: Read the RCX Touch Sensor.
- Rotation (*) Sensor: Read the RCX Rotation Sensor.
- Temp (*) Sensor: Read the RCX Temperature Sensor.
- "Codatex Hardware.zip"
Official Codatex RFID Sensor NXT-G block. - "Dexter Industries Hardware.zip"
Official Dexter Industries NXT-G blocks, for home edition and educational versions of the software (education versions include datalogging support). Also includes some documentation and example code. Package contains sensor blocks for the following:- dCompass Sensor
- dFlex Sensor
- dGPS
- dIMU
- dLight
- dPressure Sensor
- Dexter Industries NXTBee
- Dexter Industries Thermal-Infrared Sensor
- Dexter Industries Thermometer
- "HiTechnic Hardware.zip" Official HiTechnic NXT-G blocks. Package contains sensor blocks for the following:
- HiTechnic Acceleration Sensor
- HiTechnic Angle Sensor
- HiTechnic Barometer
- HiTechnic Compass
- HiTechnic Color Sensor
- HiTechnic EOPD
- HiTechnic Force Sensor
- HiTechnic Gyro
- HiTechnic IR Seeker V1
- HiTechnic IR Seeker V2
- HiTechnic IR Receiver
- HiTechnic IR Link: Separate blocks for power functions, train, RCX, RCX numeric messages
- HiTechnic Prototype Board
- HiTechnic Passive Infrared (PIR) Sensor
- HiTechnic Sensor Multiplexer: Also adds SMUX-compatible Touch, Light, Sound, Ultrasonic sensor blocks
- HiTechnic SuperPro Development Board
- HiTechnic Touch Sensor Multiplexer
- "LogIT Hardware.zip" Official LogIT NXT-G blocks. LogIT sensors require a LogIT sensor adapter. Package contains sensor blocks for the following:
- LogIT Acceleration Sensor
- LogIT Barometric Sensor
- LogIT CO2 Sensor
- LogIT Current Sensor
- LogIT Electrosmog Sensor
- LogIT Humidity Sensor
- LogIT Infrared Sensor
- LogIT LUX Sensor
- LogIT Movement Sensor
- LogIT pH Sensor
- LogIT ProTemp Sensor
- LogIT Radiation Sensor
- LogIT Voltage Sensor
- "POB Hardware.zip"
Official POB Bridge NXT-G block. Requires a POB-NXT Bridge and (optionally) a POB-Eye Camera. - "Vernier Hardware.zip"
Official Vernier NXT-G block. Vernier sensors require a Vernier Sensor Adapter (also here). See the official page for supported sensors. Choose a sensor from the NXT-G block configuration menu. - "Techno-Stuff Hardware.zip"
Official Techno-Stuff NXT-G blocks. Package contains sensor blocks for the following:- Techno-Stuff IR Flame Sensor
- Techno-Stuff Motion Sensor
- Techno-Stuff Pressure Sensor
- Techno-Stuff UV Flame Sensor
MAKING YOUR OWN NXT-G BLOCKS USING LABVIEW
I suggest starting with Guy Ziv's "Template VI Library Block.zip" in the dropbox repository linked above. You can read more about how to use it here.