Visualizzazione post con etichetta sw. Mostra tutti i post
Visualizzazione post con etichetta sw. Mostra tutti i post

venerdì 14 marzo 2008

programmare giochi sullo schermo del NXT

tutorial preparato da Guy su nxtlog che spiega come programmare piccoli videogames in NXT-G

lunedì 18 febbraio 2008

matlab toolkit

questa e' la notizia del giorno: anche all'universita' di Aachen hanno sviluppato per NXT un toolkit per matlab (opensource GNU GPL scaricabile gratuitamente)

aachen

non mi sembra pero' niente paragonato al ECR-NXT


ps: se si ha matlab basta questo

venerdì 15 febbraio 2008

allargatore di loop


Un problema tipico con NXT-G e' quello di far stare i blocchi nei loop che si stringono attorno al loro contenuto e diventano scomodissimi.
B. Davis ha escogitato il trucco di allargarli artificialmente inserendo di proposito dei blocchi con hub molto lunghi (per poi toglierli alla fine).

Ho preparato con Labview un bel block che non fa nulla, ma ha un hub bello lungo (piu' dell'altezza della pagina).

sabato 19 gennaio 2008

come comandare il NXT con visual basic

da quando Visual Basic e' gratis su msn ...

venerdì 11 gennaio 2008

ancora frammenti dal genio b davis

e qui
http://www.brickshelf.com/cgi-bin/gallery.cgi?f=191310&n=46

giovedì 10 gennaio 2008

simulatore NXT

questo e' veramente incredibile. mostra la simulazione del NXT.
occorre pero' matlab > 2006a
scaricabile a
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=13399&objectType=file

per il firmware:
http://lejos-osek.sourceforge.net/

martedì 8 gennaio 2008

elenco blocchi NXT-G scaricabili

Here’s a compilation of all available NXT-G blocks NOT included in the NXT-G software installation. Guy Ziv divided these into groups corresponding (more or less) to the ‘Pallete’ for which these should be imported.


Note that in order to use these new blocks, you need to have the Dynamic Block Update installed. You can download it from http://mindstorms.lego.com/support/updates/


Action

























































NameDescriptionCreatorVer.Link
Display

Number
Display a caption and a number on the NXT screen Steve


Hassenplug
1.0click

me
Display TimeDisplay the value of a timer in minutes and seconds Steve

Hassenplug
1.0click

me
Mindsensor

MotorMux
NXT-G block for mindsensors motor multiplexer (MTRMX-Nx)mindsensors 1.0click

me
Line

Following
Make your robot follow the edge of a line using a single light sensor Steve

Hassenplug
1.0click

me
RCX to NXT

communication

adapter
NXT-G block for mindsensors RCX to NXT communication adapter.mindsensors 1.1click

me
Mini Block

Library
Mini Move, Mini Motor, Mini Display and Mini Sound - optimized blocks for smaller programs LEGO 1.0click


me

Sensor




























































































































NameDescriptionCreatorVer.Link
Memory

Level
Find how much Flash is available Guy Ziv 1.0click

me
Battery

Level
Find how much power your NXT has Guy Ziv 1.1click

me
Motor Power

Meter
Measure actual power sent to NXT motors - detects stall and slip Guy Ziv 1.0click

me
HiTechnic


Acceleration

Sensor
NXT-G block for HiTechnic acceleration sensor HiTechnic 1.0click

me
Mindsensors


Pressure

Sensor
NXT-G block for mindsensors pressure sensor (PPS35-Nx)Mindsensors 1.0click

me
HiTechnic


Color

Sensor
NXT-G block for HiTechnic color sensor HiTechnic 1.0click

me
HiTechnic


Compass

Sensor
NXT-G block for HiTechnic compass sensor HiTechnic 1.1click

me
mindsensors


PS2 controller

interface
NXT-G block for mindsensors PS2 controller interface (PSP-Nx) Guy Ziv 1.1click

me
Sharp IR


sensor
NXT-G block for mindsensors DIST-Nx Sharp IR sensormindsensors 1.1bclick

me
Legacy


sensors
NXT-G blocks for Legacy (RCX) sensors and actions - RCX motor, lamp, touch sensor, light sensor, rotation sensor and temperature sensor LEGO 1.0click

me
TS Air Pressure SensorNXT-G blocks for Techno-stuff air pressure sensor Techno stuff 1.0click

me
TS PIR SensorNXT-G blocks for Techno-stuff motion detector (passive IR sensor) Techno stuff 1.0click

me
Real-time clockNXT-G blocks for mindsensors.com real-time clock mindsensors 1.0click

me
CdS Light SensorNXT-G blocks for homebrew CdS Light Sensor with LED Control Michael
Gasperi
1.0click

me
HiTechnic

Gyro

Sensor
NXT-G block for HiTechnic gyro sensor HiTechnic 1.0click

me

Data








































































































NameDescriptionCreatorVer.Link
Fixed-Point

Math
Basic algebraic operations with fractional (fixed-point) numbers Guy Ziv 1.0click

me
Seed Random

Generator
Generate a reproducable series of random numbers Michael

Gasperi
1.0click

me
MinMaxFind the minimal and maximal value of some wire Guy Ziv 1.0click

me
Sine and


Cosine
Calculate sine and cosine of angle Claude

Baumann
1.1click

me
ArctangentCalculate arctangent Claude

Baumann
1.0click

me
Arctangent 2Calculate arctangent from (x,y) coordinates of a given vector Claude

Baumann
1.1click

me
Square RootCalculation of (integer) square root of the input Claude


Baumann
1.0click

me
Number to

char
Convert a numerical input into an ASCII char xw25adc 1.0aclick

me
PowerCalculate X to the power Y Michael

Gasperi
1.0click

me
Text ManipulationFive different text manipulation blocks Jasonking 1.0click

me
AverageCalculate running average of input Guy Ziv 1.0click

me
MathScriptCalculate complex mathematical expressions Guy Ziv 1.0click

me

Advanced






































































NameDescriptionCreatorVer.Link
Bit LogicBitwise operations on numbers (And, Or, Xor, and Not) Michael

Gasperi

Steve


Hassenplug
1.0click

me
Mask BlockBitwise AND between the input and the mask Michael

Gasperi
1.0click

me
I2C Read/WriteGeneral purpose I2C read and write blocks for low-level communication to I2C sensors/devices xw25adc 1.0click


me
Simple ArraySimple array block Steve

Hassenplug
1.0click

me
Advanced ArrayAdvanced array block Guy Ziv 1.0click

me
Template VI


Library
A template block (non-functional) for NXT-G developers. Use for creating blocks that encapsulate many different functions Guy Ziv 1.0click

me
PCF8574 kitNXT-G block for mindsensors PCF8574 kitmindsensors 1.2click

me
Digital-to-AnalogInterfaces the NXT with the 8 channel TDA8444 DAC Michael


Gasperi
1.0click

me

If you know of any released NXT-G block not listed above, or developed a new block and wish it to appear in this list - please email Guy Ziv

sabato 5 gennaio 2008

spassosa discussione sul forum nxtasy.org riguardo NXT-G


Discussione fra JasonKing e BrianDavis a proposito del tool che ripulisce il programma dai fili "inutili"
http://forums.nxtasy.org/index.php?showtopic=444&hl=Remove+Bad+Wires

e quello che permette di impostare i setting di apertura del programma
http://forums.nxtasy.org/index.php?showtopic=1532&hl=Modify%20User%20Settings%20Tool&st=0

Da questa discussione si ha anche modo di scoprire alcuni trucchi che Davis riassume cosi':


QUOTE
I wonder if somehow in that content there's info on the editing environment?

Traces, but not a lot - certainly not as much as I feel would be useful. As an example, when you look at the help files on wires, they mention that you can click on the right-hand plug on a datawire to delete it (that's the only place I can find official reference to that ability). But it doesn't mention, for instance, that that only deletes the wire from the plug to the nearest branch point, not all the connected wires... which is what clicking an actual wire (selecting the wire) and pressing delete does. That's another one of those fine points that can be really handy to know.

QUOTE
You should draw up such a document, in HTML format, and that way the whole community can benefit from your list of shortcuts and tips/tricks. You actually know more of them than I do at this point, I think smile.gif

I'm not sure that I know more of them than you do at this point, but I do have a list of stuff drawn up in a Word document that I should try to polish and add screenshots. Things like...

* The fact that you can "stretch" and "shrink" the sequence beams by clicking and dragging horizontally with the cursor on the sequence beam between blocks.
* That you can multiplex wires into/out of Switch structures ([i[]much[/i] easier, now that someone has released a tool that highlights where the tunnels through the structure boundries are smile.gif ).
* A copy & paste operation drops the resulting pasted code in the largest clear area near the last cursor click position.
* You can option-drag (alt drag on a PC [qui fa un errore perche' si deve fare CNTRL drag per clonare ... ) an existing emplaced, configured block to make a "clone", a copy of the block with the the configuration pane set-up, and even the position of the datahb copied.
* If you need to select a large section of code (larger than a single screen), you can shift-click to add new blocks to an existing selection.
* Selecting a Switch or Loop selects everything within it as well.
* You can use the arrow keys to scroll the screen L/R/U/D. Using fn-Up or fn-Down can scroll the screen by a larger distance L or R, speeding up the process, while "home" (fn-L) or "end" (fn-R) will take you to the start or end of the program.
* When editing the icons for a My Block, you can move them or resize them, but the order that they overlap in is determined by the order they were dropped in, and if you want to delete an icon that you've dropped, you can select it and type fn-delete. Even if the icons seem cut off on the edge of the editing window, they may appear complete on the block image.
* Clicking & dragging on a section of existing wire will move it around (sometimes revealing hidden bends that are handy)
* While dragging a wire out (before you secure the end), tapping the space bar can make it flip from "up-and-over" to "over-and-up" and back again.
* Using crowbars to open Loops and Switches.
* Using a text comment "pin" to hold those stretched structures open.

Brian Davis

Aggiunta di Jason:

Tab key will cycle through the different tools.
1-2-3 wil cycle in the palettes

crowbar: uno switch, per esempio, inserito in un loop altrimenti stretto, allo scopo ti allargarlo, mettendo dentro lo switch un blocco dummy con un hub molto lungo, ad esempio il display. E' un trucco per facilitare la stesura del programma.

giochi semplici da far girare sul NXT

questo link contiene un link ai programmi (sia rbt, quelli grandi, sia nbc, rxe quelli piccoli)

http://news.lugnet.com/robotics/nxt/?n=313

gli rbt si aprono con NXT-G
gli rxe si caricano sempre via NXT-G con la finestrella di download
gli nbc van compilati con Brixcc


altri programmi su
http://sorosy.com/lego/nxtarcade/