understanding the pulse.


Closed Thread
Results 1 to 37 of 37

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Posts
    91


    Did you find this post helpful? Yes | No

    Red face

    I'm so stupid...
    I didn't have the input pin set as input, works fine now

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by geckogrotto View Post
    I'm so stupid...
    I didn't have the input pin set as input, works fine now
    I hate it when that happens

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


    Did you find this post helpful? Yes | No

    Default

    s h i t happen

    don't worry, it happen to everybody one day or another... expert or newbie...

    here's a few explanation of the open-drain output
    http://en.wikipedia.org/wiki/Open-drain
    http://www.acroname.com/robotics/inf.../opn_clct.html
    Steve

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

  4. #4
    Join Date
    Aug 2006
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    Thanks for the help guys hehe, question tho I was reading the voltage with a scope I thought that would give me an accurate voltage?

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


    Did you find this post helpful? Yes | No

    Default

    well, if the i/o was set as an output, it's impedance become really low (assume a short) hence why the level was as this low.

    Now what happen when you read it on a 'input configured' i/o?

    and depending what your scope measure... the mean, RMS, peak-to-peak, results will differ
    Steve

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

  6. #6
    Join Date
    Aug 2006
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    I was measuring it before not connected to anything. Just connected to the ground pin and the probe to the signal pin.

    I think I have enough to get me started now tho.

    Bit confused about the signal its putting out, looking at the scope I can see what I need to do but using the pulsin data its kinda jumpy.

    I have done the standard servos like mentioned above 1-2 ms constant freq but this signal is not a constant freq it seems. On the scope it looks like the width and freq changes.

    Standard servo I don't remember the exacts but like 100 to 225 or something that would be the pulse width.
    Can you explain what I should be reading on the pulsin when the freq changes?

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


    Did you find this post helpful? Yes | No

    Default

    and how fast does it change?

    will this help to do few reading and do and average... but reject those which are to away of the midpoint...

    How about using count... or an internal timer?

    what's the most important? the frequency or the duty cycle?

    sorry i don't know anything in RC receiver..
    Steve

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

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by geckogrotto View Post
    I was measuring it before not connected to anything. Just connected to the ground pin and the probe to the signal pin.

    I think I have enough to get me started now tho.

    Bit confused about the signal its putting out, looking at the scope I can see what I need to do but using the pulsin data its kinda jumpy.

    I have done the standard servos like mentioned above 1-2 ms constant freq but this signal is not a constant freq it seems. On the scope it looks like the width and freq changes.

    Standard servo I don't remember the exacts but like 100 to 225 or something that would be the pulse width.
    Can you explain what I should be reading on the pulsin when the freq changes?
    The frequency isn't changing, although it might look like it is changing based on what the rest of the servo's are doing. In other words, say you've got 4 servos...1-3 are all at one end with a pulse width of 1ms and the 4th servo is the one you're playing with. It'll look like one thing on the 'scope. Then if servo's 1-3 go to the other extreme at 2ms, the signal off the 4th servo will look like something else on the 'scope.

    It might be a bit jumpy because the input frequency is 'only' 50hz or so, and it's supposed to vary a little bit. Play around with your trigger and 'sweep delay' if you have one on your 'scope. You should be able to get it to smooth out. I've got a Tek 2246A, 4 channel 'scope, I can plug 4 servo's into it at once and be able to see the pulse's on all 4 and they are all steady. But, I have to play with the trigger and sweep delay a bit before they steady out.

  9. #9
    Join Date
    Aug 2006
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    skimask, I don't think this is the case.
    This isn't a standard servo im working with, When I measure a signal from a standard servo I see what your talking about and it works as expected.

    Here is a little pic to help explain I hope.


    I don't know how to figure out to read the signal because is moving around unlike the standard servo signal.

    Mister_e
    Will reply to you in another post
    Attached Images Attached Images  

Similar Threads

  1. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 02:59
  2. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 09:42
  3. Replies: 3
    Last Post: - 13th September 2008, 18:40
  4. Better understanding PULSIN
    By Wirecut in forum mel PIC BASIC
    Replies: 12
    Last Post: - 29th June 2008, 11:17
  5. Pulse Frequency Multiplication
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st August 2005, 11:39

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