Discussion in "Project Doubts" started by    liverpool_fan    Dec 29, 2010.
Sun Jan 23 2011, 08:26 pm
#51
hey guys..i tried testing the motors with a simple code and it worked..n after dat, il tried it with the actual program and with the sensors connected..it doesnt work..but when i remove the connection from pin 14 - pin 2 (motor driver) and from pin 16 - pin 10 (motor driver), the motors are working fine..y doesnt it work with i connect these two pins..cn any1 help me plz?


Sun Jan 23 2011, 08:49 pm
#52
as i understand
ur sensor is not working according to the logic of ur code
so pins are high in start up
when u disconnect one pin of controller and h bridge motor runs because its other input pin is high and connected to controller so motor runs
when anything come in front of the sensor its output goes high or low according to that write ur code
that will be easy to understand what is going wrong


[ Edited Sun Jan 23 2011, 09:36 pm ]
Sun Jan 23 2011, 08:54 pm
#53
hey majoka..i dun quite understand..so wat am i supposed to do now?rewrite my coding izit?
Sun Jan 23 2011, 09:03 pm
#54
yes i suggest that make ur own code according to ur sensor that will be easy for u
r motors runs constantly when u disconnect the pin or run according to logic
Sun Jan 23 2011, 09:12 pm
#55
hmmm...yup..the motors are running constantly when i disconnect the pins..not according to the logic..od u have any codes i cud use to test on?
Sun Jan 23 2011, 09:36 pm
#56
first tell me
when anything come in front of the sensor op amp output goes high or low ?
Sun Jan 23 2011, 09:56 pm
#57
when there is obstacle infront, the op amp output would be low..
Mon Jan 24 2011, 02:43 pm
#58
i mke this one according to low logic as ur
code will vary according to ur hardware
i use pc817 opto coupler to drive h- bridge as i want to do separation between controller and motor supplies
connect emitter of pc817 to h-bridge and other pin connect to 5 volt
if u need schematic i will upload to make in Proteus
i make on at89c51 but at89c2051 is sufficient
here is the code

Attachment

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

DJGlido
Wed May 08 2024, 09:28 pm
migCar
Wed May 08 2024, 04:48 pm
TimmyJup
Wed May 08 2024, 12:22 am
Shawnarows
Tue May 07 2024, 10:16 pm
GlennVet
Tue May 07 2024, 04:46 pm
RonaldJoump
Tue May 07 2024, 10:15 am
Jasonkam
Mon May 06 2024, 10:00 pm
JamesroW
Mon May 06 2024, 09:37 am