Please explain about this program


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    wafagenius's Avatar
    wafagenius Guest


    Did you find this post helpful? Yes | No

    Default Its not fully working

    The PIC is running,it have power,there is a reading on ADC,there is no error message while compiling.However after burn it to PIC only one of the motor working.I have no idea what is going on. in configuration bits the setting is "oscillator is HS mode" and "watchdog timer is ON" and other configuration is off.I have attached the circuit,I really need help

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default

    I looked at the code and it seems that if one wheel is turning the other should too, codewise. I think you have an electrical problem or perhaps a bad servo.

    Try swapping the left and right servo connectors to see if it's the actual servo that doesnt work. If the one that doesn't work now start working when you swap places it's either something in the code or a bad connection on the circuitboard. Do you have 6V and GND on both servo connectors?

    It can also be a bad pin on the PIC, can you try moving the servo control lines from PortC.0 and PortC.1 to PortB.0 and PortB.1 for example. Don't forget to change the code accordingly.

    /Henrik Olsson.

  3. #3
    wafagenius's Avatar
    wafagenius Guest


    Did you find this post helpful? Yes | No

    Default Thanks For Looking

    Thanks anyway MR HenrikOlsson due to your explaination. I really appreciated it. I will look into what you have suggested.

    Regards

    Hasnul Wafa

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


    Did you find this post helpful? Yes | No

    Default Tie up loose ends

    wafagenius,
    Addition to other's suggestions: Tie all unused PIC pins to ground or power, do not allow pins to float, many strange and unwanted things occur with open pins.
    Your schematic shows many unused pins.
    Joe

  5. #5
    wafagenius's Avatar
    wafagenius Guest


    Did you find this post helpful? Yes | No

    Default Thanks

    Thanks Bro for the suggestion.

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. Help with DS18B20 program
    By presario1425 in forum mel PIC BASIC Pro
    Replies: 38
    Last Post: - 22nd August 2012, 00:50
  3. Replies: 1
    Last Post: - 23rd May 2009, 09:22
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. PIC16F684 Program question
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th December 2006, 14:30

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