Show Posts
Pages: [1] 2
1  Using Arduino / Motors, Mechanics, and Power / Re: wierd arduino and l293d motor shield problems on: July 25, 2013, 07:38:16 am
I have solved the problem of this unusal behavior of motors, which has been present right from my start of this obstacle detecting/line following bot project...
Being a noob, i have been using a 9V battery to power the L293D, which has been the biggest mistake right from the beginning. I never knew the that 9V battery could not supply the required current to drive the motors, and i thought it was the chip i had destroyed and had bought three more!!!(LOL smiley-grin)

Now that I came into my senses, I switched to AA batteries and every problem got solved..

Thanks for all for replying to my problems..   smiley-mr-green
2  Using Arduino / Motors, Mechanics, and Power / Re: wierd arduino and l293d motor shield problems on: July 18, 2013, 02:01:16 pm
Quote
Perhaps a better idea is to disconnect the motor if the motor supply is absent, then no high currents can flow.

Sounds like a nice bet..

Quote
[If you leave an input unconnected all bets are off - again don't do this, floating inputs can read as low or high, or oscillate

But if I connect both the inputs for the motor, it does not run, be it 5,6 or 9,10!!

Also can you make a guess what could be wrong with this shield??

3  Using Arduino / Motors, Mechanics, and Power / wierd arduino and l293d motor shield problems[SOLVED] on: July 17, 2013, 09:58:37 am
Hi guys,
 I just bought a local arduino l293d motor driver shield in india.. About 11 USD.. I bought this due to my initial breadboard circuit failures and lack of enough soldering skills to make an motor driver circuit myself smiley-sad

Now, I have been experinmenting with this past 3 days and I observe the following wierd behaviors..

1) the 8th pin1(VCC) through which we provide required voltage to the motors in connected to the VIN pin of the arduino.. But whenever I power the arduino via an apple 5V adapter through USB... Even without the the vin pin connected to an external battery, the motor runs!! Can it happen???

2) Each motor requires a two inputs HIGH or LOW based on which it send output to the motor.. In my case I have assigned 5,6 digital pins of arduino as HIGH and LOW while 9,10 as LOW,HIGH... But when I connect one of the input pin(note it is only one pin) connected to say pin 5, the motor starts running backward!! And it repeats when I connect ONLY ONE PIN to pin 10 again...

The motor moves backwards when connecting the another input pin alone to 5 or 10, it moves forward!!!

I can't deduce the problem to single component, my shield, arduino, motors or connections??
 So can anyone pls shed some light ?? And sorry for the lengthy problem by the way.. smiley-sad

Also you can visit this site in order to have a look at my shield:
http://allsensor.in/ProductDetails.aspx?SEOType=BSuwhmB9Ll4%3d&PID=3jII%2fQHIflo%3d&CType=ZgDIC937E8s%3d&CID=Ex1tZ6fBQBg%3d
4  Using Arduino / Motors, Mechanics, and Power / Re: wierd running of motors using arduino and l293d on: June 10, 2013, 02:52:58 am
Thanks for the help, cr0sh, but i do take care of the pin numbering and always refer to a datasheet/ pinout diagram and work on the circuit. But sill i might have gone wrong wile building that, so lemme rebuild the circuit and try again....
5  Using Arduino / Motors, Mechanics, and Power / Re: wierd running of motors using arduino and l293d on: June 09, 2013, 05:09:59 am
err... dc42, just give me a two days time, coz the whole cirucuit stopped working suddenly.. so i have to figure out what's going on now... i suspect the ic itself.... lemme se

thanks
6  Using Arduino / Motors, Mechanics, and Power / Re: wierd running of motors using arduino and l293d on: June 07, 2013, 12:52:47 pm
Also my multimeter  beeps when i check for continuity between the motor terminals of both the motors. Is it a good sign??
7  Using Arduino / Motors, Mechanics, and Power / Re: wierd running of motors using arduino and l293d on: June 07, 2013, 12:15:55 pm
6 and 7 goes to the input pins 1 and 2 while, 10 and 11 go to the input pins 3 and 4(on the other side of the ic...)
8  Using Arduino / Motors, Mechanics, and Power / Re: wierd running of motors using arduino and l293d on: June 07, 2013, 05:59:54 am
ya Mark, i am using those PP3 batteries.
And dc42, the pins 6,7,10 and 11 are the pins on arduino connected to the input pins on the motor driver.
9  Using Arduino / Motors, Mechanics, and Power / Re: wierd running of motors using arduino and l293d on: June 05, 2013, 05:17:51 am
Mark, I don't know what you mean by those PP3 motors.... But all I know is that it's a basic DC geared motors, and they look exactly like this:

http://www.extreme-robots.nl/91-thickbox/dc-geared-motor-met-wiel-.jpg

And I will try controlling each of the motors independently using the motor driver and get back to you.

Thanks once again. smiley
10  Using Arduino / Motors, Mechanics, and Power / Re: wierd running of motors using arduino and l293d on: June 04, 2013, 01:04:03 am
Currently, I am supplying power to the arduno using my desktop's USB port. And I am using the 5v supply form the arduino to the motor driver circuit and grounded using arduino's gnd pin. For the raw voltage of the motors, I am using two 9v batteries in series, which gives it around 13v.. To the motors.

The wiring is exactly as described in the instrucatbles page:
http://www.instructables.com/id/Control-your-motors-with-L293D-and-Arduino/step2/Advanced-implementation/

Thank you MarkT for taking your time to reply... Feel free to ask any other extra details you need.



11  Using Arduino / Motors, Mechanics, and Power / wierd running of motors using arduino and l293d on: June 03, 2013, 09:02:59 am
hi guys,
i am experiencing  some weird problems while controlling two dc geared motors using arduino uno r3 with the help of a l293d driver.

i used the following code to test the circuit...

Code:
// --------------------------------------------------------------------------- Motors
int motor_left[] = {6,7};
int motor_right[] = {10,11};

// --------------------------------------------------------------------------- Setup
void setup() {
Serial.begin(9600);

// Setup motors
int i;
for(i = 0; i < 2; i++)
{
pinMode(motor_left[i], OUTPUT);
pinMode(motor_right[i], OUTPUT);
}

}

// --------------------------------------------------------------------------- Loop
void loop() {

drive_forward();
delay(3000);
motor_stop();
Serial.println("1");

drive_backward();
delay(3000);
motor_stop();
Serial.println("2");

turn_left();
delay(3000);
motor_stop();
Serial.println("3");

turn_right();
delay(3000);
motor_stop();
Serial.println("4");

motor_stop();
delay(3000);
motor_stop();
Serial.println("5");
}

// --------------------------------------------------------------------------- Drive

void motor_stop(){
digitalWrite(motor_left[0], LOW);
digitalWrite(motor_left[1], LOW);

digitalWrite(motor_right[0], LOW);
digitalWrite(motor_right[1], LOW);
delay(25);
}

void drive_forward(){
digitalWrite(motor_left[0], HIGH);
digitalWrite(motor_left[1], LOW);

digitalWrite(motor_right[0], HIGH);
digitalWrite(motor_right[1], LOW);


void drive_backward(){
digitalWrite(motor_left[0], LOW);
digitalWrite(motor_left[1], HIGH);

digitalWrite(motor_right[0], LOW);
digitalWrite(motor_right[1], HIGH);
}

void turn_left(){
digitalWrite(motor_left[0], LOW);
digitalWrite(motor_left[1], HIGH);

digitalWrite(motor_right[0], HIGH);
digitalWrite(motor_right[1], LOW);
}

void turn_right(){
digitalWrite(motor_left[0], HIGH);
digitalWrite(motor_left[1], LOW);

digitalWrite(motor_right[0], LOW);
digitalWrite(motor_right[1], HIGH);
}

the motors move as following, when the following functions are implemented:
1) drive forward: both motors stop
2)drive backward: only left motor backwards
3) turn left:        only right motor backwards
4) turn right:     both motors backwards
5)motor stop:    both motor backwards  !!!

when i give commands to run the left motor alone, the motor perfectly runs forward, backward...
but when i do the same for the right motor it only runs backwards, that too only for the cases, high-low and low-low. for the rest it does not run.

but when i connect the motors directly to a 9V battery supplying about  8.2V, it runs both forward and backward on interchanging the polarities.

I just dunno wat the heck is going on.. Pls help me out guys.... Breaking my head for the past three days...  smiley-cry

Thanks in advance  smiley-red
12  Using Arduino / Sensors / Re: Alternative for tsop 4838 ir reciever on: May 31, 2013, 02:26:01 am
well dc42, thanks for taking your time for replying my query... I have finally managed to get hold of an tsop ir reciever and is now detecting the ir signals perfectly. My problem is solved as now. Thanks again smiley-mr-green
13  Using Arduino / Sensors / Re: Alternative for tsop 4838 ir reciever on: May 30, 2013, 10:39:31 pm
Ok, so now is there any way for me to manually demodulate that 38khz signal?
14  Using Arduino / Sensors / Re: Alternative for tsop 4838 ir reciever on: May 30, 2013, 11:56:48 am
Well, I am sorry that i forgot to mention that I did not use any prebuilt ir receiver, but its a one manually soldered by me... So it has no datasheet...
My circuit actually contains both ir emmiter and reciever.I just used a photodiode and a ir emitter and made the circuit as in the attached image. I am just a beginner in the world of electronics, so dunno if what i made is correct or not.. Feel free to offer any suggestion

Thanks for the reply
15  Using Arduino / Sensors / Alternative for tsop 4838 ir reciever on: May 30, 2013, 10:20:28 am
hi guyz,
I wanted to control arduino and its connected appliances via an remote control..
i am living in India and I am not able to get hold of the TSOP 4138 or 4838 ir receivers...
So i just connected an ir reciever(The black led) through a 10k ohm resistor to the arduino. I got the irremote.h librray instlalled and tried to read some codes from the button presses from a sony remote... What happens is, i get different codes each time, each repeating 5 times for a single button press like this:
4AB0F7B6
4AB0F7B6
4AB0F7B6
4AB0F7B6
4AB0F7B6

FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF

I don't know how to decode this... can some body help me... If  you need any details, feel free to ask me, but do help me...  smiley-cry
Thanks in advance  smiley-red


Pages: [1] 2