[IOIO && ARDUINO] Use dc motor with L293D(driver)
Thanks all'integrato L293D is possible to drive in a simple way a small DC motor.
Excellent chip SGS Thompson, l'e L293D’ ideal for driving small DC motors. Can’ independently driving a pair of DC motor 0.6 A (max) with voltages of 4.5 a 36 volts.
It’ has an internal protection, in case of overheating, limits the output current until the restoration of optimum temperature.
On the Net you can find thousands of circuits using the SGS L293D to meet any requirement of motor control.
And you find it on ebay a few bucks.
The connection is very simple:
Enable 1 -> 5V
Input 1->Digital output pin.Pin no is upto you (I have used 3)
Output 1->motor wire 1
GND->Ground
GND->Ground
Output 2->Motor wire 2
Input 2->Digital output pin.Pin no is upto you(i have used 4)
Vs->Power supply for motors
Vss-> 5V
Then the connection of Arduino is simple, also contains the code:
Code:
//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,HIGH);
}
The connection ioio is equal to only change the code here instead:
For example, the connection of the motors on the pin 4 and 5:
Private DigitalOutput pin4, pin5; pin4 = ioio_.openDigitalOutput(4, true); pin 5 = ioio_.openDigitalOutput(5, false); pin5.write(false); pin4.writetruee);
I found several online guides and diagrams on how to connect this simple driver L293D but I posted this is the easiest way I have found here is the source:
http://communityofrobots.com/tutorial/kawal/how-drive-dc-motor-using-l293d-arduino
Have fun :D
P.S. By reversing the true o false for ioio and the LOW e HIGH Arduino to change the motor rotation :D
Related posts:
- [ARDUINO] How-To Start on Ubuntu/ GNU/Linux
- Android IOIO display 7 segment
- [ANDROID] IOIO OPEN_DRAIN Mode && Scheme
- Double Driver:Quick and easy backup of your drivers [windows]
- [ANDROID]SparkFun IOIO :) :)
This entry was posted on Thursday, February 9th, 2012 at 8:23 pm and is filed under Arduino. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Tagged with: Arduino • ioio • teensy






