domingo, 9 de diciembre de 2012

Electribricks: Siguelíneas

Tracklinner proporcional en Lab View: http://blog.electricbricks.com/es/2010/03/lego-mindstorms-nxt-sigue-lineas-proporcional/

lunes, 19 de noviembre de 2012

Instruccions del Line Folower

Aquí trobareu les instruccions de muntatge i un parell de programes. Un de molt simple i un altre amb millor funcionament.

(This robot will follow a line on the floor using the NXT 2.0 Color Sensor in Light Sensor mode.  Two programs are provided, a simple "Two-State" approach, which drives in a "zig-zag" fashion, and a more complex "Proportional" Line Follower that will follow faster and more smoothly.)


jueves, 8 de noviembre de 2012

Màquina de Turing

2012 és l'any de Turing.
Aquí podeu teniu una màquina de Turing construida amb Lego Mindstorms.



Podeu fer una ullada a la resta de l'entrada del bloc d'on l'he tret, per conèixer merits i dades sobre la vida d'aquest important personatge

lunes, 29 de octubre de 2012

Presa 1

task main ()
{
// definim les variables
int blanc;
int negre;
int tolerancia=7;
int llindar;
int sentit=0;
int distancia=60;

// configuro el sensor d'intensitat
SetSensorColorRed (IN_4);
SetSensorLowspeed (IN_1);
//agafo valor negre
negre=Sensor(IN_4);
llindar= negre+tolerancia;


Wait(1000);
//giro a la dreta durant 1s
OnFwd (OUT_C, 75);
OnRev(OUT_A,75);
Wait(1000);
//agafo blanc
blanc=Sensor(IN_4);
// mentres veu mes gran que llindar
while(true){
  if(Sensor (IN_4)<llindar)
    {
    OnRev(OUT_AC,50);
    Wait(100);
    OnFwd(OUT_A,50);
    OnRev(OUT_C,50);
    Wait(500);
    }//fi if
  else{
    if(SensorUS(IN_1)>distancia)
     {
       OnFwd(OUT_A,75);
       Wait (500);
   
       OnRev(OUT_A,75);
       Wait (500);
     } //fi if
    else
     {
    
     OnFwd(OUT_A,50);
     OnRev(OUT_C,50);
     Wait(200);
     OnFwd(OUT_AC,100);
     Wait(200);
     } //fi else
   } // fi else
} // fi while
} // task

lunes, 26 de marzo de 2012

jueves, 8 de marzo de 2012