DC Motor connected with PIC16F877A

Thread Starter

chorus_84

Joined Feb 11, 2009
7
i'm a beginner and doing my project now...
when i was testing my project...i found that...
the PIC16F877A will reset always when the DC motor running...
after i checked...
i knew it is back emf matter..
but i have find no way to solve it...
is it anybody can help me to solve it?????
PLS!!!

Thanks Regard...
 

Thread Starter

chorus_84

Joined Feb 11, 2009
7
thanks Alberto
i had seperate the power supply..
actually, i had tried to test 1 part by 1 part.
mean i had try my programming and DC motor with relay separately...
when i was combine these 2 circuit...
the DC motor is no working and the LED on PIC circuit is lighting randomly...
and i had tried adding diode series with resistor...
still cannot working...
 
Last edited:

Thread Starter

chorus_84

Joined Feb 11, 2009
7
thanks Matt...
sorry for i'm a beginner and i don't understand what is PSU mean?
can you explain for it?
thank for regard...
 

Thread Starter

chorus_84

Joined Feb 11, 2009
7
the circuit diagram i had put in "relay.doc" file...
all your help is really appriciated...
thanks regard...
 

Attachments

Last edited:

aboamal

Joined May 29, 2008
14
Also there is some things missing in the circuit like relays doesn't have ground.

Circuit need to be redrawing again

Tell me what is your project and I can help you in redraw it again
 

Thread Starter

chorus_84

Joined Feb 11, 2009
7
thanks for reply by everyone...
i'm really appreciate all your helps...
act i forgot to draw the link between ground of v1 and v2...
i had connected together when i was testing...
the problem is the that when switching ON the PIC and motor...
both of PIC and motor will runnning 1 or 2 secs then PIC reset...
act my project is like an Automatically Guilded Vehicle...
i need to make the car move automatically and it shud avoid obstacle...
i already done the IR sensor and porgramming part...
the most headache is the back emf of motor...
cos the motor will create back emf while it is running...
therefore, it will affect PIC and make it reset...
and that is the problem i need to solve...
thanks for regard...
i'm really appreciate any help from you all...
thanks...
 

Thread Starter

chorus_84

Joined Feb 11, 2009
7
1) You didn't say if the reset pin has been pulledup with a 10 k resistor.

2) Change connection to relays as per the attached schematic.

3) From your schematic it seems that pic ground is isolated from relays ground.

NPN transistors to conduct need grounds to be in common, connect the two grounds together.

Alberto
thanks Alberto...
i had tested the circuit...
the relay can run well when i test single part...
but the result is same when combined with PIC...
the PIC is keeping reset...
 
Top