Pages: [1]   Go Down
Author Topic: l293d problem  (Read 718 times)
0 Members and 1 Guest are viewing this topic.
Hyderabad, India.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 98
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey guys, im not able to drive a single motor with l293d

i am using 4 AA batteries connected in series to drive a motor. motor runs when it is directly connected to battery.



so from above figure i connected :-
pin 1 to arduino pin 11
pin 2 to arduino pin 7
pin 7 to arduino pin 2
shorted both grounds pins 4 and 5, connected AA battery -ve to ground, arduino ground also to ground of l39d
connected aa battery +ve to 8
connected motor to the 2 terminals  3 and 6
 

and im using this simple code just to check if its working
Code:
int a = 11;
int b = 7;
int c = 2;
void setup()
{
  pinMode(a, OUTPUT);
  pinMode(b, OUTPUT);
  pinMode(c, OUTPUT);
}
void loop()
{
  digitalWrite(a, HIGH);
  digitalWrite(b, LOW);
  digitalWrite(c, HIGH);
}

but it does not work, what mistake am i doing?
« Last Edit: December 25, 2011, 10:35:57 pm by kiriti » Logged

Canada
Offline Offline
Sr. Member
****
Karma: 0
Posts: 318
Sometimes teaching, always learning,
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try connecting +5V to pin 16.

Pin 16 is the chip logic power supply (+5V only).
Pin 8 is the power supply for the motors (+5 to +36V).
Logged


Hyderabad, India.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 98
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try connecting +5V to pin 16.

Pin 16 is the chip logic power supply (+5V only).
Pin 8 is the power supply for the motors (+5 to +36V).


connected 5v to 16, still not workin
Logged

Canada
Offline Offline
Sr. Member
****
Karma: 0
Posts: 318
Sometimes teaching, always learning,
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe post a clear picture of your setup?
Logged


Hyderabad, India.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 98
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

guys sorry, my breadboard was the damn problem!!!!

its vertical rails are not connected there is a disconnection in between!!!

same thing with all the 4 vertical rails smiley-neutral
Logged

Hyderabad, India.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 98
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

guys can i apply the PWM signal to enable 1 on the l293d to get desired speed????
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the official rev 3 board does that (different chip)
http://mcukits.com/2009/03/12/assembling-the-freeduino-arduino-motor-shield/ does also

I looked at the spec sheet and it looks like an acceptable thing to do
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6619
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

guys can i apply the PWM signal to enable 1 on the l293d to get desired speed????

Yes.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pages: [1]   Go Up
Jump to: