Ir al contenido principal

DuinoBot v1.2 + Servos


Hoy me llego el envio de Sparkfun con mi Pan/Tilt Bracket y unos Servos. Con ellos me decidi a realizar algunas pruebas que mostrare a continuacion.

Elementos a utilizar:

DuinoBot v1.2  (RobotGroup ARG)
Pan/Tilt Bracket (Paneos)
Servos
Protoboards
Jumpers
Potenciometro


Tambien codifique con la IDE de Arduino para que estos elementos "se fusionaran" en mi TEST.  ;-)


Codigo Parcial

void setup(){
  servoTilt.attach(2);  //The Tilt servo is attached to pin 2.
  //servoPan.attach(3);   //The Pan servo is attached to pin 3.
  servoTilt.write(10);  //Initially put the servos both
  //servoPan.write(40);      //at 90 degress.
 
  Serial.begin(57600);  //Set up a serial connection for 57600 bps.
}

void loop(){
  val = analogRead(potpin);            // reads the value of the potentiometer (value between 0 and 1023)
  val = map(val, 0, 1023, 0, 179);     // scale it to use it with the servo (value between 0 and 180)
  servoTilt.write(val);                  // sets the servo position according to the scaled value
  delay(20);                           // waits for the servo to get there
}



Codigo IDE Arduino PDE

Video Sobre el Escritorio


Mi idea a futuro sera conectar una camara web (Wi-Fi) y poder controlar los movimientos de la camara a traves de un Joystick mas un Arduino.

Video Con Anclaje

Comentarios

Entradas más populares de este blog

Free as in Freedom

Free as in Freedom interweaves biographical snapshots of GNU project founder Richard Stallman with the political, social and economic history of the free software movement. It examines Stallman's unique personality and how that personality has been at turns a driving force and a drawback in terms of the movement's overall success. Free as in Freedom examines one man's 20-year attempt to codify and communicate the ethics of 1970s era "hacking" culture in such a way that later generations might easily share and build upon the knowledge of their computing forebears. The book documents Stallman's personal evolution from teenage misfit to prescient adult hacker to political leader and examines how that evolution has shaped the free software movement. Like Alan Greenspan in the financial sector, Richard Stallman has assumed the role of tribal elder within the hacking community, a community that bills itself as anarchic and averse to central leadership or authority...

Killing Moon

Under blue moon I saw you So soon you'll take me Up in your arms to late to beg you Or cancel it though I know it must be The killing time Unwillingly mine CHORUS: Fate, up against your will Through the thick and thin He will wait until You give yourself to him In starlit nights I saw you So cruelly you kissed me Your lips a magic world The sky all hung with jewels The killing moon Will come too soon

Warp 11

Cuando pense que todo sobre Star Trek, podria estar cubierto, me encontre con esta banda de lunaticos llamados Warp 11, y su Capitan Karl. Miren la opiniones en EEUU: "Warp 11 is one of the best bands in America, not since KISS has a band had this level of shtick, and an amazing sound backing it up." - Mark S. Allen Premiere Radio Networks "Warp 11 is a Trek band that has crossed over from fandom to mainstream music." - Tammy Oler Geek Monthly "This isn't a bunch of Trekkies who decided to rock, but rather it's a buncha rockers who dediced the world of Star Trek was ripe with rockin' potential.. Warp 11 doesn't let any joke get by.. they're so gloriously vulgar!" - Jerry Perry Alive & Kicking "Sactown's own Warp 11 are the bad boys at the Trekkie convention." - Justin Allen Sacramento News & Review "It's Dead, Jim - a typically ass-kicking release from the Warped ones." - A.L. Sirois Sci Fi Channe...