why?....


Closed Thread
Results 1 to 7 of 7

Thread: why?....

  1. #1
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27

    Default why?....

    I use Pic F877 on my project. ı count rotaion of electrical motor rpm.But when ı started the motor pic reset it itself. WHY?.Pic and motor plugged same electrical wire .
    How can ı solve this stuation.
    Thanks everyone who help me.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Could be tons of things, can you post your schematic?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Could be tons of things, can you post your schematic?
    In the other thread, he was using RA4 to count the pulses.
    And I'd be willing to bet this motor and the PIC are on the same power supply.

  4. #4
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Isn't that what he said? He's got both on the same power supply!

    BobK

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by BobK View Post
    Isn't that what he said? He's got both on the same power supply!

    BobK
    Well, I guess what I meant was that, not only is the PIC controlling the motor, but it's probably supplying it's power (maybe with a darlington pair, MOSFET, whatever), AND/OR both the PIC and the motor are drawing their power from the same power supply.

  6. #6
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27


    Did you find this post helpful? Yes | No

    Default why

    Quote Originally Posted by skimask View Post
    In the other thread, he was using RA4 to count the pulses.
    And I'd be willing to bet this motor and the PIC are on the same power supply.
    Yes .You are right. I use RA4 for counting.Is that wrong pin?
    I use regulated supply for Pic(5V DC) and motor is connected to same plug (on the wall) but not driven energy from regulated supply that pic use.
    some time everything goes good but sometimes occurs this problem.
    I use relay to run motor.Pic drive raley than motor running.Motor uses 220Volt AC not pic supply
    Last edited by turkuaz; - 17th June 2007 at 12:56.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by turkuaz View Post
    Yes .You are right. I use RA4 for counting.Is that wrong pin?
    I use regulated supply for Pic(5V DC) and motor is connected to same plug (on the wall) but not driven energy from regulated supply that pic use.
    some time everything goes good but sometimes occurs this problem.
    I use relay to run motor.Pic drive raley than motor running.Motor uses 220Volt AC not pic supply
    Got a snubber across the relay coil? Good caps across Vdd and Vss on the PIC? Good pullup on MCLR?
    RA4 is only an issue if using it for an output.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts