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

High Availability Day

Nuevamente he concurrido a "un día" organizado por el Grupo de Usuarios Oracle de Argentina. Mas precisamente al Día de Alta Disponibilidad ; en la empresa que trabajo estamos usando este tipo de arquitectura y queria tener mas informacion, y distintos puntos de vista y ademas, ver las novedades. Como nos acostumbran estas personas del Grupo de Usuarios, son muy dedicadas en la realización de eventos , sin dejar nada librado al azar; eso hace que participe, aunque sea como oyente, también la calidad de los Speakers.

Bullit - Ford Puma.

Y todo comenzo al ver este aviso publicitario del Ford Puma con ambientacion Bullit de Steve McQueen, lo mas loco, es que Steve fue "revivido" digitalmente para la publicidad. Al ver el corto. Me emperre con la pelicula y la mire nuevamente, debe ser la vez 20, y me sigue atrapando la musica, sino me creen vean este clip: ahhhhhhhhh....el auto...........EL AUTOOOOOOOO!!! Que deportivo de la hostia ...... bueno, vamos con el link a Steve McQueen . Sitio Oficial Wikipedia en Ingles