Monthly Archive for May, 2011

Control de Motor Rasti con Arduino

Siguiendo con el proyecto de Robot, esta vez le tocó el turno al control de motor de Rasti Motobox.
Para esto tuve en cuenta varios tutoriales:
Control your motors with L293D and Arduino
Tutorial Set up a L293 H-Bridge (Motor Driver)
How to drive dc motor using L293D with arduino
Y el Datasheet del ST L293B , también me sirvió un esquema del Datasheet del TI L293 porque trae un diagrama bastante bueno que reproduzco acá:

Diagrama L293

Diagrama L293 para un motor bidireccional

También pude encontrar este material pero al final no lo usé:
Manejo de potencia para motores con el integrado L293D

Como el L293 no trae diodos de protección internos para que la corriente generada por el motor cuando gira por inercia no ingrese en el circuito de la Arduino, fue necesario agregar 4 diodos externos que no están en los tutoriales pero si en el esquema del Datasheet.

Acá están las fotos de como quedó armado:
Control de Motor Rasti con Arduino

Control de Motor Rasti con Arduino

Montaje de Motor Rasti con caja reductora, eje y rueda

Control de Motor Rasti con Arduino

Control de Motor Rasti con Arduino

El siguiente es el sketch (programa) subido a la Arduino, que hace avanzar el motor 3 segundos hacia un lado y 3 hacia el otro alternativamente con una pausa de 1 segundo antes de cambiar:

// Community of Robots//
//Dc motor example code//
int motorpin1 = 3; //define digital output pin no.
int motorpin2 = 4; //define digital output pin no.
void setup () {
pinMode(motorpin1,OUTPUT); //set pin 3 as output
pinMode(motorpin2,OUTPUT); // set pin 4 as output
}

void loop () {
digitalWrite(motorpin1,LOW);
digitalWrite(motorpin2,LOW);
delay(1000);
digitalWrite(motorpin1,LOW);
digitalWrite(motorpin2,HIGH);
delay(3000);
digitalWrite(motorpin1,LOW);
digitalWrite(motorpin2,LOW);
delay(1000);
digitalWrite(motorpin1,HIGH);
digitalWrite(motorpin2,LOW);
delay(3000);
}

Video de Control de Motor Rasti o embebido:

El siguiente paso es agregar más voltaje porque el motor no tiene mucha potencia, y armar la oruga para colocar la Arduino y que se pueda mover. Puede ser que sea necesario colocar un disipador en el L293.

Reseña Histórica: Si quieren leer una historia de un pionero de la robótica que comenzó con motores Rasti hace 30 años pueden leerla en:
La historia de mi primer robot , por Eduardo J. Carletti

Categorías

RSS Entradas GReader Compartidas

  • Programming Interactivity - O'Reilly Media Thursday, September 8, 2011
    Processing, a Java-based programming language and environment for building projects on the desktop, Web, or mobile phones; Arduino, a system that integrates a microcomputer prototyping board, IDE, and programming language for ... […]
    O'Reilly Media
  • Google+ suma juegos Monday, August 15, 2011
    Shared by Guille Ya me envicié con Angry Birds en G+ también! La red social del gigante de internet agregó juegos a su propuesta, entre ellos Angry Birds, que causó sensación a nivel global, en un nuevo intento por disputar a facebook la primacía en la vida online de los usuarios […]
    (author unknown)
  • Book Review: Getting Started With Audacity 1.3 Monday, August 15, 2011
    MassDosage writes "Getting Started with Audacity 1.3 by Bethany Hiitola covers the basics of using the Audacity software package for recording and editing audio. This book is written in a tutorial style and stays true to its title by covering Audacity from a newcomer's perspective with lots of diagrams and detailed explanations of how to install an […]
    samzenpus
  • Arduino Code Syntax Highlighting Plugin for your WordPress Blog Sunday, August 14, 2011
    Download and install this Arduino code highlighting and markup WordPress plugin. […]
    admin
  • How to Hack Your Wii for Homebrew in Five Minutes [Video] Friday, August 12, 2011
    Hacking your Wii hasn't been difficult, but it has required a somewhat detailed process. Now we have LetterBomb, which is an incredibly simple way to hack your Wii. It only takes about five minutes to accomplish. Here's how to do it. First things first, you're going to need the following: A Nintendo Wii, obviously, but make sure it's runn […]
    Adam Dachis
  • Wii homebrew hack – no game discs required - Hack a Day Friday, August 12, 2011
    Jailbreaking hacks have come and gone for the Wii, ever changing as Nintendo tweaks their software to prevent homebrew from running. Piracy concerns aside, there is a legitimate Wii homebrew scene, and a new, ... […]
    Mike Nathan
  • Gentoo Linux libera el LiveDVD 11.2 Monday, August 8, 2011
    Gentoo Linux liberó el LiveDVD 11.2 Edición “The future is now” Gentoo Linux está orgulloso en anunciar la disponibilid de un nuevo LiveDVD para celebrar la continua colaboración entre usuarios y desarrolladores Gentoo. El LiveDVD contiene una impresionante lista de paquetes, alguno de los cuales están listados abajo. Paquetes del sistema: Linux kernel 3.0 ( […]
    Guille
  • Gentoo Linux releases 11.2 LiveDVD Monday, August 8, 2011
    "The future is now" edition Gentoo Linux is proud to announce the availability of a new LiveDVD to celebrate the continued collaboration between Gentoo users and developers. The LiveDVD features a superb list of packages, some of which are listed below. System packages include: Linux kernel 3.0 (with Gentoo patches), Accessibility Support with Spea […]
    David Abbott
  • Capacitor Replacement Tutorial #twt Capacitor Replacement Tutorial http://w Wednesday, August 3, 2011
    Capacitor Replacement Tutorial #twt Capacitor Replacement Tutorial http://www.youtube.com/v/YCSNWi3UHf4&hl=en&fs=1&autoplay=1 […]
    (author unknown)
  • Start Google Plus Combines Google+ with Facebook and Twitter [Downloads] Tuesday, August 2, 2011
    Start Google Plus is a great extension for Chrome and Firefox that lets you update Twitter and Facebook from within Google+, also adding feeds from both social networks onto your main page. We mentioned it in our Facebook to Google+ migration guide, but felt it deserved to be highlighted on its own because it's so useful. To get started, you just downlo […]
    Adam Dachis