Comment

You need to be a member of TowerGeeks to add comments!

Join TowerGeeks

Jaime Andres Rincon Arango Comment by Jaime Andres Rincon Arango on November 23, 2009 at 2:40pm
Hola, te cuento esto es un proyecto personal, es que en ese momento quería hacer funcionar unos servo que tenia, para ver si un código que tenia de la demoqe128 me funcionaba con esta board y si me funciono, yo quiero es poner la Tower a un carro todo terreno de juguete que tengo y poderlo controlar por internet, por esa razón te pregunte que si tenias información sobre el manejo del puerto de internet.

Te pregunto algo tu eres el de el video de freescale???, es que tienen el mismo nombre.

Bien, mira este es el código del servo:

for(x=1;x>0;x--){
ioctl(output_port, (1) ? GPIO_IOCTL_WRITE_LOG1 : GPIO_IOCTL_WRITE_LOG0,
(pointer) &SERVO1);
_time_delay(1.6); // si pones 0.2, el servo gira en sentido contrario

ioctl(output_port, (0) ? GPIO_IOCTL_WRITE_LOG1 : GPIO_IOCTL_WRITE_LOG0,
(pointer) &SERVO1);
_time_delay(5); // el refresco si aumenta es mas lento el servo
}

Con eso lo hago mover, ahora falta la configuración etc.
Eduardo Montanez Comment by Eduardo Montanez on November 23, 2009 at 10:35am
Es proyecto personal, trabajo o escuela? Estas usando los PWMs? Le agregastes control or solo una velocidad y direccion ahorita?

Is this a project for school, work or school? Are you using the PWMs? Did you add control or just a single speed and direction for now?
Advertisement Click Here

Spread The Word!

Follow TowerGeeks on TwitterTowerGeeks on FacebookShare This
Towergeeks has their own pages on Twitter as well as Facebook. Find us there and help spread the word about the Tower System!

© 2010   Created by TowerGeeks

Badges  |  Report an Issue  |  Privacy  |  Terms of Service

Sign in to chat!