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

Como recupero un Pen Drive que use para instalar OS X?

How do I format a usb drive on a PC that was formatted on a Mac? (source) Assuming Windows 7 and that the disk is not showing up under My Computer at all: Connect your disk. Run cmd as an Administrator. Run diskpart.exe . Use ? if you need help in this program. list disk Find the disk that corresponds to your USB disk. select disk n where n is the number of the disk. Confirm that you're using the right disk with detail disk . clean (Warning: This command erases the disk's partition information. Any data on the disk will no longer be accessible.) create partition primary . No size is needed if you want to use the whole disk active . Optional. Marks the partition as potentially bootable. format fs=fat32 quick . You can choose NTFS or exFAT instead of FAT32 if you want. assign . Assigns the disk a drive letter. exit to quit. LEER BIEN los pasos y comprender que lo hace BAJO su Responsabilidad. Sino esta seguro, NO

San Justo ---> Puerto Madero (Sur)

De lunes a viernes esta es la distancia que recorro para ir a trabajar! Ver mapa más grande A veces, en auto otras en colectivo, cuando no manejo duermo como piedra en el 126, y hago este tranquilo y largo recorrido: Por PERIBEBUY, LEÓN GALLO, AGUSTÍN DE VEDIA, AMBROSETTI, AVENIDA INTENDENTE CROVARA, cruce AVENIDA GENERAL PAZ, AVENIDA EVA PERON, GUAMINI, AVENIDA CORONEL CARDENAS, AVENIDA DE LOS CORRALES, LISANDRO DE LA TORRE , AVENIDA DIRECTORIO, AVENIDA SAN JUAN, PERÚ, AVENIDA PRESIDENTE JULIO ARGENTINO ROCA, HIPOLITO YRIGOYEN, AVENIDA LA RABIDA , AVENIDA LEANDRO NICEFORO ALEM , AVENIDA CORRIENTES, AVENIDA EDUARDO MADERO, SAN MARTÍN, DOCTOR GUSTAVO MARTÍNEZ ZUVIRIA, AVENIDA DOCTOR JOSÉ MARÍA RAMOS MEJÍA, AVENIDA ANTÁRTIDA ARGENTINA, AVENIDA DE LOS INMIGRANTES, AVENIDA PRESIDENTE RAMÓN S. CASTILLO hasta HOSPITAL FERROVIARIO. Me bajo en Plaza de Mayo para tomar otro colectivo hasta el Cliente. (Aca no puedo dormir, es corto el viaje ;-)