segunda-feira, 27 de julho de 2020

NXT-G - blocos de sensores...

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

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.

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, 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.
or here:

  1. 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" 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.
  2. Download one or more NXT-G block packages from the dropbox link at the top of this post.
  3. Right click each downloaded .zip folder, click Extract All. Remember where you're extracting your blocks to (usually your downloads folder).
  4. Open the NXT software. On the top menu bar, click Tools -> Block Import and Export Wizard.
  5. 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.
  6. 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.

These blocks simply add specialized functionality and do not require any specific 3rd-party hardware.
  • "High Performance"
    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"
    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.
  • "Advanced"
    Originally from NXTASY.ORG (author unknown), HiTechnic, and Steve Hassenplug
    • 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"
    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.
  • ""
    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.
  • ""
    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"
    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.
    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 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.
  • "Codatex"
    Official Codatex RFID Sensor NXT-G block.
  • "Dexter Industries"
    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" 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" 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"
    Official POB Bridge NXT-G block. Requires a POB-NXT Bridge and (optionally) a POB-Eye Camera.
  • "Vernier"
    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"
    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

I suggest starting with Guy Ziv's "Template VI Library" in the dropbox repository linked above. You can read more about how to use it here.

quinta-feira, 16 de julho de 2020

O RCX :o software original (parte I) - Software Robolab e RCX Code

O RCX foi divulgado em 1998. Para o programar foram criados dois softwares pela LEGO, e parceiros: O RoboLab e o RCX Code. O primeiro era utilizado com os conjuntos da gama RoboLab, mais tarde, Mindstorms for Schools. O segundo era vendido com os conjuntos da gama Mindstorms - Robotics Invention System (RIS), os quais forma criados para o consumidor final (não para as escolas).

O RoboLab conheceu diversas versões em diversas línguas, sendo a sua última versão a 2.9.4c. Penso que a última versão suportava 12 línguas (inglês, dinamarquês, norueguês, sueco, espanhol, português, alemão, holandês, francês, chinês, russo e japonês).

RCX was released in 1998. To program it, two software were created by LEGO, and partners: RoboLab and RCX Code. The first was used with the sets of the RoboLab range, later Mindstorms for Schools. The second was sold with Mindstorms - Robotics Invention System (RIS) sets, which were created for the final consumer (not for schools).

RoboLab has known several versions in different languages, the latest version being 2.9.4c. I think the latest version supported 12 languages ​​(English, Danish, Norwegian, Swedish, Spanish, Portuguese, German, Dutch, French, Chinese, Russian and Japanese).

RoboLab 2.5 CDROM

RoboLab 2.5.2 Software

RoboLab 2.9 CDROM

RoboLab 2.9.4 Software

O RCX Code teve unicamente 3 versões, correspondentes aos conjuntos RIS 1.0, 1.5 e 2.0. respetivamente versão 1.0, 1.5 e 2.0. A versão última, a 2.0, saiu em inglês, alemão, holandês, francês, japonês e italiano.

The RCX Code had only 3 versions, corresponding to the RIS 1.0, 1.5 and 2.0 sets. version 1.0, 1.5 and 2.0 respectively. The latest version, 2.0, came out in English, German, Dutch, French, Japanese and Italian.


RIS 1.0 Software


RIS 1.5 Software


RIS 2.0 Software

"Welcome to the LEGO® Education Community"... um espaço novo, mesmo na hora certa

A LEGO® Education criou no passado mês de junho um espaço online de partilha de experiência entre educadores, pais e gestores de educação.  Vale a pena se inscrever e contribuir para a construção de soluções em equipa.
Clique na imagem acima para aceder ao espaço online.

Last June, LEGO Education created an online space for sharing experiences between educators, parents and education managers. It is worth signing up and contributing to building team solutions.

Click on the image above to access the online space.

quinta-feira, 25 de junho de 2020

Robolab - cartazes para a sala de aula

Embora possua na minha sala de aula 3 destes cartazes (os 3 últimos e vieram quando se comprou o primeiro conjunto, no caso 9794), é graças ao site do brinklink que consigo identificar os restantes cartazes editados.
Assim sendo, aqui vão eles, sendo que os 3 últimos são datados de 2002.

Although I have 3 of these posters in my classroom (the last 3 came when the first set was purchased, in case 9794), it is thanks to the brinklink website that I can identify the remaining edited posters.

So, here they go, with the last 3 dating back to 2002.