Discussion in "8051 Discussion Forum" started by    superman    Mar 13, 2010.
Sat Mar 13 2010, 06:59 PM
#1
Hi,

I have selected this project : Controlling a toy car (made with AT89C51 + 2 DC Motors driven by drivers L293D) from a PC wirelessly. (using RF)

I interfaced one AT89C51 to the PC through the COM PORT(RS232) which receives serial input as commands. With respect to the inputs I transmit a particular information through the TWS434 and receive it using the RWS434 (Transmitter and receiver ICs)

The received information is then given as input to the Port P1 of another AT89C51 which gives input to the Motor driver IC (Dual-H bridge) L293D through the Port P2. I have connected the 2 motors to output ports of L293D.



Whatever data that I wish to transmit is being transmitted and also received. The data also gets output from the Port P2 of the Receiver side AT89C51 (verified it through a Digital Mulitmeter)
The problem I am encountering is that, the motor doesn't rotate properly, it just rotates too slowly (less than 6 rpm - Note that the motor(12V DC) when directly conntcted to the power supply rotates at its mentioned speed of 40 rpm).
I found that if I remove the L293D driver IC from its socket and insert it back(while it is still powered on), the motor rotates properly until it is made to rotate in the opposite direction (by giving suitable values). I also found that whenever I try to measure the output voltage at the motor's end when it is rotating slowly through a Digital Multimeter the motor starts to rotate properly until its made to change direction.

So I thought L293D should be the problem and I switched to L298 driver IC.
Here the problem I am seeing is that I get Voltage of 12V from the out terminal of the L298 (across pins OUT1 and OUT2) but the motor does not rotate.

The following image gives you an idea of the L298 problem :
This does not work even though there is output voltage


But if modified like this it works (but obviously only in one direction )



Kindly help me out in this regard.
Both the L293D and L298 oriblems.


Thanks

Sat Mar 13 2010, 08:21 PM
#2
Well this may not be best answer but i think with 1st controller when motor rotates slowly that ic's VSS and VS is connected to positive Logic 5V not with battery connect battery there and give it a try
Sat Mar 13 2010, 08:59 PM
#3
You should have 100nF capacitors on Vcc and Vs.

I would also add larger capacitors in addition to the 100nF.


[ Edited Sat Mar 13 2010, 09:00 PM ]
Sun Mar 14 2010, 12:03 PM
#4
also check if your power supply is enough to provide sufficient current to motors.
Sun Mar 14 2010, 12:03 PM
#5
[Topic moved to 8051 Discussion forum]
Sun Mar 14 2010, 01:32 PM
#6
Thanks for the replies guys..
I found out the problem associated with the L293D.. it was a driver problem!!
Bought another IC and its working fine!!
thanks for your help guys..

But I'm still wondering as to why it gives problems when using with the L298!! I tried changing IC but still the same.

@Ajay Bhargav : Checked the power supply, its about enough to run a motor..
@ExperimenterUK : No change sir.. Its still the same! :-(
@Afnan : Connected according to data sheet and still the same.. The motor rotates only when Out2 and Out4 are grounded! So no rotation in opposite direction
Sun Mar 14 2010, 02:25 PM
#7
well all is well when ends well

do submit your project here.. its a good learning project.
Sun Mar 14 2010, 10:33 PM
#8


Here the problem I am seeing is that I get Voltage of 12V from the out terminal of the L298 (across pins OUT1 and OUT2) but the motor does not rotate.


Are you sure you were getting 12V across pins OUT1 and OUT2
and *also* across the motor connections ?

Logically, the motor would turn, unless it is faulty.
Could there be a bad connection or dry soldered joint ?.

What model is the motor ?.
Does it rotate both ways if connected to a battery ?.


[ Edited Sun Mar 14 2010, 10:38 PM ]
Mon Jan 03 2011, 04:51 PM
#9
hi everybody, i urgently the circuit diagram n code in c of this project.. plz present it here.
i would be thankful..
Mon Jan 03 2011, 04:58 PM
#10
i mean i need it.. sorry for the mistake

Get Social

Information

Powered by e107 Forum System

Conversation

Sarvn
Sat Jul 22 2017, 05:12 PM
I wnt to learn embedded could anyone help me
Sarvn
Sat Jul 22 2017, 05:11 PM
Hi
Wed Jul 12 2017, 02:34 PM
Ushiwaka
Any good guides on how to interface an 8255 w/ an 8051?
Tue Jul 11 2017, 06:22 PM
Chiko
i need seconds added to this circuit, can you help me modify it and add codes too
ExperimenterUK
Thu Jul 06 2017, 01:25 AM
@martinsnc115877 The hex file is here http://www.8051projects.net/forum-t65048-post.html
martinsnc115877
Sun Jul 02 2017, 04:28 PM
sir, sorry for the disturbance I can find the small and capital letter,hex file, please send it to me
Sun Jul 02 2017, 11:45 AM
Sam Raj
Can I have the circuit of Simple Digital Voltmeter using 8051
ExperimenterUK
Sun Jul 02 2017, 02:09 AM
Read this http://www.8051projects.net/forum-t65048-post.html. The project download contains lower case letters. It is compiled in Keil
martinsnc115877
Sat Jul 01 2017, 10:45 PM
I mean scrolling massage display using 8051 by pratrik suthar, the hex file I have is just only the capital letters I need the capital letters and the small letters hex, and I will like to no the compiler name he used for the code thanks
ExperimenterUK
Sat Jul 01 2017, 09:13 PM
@martinsnc115877 which project..link ?

Downloads

Comments

Sarvn
Sat Jul 22 2017, 11:34 AM
diablom
Fri Jul 21 2017, 01:44 PM
Alihaider.007
Thu Jul 20 2017, 03:07 PM
Vijaykumarsharma
Fri Jul 14 2017, 11:08 AM
varma495
Tue Jul 11 2017, 01:55 AM
Ramweit
Sat Jul 08 2017, 01:42 PM
Ben_J1
Fri Jul 07 2017, 04:32 PM
labsdg
Fri Jul 07 2017, 02:58 AM

Online

Guests: 52, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 37860
Newest member: Sarvn
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Jul 20 2017, 04:08 PM
can it be possible ?? Alihaider.007No.You will nee...
Alihaider.007 Avatar
Posted By Alihaider.007
Thu Jul 20 2017, 03:14 PM
Sir I am using AT89S8253 I have trying to use this...
Utsavi Avatar
Posted By Utsavi
Mon Jul 17 2017, 09:57 AM
Hello Ajay_Bhargav,Thanks for your reply. Yes, you...
ajay_bhargav Avatar
Posted By ajay_bhargav
Mon Jul 17 2017, 06:41 AM
I do not think it would be a good idea to kind of ...
ajay_bhargav Avatar
Posted By ajay_bhargav
Mon Jul 17 2017, 06:32 AM
Tasking EDE has linker script facility available y...
Ramweit Avatar
Posted By Ramweit
Thu Jul 13 2017, 06:58 AM
Thank you for response,Sim300 gsm Modem am using h...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Jul 11 2017, 04:20 PM
After the SMS is sent the modem should respond+CMG...
Ramweit Avatar
Posted By Ramweit
Tue Jul 11 2017, 02:37 PM
From this code gsm modem sending SMS to mobiles mu...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Jul 10 2017, 06:09 PM
@RamweitWhat is it you want to know ?
Ramweit Avatar
Posted By Ramweit
Sat Jul 08 2017, 02:12 PM
#include<reg51.h>#include<stdio.h>bit moreov...