Pulsin Stabilization


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: Pulsin Stabilization

    Thought about that too, tried it on a 2.4ghz set (which should be a more solid signal) and yet it still does it, also I would expect it to remain in the last state when the Rx is off yet they still randomly turns on and off again, :-(. I tried a 1k res to ground from GPIO.3 but then it does not work at all, :-(

    Its ironic that something this "simple" is proving such an issue, probably spent 24 hours solid on this project and hundreds of rewrites but still not etting it, :-(

    I have another circuit that i had done for another application where i used the same principles that works flawlessly, yet this just doesnt, only this one is on vero board.
    Last edited by Bobbo_ZA; - 30th August 2011 at 20:52. Reason: Spelling

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Pulsin Stabilization

    An open pin is not a problem as long as you code it as an output near the beginning of the program.

    You might try a debounce type of routine to hide false signals.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: Pulsin Stabilization

    It might be helpful to take your unused GPIO.2 and connect it to the Rx of a RS-232 port on your PC, then use DEBUGOUT or SEROUT2 to send the value of PULSIN to the PC. It is even better if you have one of those little TTL-RS232 converters lying around and use that.

    Serial ports make wonderful debugging tools.
    Charles Linquist

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


    Did you find this post helpful? Yes | No

    Default Re: Pulsin Stabilization

    Motion seconded.
    Steve

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

  5. #5
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: Pulsin Stabilization

    I actually have a Max232N board hanging around that i made up some time back and never used, will have a look at the DS again and see how to connect it again, :-) see if it can give me abything usefull.

    So strange that the same / similar circuit can work in one application and then slightly modified it gives unstable results.

    I suspect there may be something in my soldering but I went over it with a fine tooth comb and still its doing it, :-(

    was tempted to dump it and remake it from scratch last night and start with the Rx input and single outout and then add the rest to it if it worked.

    Question, Is it wise / required to run the Rx singnal through a resistor or should i connect it straight to the pin? Aslo, is there anything else i should do to the pin? i.e. res to Vcc or pullups etc?

  6. #6
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: Pulsin Stabilization

    Well, so i plugged the 12f onto the breadboard that has a 18f connected to a LCD and programed the 18F to show me what pulsin was giving me, the pulsin value ranges between around 120 and 180 which is what i expected, however, it only fluctuates by 4-5 points, in the code (above) I'm aksing it when the value is greater than 160 turn on the lighs and less than 130 turn them off, even when the pulsin is staying less than 130 or above 160 the lights randomly flash, :-(, pulling my hair out with this.

    Replaced the PIC, rechecked all the connections and that all the respective tracks were cut on the vero etc yet it keeps doing it.

    I tried averaging 3-4 readings but it still does it (causes my "strobe" LED to slow down quite a bit as well).

    Considering scrapping it completly and starting from scratch, even replaced the cap (1uf...should i be using .1uf?) on vcc.

    Many thanks
    Rob

  7. #7
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: Pulsin Stabilization

    Just bought a Pickit 2, reckon my dodgy homebrew programmer might be a part of the issue, think i've been through 10 PICs in the last 2 hours keeps bombing the OSCAL value and toasting them, :-(

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