Shop OBEX P1 Docs P2 Docs Learn Events
Pulse Width — Parallax Forums

Pulse Width

ArchiverArchiver Posts: 46,084
edited 2002-11-04 00:58 in General Discussion
I am using your Basic Stamp II for my Senior project. I need a way to
measure Pulse width for some Temperate sensors. Is there way to program the
software to time the how long a pulse is at a specific logic level? IE. A
TTL signal at +5v and 0v

I need to time these levels so that I can convert the Serial digital signal
from the Temperature sensors to number data for comparison.

Thanks!!!!

Tobin Moore

DeVry Institute of Technology
Columbus Ohio

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-04-11 12:54
    Look at the pulsin command. See page 289 of the manual (page 291 of the
    pdf). The manual is available under Downloads on the Parallax web site.
    Here is a link for the manual.

    http://64.27.84.239/downloads/Documentation/Basic%20Stamps/BASIC%20Stamp%20Manua\
    l%20v1.9.pdf


    Michael

    >
    >
    > I am using your Basic Stamp II for my Senior project. I need a way to
    > measure Pulse width for some Temperate sensors. Is there way to program the
    > software to time the how long a pulse is at a specific logic level? IE. A
    > TTL signal at +5v and 0v
    >
    > I need to time these levels so that I can convert the Serial digital signal
    > from the Temperature sensors to number data for comparison.
    >
    > Thanks!!!!
    >
    > Tobin Moore
    >
    > DeVry Institute of Technology
    > Columbus Ohio
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-04 00:47
    Here's the deal:
    I'm want to control my robot with a Nintendo 64 video game
    controller. The way the controller works is that it gives out certain
    pulses depending of a 0 or 1. For instance, 3 microseconds low and 1
    microseconds high is a 0 and the other way around for a 1. I wanted
    to use a basic stamp 1 on the robot but i was reading the manual and
    it says that the pulsin command only gives the length of pulse widths
    in steps of 10 microseconds. That is way to long. I don't want to
    spend the extra money for a different version of basic stamp. Does
    anyone have any ideas to how i can interperet the information coming
    out of the controller? or and cheap extra hardware that i could add
    on?
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-04 00:52
    In a message dated 11/03/2002 19:49:23 Eastern Standard Time,
    Duncanla@c... writes:


    > Here's the deal:
    > I'm want to control my robot with a Nintendo 64 video game
    > controller. The way the controller works is that it gives out certain
    > pulses depending of a 0 or 1. For instance, 3 microseconds low and 1
    > microseconds high is a 0 and the other way around for a 1. I wanted
    > to use a basic stamp 1 on the robot but i was reading the manual and
    > it says that the pulsin command only gives the length of pulse widths
    > in steps of 10 microseconds. That is way to long. I don't want to
    > spend the extra money for a different version of basic stamp. Does
    > anyone have any ideas to how i can interperet the information coming
    > out of the controller? or and cheap extra hardware that i could add
    > on?
    >
    >

    For Duncan

    Have you thought about using a Sony TV Remote. They are not very expensive
    and I could help you with the code. I don't know anything about the Nintendo
    but I assume it is not IR.
    Sid Weaver
    W4EKQ
    Port Richey, FL


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-04 00:58
    --- In basicstamps@y..., "duncanla22" <Duncanla@c...> wrote:
    > Here's the deal:
    > I'm want to control my robot with a Nintendo 64 video game
    > controller. The way the controller works is that it gives out
    certain
    > pulses depending of a 0 or 1. For instance, 3 microseconds low and
    1
    > microseconds high is a 0 and the other way around for a 1. I wanted
    > to use a basic stamp 1 on the robot but i was reading the manual
    and
    > it says that the pulsin command only gives the length of pulse
    widths
    > in steps of 10 microseconds. That is way to long. I don't want to
    > spend the extra money for a different version of basic stamp. Does
    > anyone have any ideas to how i can interperet the information
    coming
    > out of the controller? or and cheap extra hardware that i could add
    > on?

    By the way, if you want to know more about the Nintendo 64 controller
    you can find how it works here: http://www.st-hans.de/N64.htm
Sign In or Register to comment.