servo motor resets 16f877a


Closed Thread
Results 1 to 40 of 86

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Find enclose the schematic. You should separate the supply of the pic from the supply of the servo to avoid the electrical noise generated by the servo will disturb the functionality of your pic. Remember that 4N35 can supply a maximum current of 50 mA so if you want to use the schematic as it is, you must check that your servo does not need higher current. Naturally you do not need to change the software, because the wiring will give you a direct interfacing.

    Hope this will solve your problem.
    Attached Images Attached Images

  2. #2
    Join Date
    Sep 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    Forgive me i asked too many questions but i am a rookie about pic.my servo motor has three cable.+5 volt,ground and i have another cable as signal cable.Where do I connect signal cable??? Thank for your patience...

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by burak450 View Post
    Forgive me i asked too many questions but i am a rookie about pic.my servo motor has three cable.+5 volt,ground and i have another cable as signal cable.Where do I connect signal cable??? Thank for your patience...
    . . . . . If using the opto . . then to that . . . otherwise to the pic . . . . Why use the optoisolator . . .are you using some dangerous voltage, somewhere ? Or just trying to keep servo isolated from pic?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Sep 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    I am just trying to keep servo isolated from pic.my question is that where should I connect orange cable?


  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by burak450 View Post
    I am just trying to keep servo isolated from pic.
    You really shouldn't NEED to isolate your servo from your PIC as long as you have a well designed circuit to drive it. I've used servos with my PICs, never had a need to isolate them, ran them off the same battery pack, same wires, etc.etc.etc.
    If you're trying to run a PIC and a servo off a 9v battery (the little rectangular ones) connected to a single 7805 type regulator without any sort of cap's in the circuit anywhere, well, then, yes, you will most likely have a problem.

    Maybe if we saw your schematic, we could help you figure out a way to avoid the isolator altogether...
    Maybe you forgot to put a pullup on MCLR...maybe your oscillator setup is a bit goofy...maybe you got peanut butter in your chocolate... Who knows...

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, Burak

    THIS could be a geat help :

    http://www.parallax.com/Portals/0/Do...ic/Signals.pdf

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Sep 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    I am trying to design an object tracker (only left and right) and I am using phototransistors by using two analog inputs.I have to explain my problem more clear.When I turn power on servo tracks object but after a while sometimes pic resets itself or servo motor suddenly stops.I hope
    I explained it clearly.What do you suggest? Here is my design.When you see the design there is a lcd.I use it for watching the values of analog input.When servo rotates,brightness of lcd changes (getting brighter or darker)...I think thats another weird thing...
    Last edited by burak450; - 1st October 2008 at 01:17.

Similar Threads

  1. More Servo Woes
    By chrisshortys in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 13th May 2009, 08:40
  2. Problem with 12F629, servo and EEPROM
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 1st March 2008, 09:53
  3. Servo does not move
    By ruijc in forum General
    Replies: 12
    Last Post: - 12th November 2007, 19:14
  4. Beginner + Servo
    By james in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st July 2007, 21:31
  5. Help with Servo Control Please!
    By wireman22 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th June 2007, 18:15

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