can someone help me check?


Closed Thread
Results 1 to 18 of 18

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    OK now we have two reason to believe that the PIC is dead now. As the motor need more than 25 mA, you blow the I/O and the PIC. You MUST use a driver (MOSFET, Transistor) to drive your Motor.

    There's not really a manual way to Test if the Chip is good or bad BUT, try to erase it and reprogram it again. There's lot of chance that you'll get some error message from your programmer software.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    16F84 or 16F84A... the one you have is a newer version. There's no big difference. But if you want to have the truth, there's probably some Migration document or errata on this chip on the Microchip website.
    Steve

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

  3. #3
    Join Date
    Sep 2005
    Location
    Malaysia
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    i just so happen to have just erased and reprogramed it but i didn't get any errors when it was doin so. i even got it to verify the burn to the chip and it came back OK including the blank check.

    when i disconnect and reconnect back the diode the motor jumps to life for 1 second then nothing.. the diode heats up from there. but have a look at the original schematics from the book (attached drawing.jpg) the author did not include any transistors in between the chip and motors.
    -·=»‡«=·- saturnX -·=»‡«=·-

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


    Did you find this post helpful? Yes | No

    Default

    Yeah i see but you must have it. As your pin is probably dead, try with another i/o it will work for a few, then blow again.

    Do you have any spec of the motor you use?

    Do you have some Npn, PNP transistor or mosfet on hand? If so wich ?

    Double and triple check your Crystal and capacitor connection...
    Steve

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

  5. #5
    Join Date
    Sep 2005
    Location
    Malaysia
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    no i don't have any at hand right now. the electronic shop is 5mins from my house. i want to ask about the crystal and capacitor connections... have a look at this website schematics: http://home.planet.nl/~j.havinga/servo/servo.htm
    how come the crystal is and capacitors are only hooked up to pin 15 where as in my book it says it has to be connected to both 15 and 16. can share some light on this?

    servo motor: HiTEC HS-322HD (recommended by the author)
    Class: Standard
    Digital: No
    Programmable: No
    Voltage: 4.8v or 6.0v
    General Specs:
    - Bearings: bushing
    - Gears: Karbonite
    - 60° speed: .19 sec @ 4.8v
    - 60° speed: .15 sec @ 6.0v
    - Torque: 42.00 oz/in @ 4.8v
    - Torque: 51.00 oz/in @ 6.0v
    -- 1.57 x.79x1.46 inches
    - 1.52 ounces


    In the book the author incorporated the diode to keep the power at least consistent at around 5.3v to make it possible to run the motors.
    -·=»‡«=·- saturnX -·=»‡«=·-

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


    Did you find this post helpful? Yes | No

    Default

    ARGH forget me, i didn't notice it was a ServoMotor. So the i/o current is not a problem now.

    While i don't see the same thing as you about the only one pin connection... it is connected on 15 and 16.

    BTW, do something. Remove both capacitor, crystal and their jumpers, and sit the crystal directly on pin 15 and 16. It will work without the cap... on bread board only.

    Next thing, did you set the osc mode to HS in your programmer software???
    Steve

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

  7. #7
    Join Date
    Sep 2005
    Location
    Malaysia
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    i am using epic programmer to program the chip. are you familiar with that? umm if not explain to me "osc mode to HS" so i can find it and change it...



    found it... but what is HS mode?
    Last edited by saturnX; - 12th September 2005 at 04:57.
    -·=»‡«=·- saturnX -·=»‡«=·-

  8. #8
    Join Date
    Sep 2005
    Location
    Malaysia
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    the good news is that the diode is not heating up.. the bad news is that the "servo motor" doesn't move until i break the diode connection and reconnect it back. even so its a small little jerk then nothing else.
    -·=»‡«=·- saturnX -·=»‡«=·-

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


    Did you find this post helpful? Yes | No

    Default

    no i'm not familiar with EPIC. BUT place the following line on the top of your code. It will set the HS mode for you.
    Code:
    @ __config _HS_OSC & _WDT_OFF & _PWRTE_ON
    more info on the following link. Pay attention on #1 and #5
    http://www.picbasic.co.uk/forum/showthread.php?t=543

    i'm over for tonight.. good night and good luck!
    Steve

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

Similar Threads

  1. TMR1 external LP xtal setup check
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th October 2009, 18:11
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  3. PIC16F877A - Timer0 won't interrupt
    By WishMaster^ in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 25th April 2007, 08:25
  4. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43
  5. Even Parity Check, How?
    By Mark Scotford in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th January 2005, 09:21

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