Trouble starting PIC or internal clock on 12f683?


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    The code does act funny if the input from the pulses exceeds the 1ms to 2ms range. Check your transmitter, and see if you have any channels above 100%. You might try changing them to 95% in both directions, just to make sure.

    Walter

    Edit:
    Do you have the diodes on the three incomming receiver signals?
    Last edited by ScaleRobotics; - 24th March 2010 at 18:07.

  2. #2
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    Yes, the diodes are there and I get good 5v pulses just like on your web page. Current status:

    all channels 85% with 0 offset and 0 subtrim.

    No changes detected in output pulses.

    Could the missing servo 1 pulse be because I have the WDT on? (Remember, it won't start if I set WDT off).

  3. #3
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Sorry to hear that.

    Let me double check what I have when I get home tonight. I will let you know what I have, and double check my wiring to see if I differ from my schematic.

    Thanks for the feedback.

    Walter

  4. #4
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    Thanks Walter.

    In my circuit, I needed a pull-down resistor for pin 5. Without it the trailing edge of each pulse was badly sloped. It could be just a difference between our receivers, mine is a Spektrum AR6000.

    Best,

    Mike

  5. #5
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Mine were a little sloped as well. But when I tried to add a resistor, it dropped the voltage down too much for it to detect a pulse. I suppose they would all slope equally, so it should not change things too much. Or, a transistor could be added to boost the voltage.

    I did notice that I had my MCLRE_ON on my circuit, but did not show it on the schematic. But you can sort of see it in the picture, with the red wire:


    I used
    Code:
    @ __config _INTRC_OSC_NOCLKOUT  & _WDT_OFF & _MCLRE_ON & _CP_OFF
    I will test with an extra receiver or two tonight, but you might try changing the osc setting, and MCLRE to what I have above, tying MCL to high, and using no resistors for the receiver in on pin5.

    Walter

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