DC Motor connected with PIC16F877A

Discussion in 'Embedded Systems and Microcontrollers' started by chorus_84, Feb 11, 2009.

  1. chorus_84

    Thread Starter New Member

    Feb 11, 2009
    7
    0
    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...
     
  2. chorus_84

    Thread Starter New Member

    Feb 11, 2009
    7
    0
    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: Feb 11, 2009
  3. mtechautomotive

    Member

    Feb 11, 2009
    10
    0
    Sounds like a noise issue. try using a reverse biased diode on the motor maybe? Or even stabilising the PSU more.

    Matt
     
  4. chorus_84

    Thread Starter New Member

    Feb 11, 2009
    7
    0
    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...
     
  5. aboamal

    Member

    May 29, 2008
    14
    0
    Sound the current of pic not enough to accurate the relay may you need to connect transistor like 2N3904 to relay
     
  6. chorus_84

    Thread Starter New Member

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

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Are the grounds really separate for the two supplies?
     
  8. aboamal

    Member

    May 29, 2008
    14
    0
    ground for both supply v1 and v2 shuold be connected otherwise transister will not pass the current to start relay
     
  9. aboamal

    Member

    May 29, 2008
    14
    0
    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
     
  10. chorus_84

    Thread Starter New Member

    Feb 11, 2009
    7
    0
    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...
     
  11. chorus_84

    Thread Starter New Member

    Feb 11, 2009
    7
    0
    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...
     
  12. vdtk3

    New Member

    Jan 16, 2009
    1
    0
    Hi !!
    You look out when drawing board, Groud of Pic need connect directly to Groud source.
     
  13. chorus_84

    Thread Starter New Member

    Feb 11, 2009
    7
    0
    thanks vdtk3...
    i will get another try on this...
    hehe...
     
Loading...