“Simple scanner that requires advanced techniques to use” made with JavaScript.

IMG_1525.JPG

I tried to make a scanner.

IMG_1526.JPG

This is result of scan test. Don’t you think that I am pretty good?

IMG_1528.JPG

This is a brightness sensor that was made for Kani-Robot. Kani-Robot can trace line by this sensors.

When scanning, I have to adjust the speed of the hand to the speed of the screen cursor. It’s too difficult ;).

// Scanner

var x=0,y=0;
var d=1;

cls();

while(1){
 lc(x,y); log(“O”); lc(x,y);
 sleep(2000/32);

 var a=ana(2);

 if(a<500){
  log(" ");
 }else{
  if(a<640){
   log(“.”);
  }else{
   if(a<780){
    log("‰o”);
   }else{
    log(“#”);
   }
  }
 }

 x=x+d;
 if( (31<x) + (x<0) ){
  d=d*(-1);
  x=x+d;
  y=y+1;
 }

 if(y==23) break;
}

This is source code of this scanner for IchigoLatte JavaScript.

 

Advanced techniques are required to use this scanner.

Please try as well ;).

 

 

 

.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s