Shop OBEX P1 Docs P2 Docs Learn Events
pulses>>>> to Jonathan Peakall — Parallax Forums

pulses>>>> to Jonathan Peakall

ArchiverArchiver Posts: 46,084
edited 2004-04-05 15:10 in General Discussion
Dear Jonathan Peakall,

my application is to measure the velocity of a real car with the
maxamimum accurity that stamp can do. also it should measure at least
100 mph and if it possible to calculate more speed it will be ok. i
think If we use the PULSIN command to see how long a pulse, the
problem may will be with the car lenght specialy if we use laser
sensor!!



--- In basicstamps@yahoogroups.com, "Jonathan Peakall"
<jpeakall@p...> wrote:
> Daen,
>
> How to do what you want depends on what you are doing. Is it a real
car or a
> model, and how fast is it going? What level of accuracy do you
need? The
> Stamp doesn't have a timer, but you can count program loops and get
pretty
> good accuarcy.
>
> I made a velocity meter for my coilgun using a Stamp. I did it with
one
> sensor, and used the PULSIN command to see how long a pulse was
made as the
> projectile went through the gate. As the length of the projectile
is known,
> the speed can be calculated from the length of the pulse. Works
quite well
> for my application.
>
> Give us some more details of your application, and maybe we can be
of more
> help.
>
> Jonathan
>
> www.madlabs.info
>
>
>
Original Message
> From: "daen78" <daen78@y...>
> To: <basicstamps@yahoogroups.com>
> Sent: Thursday, April 01, 2004 5:08 AM
> Subject: [noparse][[/noparse]basicstamps] pulses
>
>
> >
> >
> >
> > I want to measure a speed of car...
> >
> > I have 2 sensors! When the car cross the first sensor, i
> > receive
> > a pulse! When the car cross cross the second sensor, i receive
other
> > pulse!
> >
> > I want to measure the lenght between pulses...does someone
> > have some suggestion? and what is the best IR sensor should i
use??
> >
> >
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
Subject and
> Body of the message will be ignored.
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-04-03 19:09
    daen78,

    what kind of car is this? is it manual or automatic transmission.
    If it's automatic you can only get true speed measurements from the
    drivetrain.

    If it's manual, you could put a sensor on the CAM pulley (or whatever pulley
    is external to the cam). You'll still need to know which gear you are in
    (use switches?) and some calibration formulas to boot.

    Only problem with the manual transmission is the time it takes you to
    engage/disengage the clutch. As the motor will be reving and not all the
    power will be on the drivetrain yet (clutch semi-slipping).

    sb

    Original Message
    From: "daen78" <daen78@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, April 03, 2004 3:51 AM
    Subject: [noparse][[/noparse]basicstamps] Re: pulses>>>> to Jonathan Peakall


    > Dear Jonathan Peakall,
    >
    > my application is to measure the velocity of a real car with the
    > maxamimum accurity that stamp can do. also it should measure at least
    > 100 mph and if it possible to calculate more speed it will be ok. i
    > think If we use the PULSIN command to see how long a pulse, the
    > problem may will be with the car lenght specialy if we use laser
    > sensor!!
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "Jonathan Peakall"
    > <jpeakall@p...> wrote:
    > > Daen,
    > >
    > > How to do what you want depends on what you are doing. Is it a real
    > car or a
    > > model, and how fast is it going? What level of accuracy do you
    > need? The
    > > Stamp doesn't have a timer, but you can count program loops and get
    > pretty
    > > good accuarcy.
    > >
    > > I made a velocity meter for my coilgun using a Stamp. I did it with
    > one
    > > sensor, and used the PULSIN command to see how long a pulse was
    > made as the
    > > projectile went through the gate. As the length of the projectile
    > is known,
    > > the speed can be calculated from the length of the pulse. Works
    > quite well
    > > for my application.
    > >
    > > Give us some more details of your application, and maybe we can be
    > of more
    > > help.
    > >
    > > Jonathan
    > >
    > > www.madlabs.info
    > >
    > >
    > >
    Original Message
    > > From: "daen78" <daen78@y...>
    > > To: <basicstamps@yahoogroups.com>
    > > Sent: Thursday, April 01, 2004 5:08 AM
    > > Subject: [noparse][[/noparse]basicstamps] pulses
    > >
    > >
    > > >
    > > >
    > > >
    > > > I want to measure a speed of car...
    > > >
    > > > I have 2 sensors! When the car cross the first sensor, i
    > > > receive
    > > > a pulse! When the car cross cross the second sensor, i receive
    > other
    > > > pulse!
    > > >
    > > > I want to measure the lenght between pulses...does someone
    > > > have some suggestion? and what is the best IR sensor should i
    > use??
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > To UNSUBSCRIBE, just send mail to:
    > > > basicstamps-unsubscribe@yahoogroups.com
    > > > from the same email address that you subscribed. Text in the
    > Subject and
    > > Body of the message will be ignored.
    > > >
    > > > Yahoo! Groups Links
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-03 19:23
    What kind of car is this and what acuracy do you want? I have done this
    several times. Depending on accuracy and which stamp you have will dictate the
    best
    route to complete this project.


    ken
    ==================
    my application is to measure the velocity of a real car with the
    maxamimum accurity that stamp can do. also it should measure at least
    100 mph and if it possible to calculate more speed it will be ok.


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-03 19:34
    Similiar to a radar gun??

    --- smartdim@a... wrote:
    > What kind of car is this and what acuracy do you
    > want? I have done this
    > several times. Depending on accuracy and which stamp
    > you have will dictate the best
    > route to complete this project.
    >
    >
    > ken
    > ==================
    > my application is to measure the velocity of a real
    > car with the
    > maxamimum accurity that stamp can do. also it should
    > measure at least
    > 100 mph and if it possible to calculate more speed
    > it will be ok.
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been
    > removed]
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed.
    > Text in the Subject and Body of the message will be
    > ignored.
    >
    > Yahoo! Groups Links
    >
    >
    > basicstamps-unsubscribe@yahoogroups.com
    >
    >
    >


    =====

    The Boat must float and all fish must take the bait sooner or later.






    __________________________________
    Do you Yahoo!?
    Yahoo! Small Business $15K Web Design Giveaway
    http://promotions.yahoo.com/design_giveaway/
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-03 19:36
    Put a marker on one tire, then read that mark with a
    visual sensor. count the revolutions? I do not know,
    I am merely offering an idea.


    --- SB <steve.brady@r...> wrote:
    > daen78,
    >
    > what kind of car is this? is it manual or automatic
    > transmission.
    > If it's automatic you can only get true speed
    > measurements from the
    > drivetrain.
    >
    > If it's manual, you could put a sensor on the CAM
    > pulley (or whatever pulley
    > is external to the cam). You'll still need to know
    > which gear you are in
    > (use switches?) and some calibration formulas to
    > boot.
    >
    > Only problem with the manual transmission is the
    > time it takes you to
    > engage/disengage the clutch. As the motor will be
    > reving and not all the
    > power will be on the drivetrain yet (clutch
    > semi-slipping).
    >
    > sb
    >
    >
    Original Message
    > From: "daen78" <daen78@y...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Saturday, April 03, 2004 3:51 AM
    > Subject: [noparse][[/noparse]basicstamps] Re: pulses>>>> to Jonathan
    > Peakall
    >
    >
    > > Dear Jonathan Peakall,
    > >
    > > my application is to measure the velocity of a
    > real car with the
    > > maxamimum accurity that stamp can do. also it
    > should measure at least
    > > 100 mph and if it possible to calculate more speed
    > it will be ok. i
    > > think If we use the PULSIN command to see how
    > long a pulse, the
    > > problem may will be with the car lenght specialy
    > if we use laser
    > > sensor!!
    > >
    > >
    > >
    > > --- In basicstamps@yahoogroups.com, "Jonathan
    > Peakall"
    > > <jpeakall@p...> wrote:
    > > > Daen,
    > > >
    > > > How to do what you want depends on what you are
    > doing. Is it a real
    > > car or a
    > > > model, and how fast is it going? What level of
    > accuracy do you
    > > need? The
    > > > Stamp doesn't have a timer, but you can count
    > program loops and get
    > > pretty
    > > > good accuarcy.
    > > >
    > > > I made a velocity meter for my coilgun using a
    > Stamp. I did it with
    > > one
    > > > sensor, and used the PULSIN command to see how
    > long a pulse was
    > > made as the
    > > > projectile went through the gate. As the length
    > of the projectile
    > > is known,
    > > > the speed can be calculated from the length of
    > the pulse. Works
    > > quite well
    > > > for my application.
    > > >
    > > > Give us some more details of your application,
    > and maybe we can be
    > > of more
    > > > help.
    > > >
    > > > Jonathan
    > > >
    > > > www.madlabs.info
    > > >
    > > >
    > > >
    Original Message
    > > > From: "daen78" <daen78@y...>
    > > > To: <basicstamps@yahoogroups.com>
    > > > Sent: Thursday, April 01, 2004 5:08 AM
    > > > Subject: [noparse][[/noparse]basicstamps] pulses
    > > >
    > > >
    > > > >
    > > > >
    > > > >
    > > > > I want to measure a speed of car...
    > > > >
    > > > > I have 2 sensors! When the car cross the first
    > sensor, i
    > > > > receive
    > > > > a pulse! When the car cross cross the second
    > sensor, i receive
    > > other
    > > > > pulse!
    > > > >
    > > > > I want to measure the lenght between
    > pulses...does someone
    > > > > have some suggestion? and what is the best IR
    > sensor should i
    > > use??
    > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > > > > To UNSUBSCRIBE, just send mail to:
    > > > > basicstamps-unsubscribe@yahoogroups.com
    > > > > from the same email address that you
    > subscribed. Text in the
    > > Subject and
    > > > Body of the message will be ignored.
    > > > >
    > > > > Yahoo! Groups Links
    > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > >
    > >
    > >
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > > from the same email address that you subscribed.
    > Text in the Subject and
    > Body of the message will be ignored.
    > >
    > > Yahoo! Groups Links
    > >
    > >
    > >
    > >
    > >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed.
    > Text in the Subject and Body of the message will be
    > ignored.
    >
    > Yahoo! Groups Links
    >
    >
    > basicstamps-unsubscribe@yahoogroups.com
    >
    >
    >


    =====

    The Boat must float and all fish must take the bait sooner or later.






    __________________________________
    Do you Yahoo!?
    Yahoo! Small Business $15K Web Design Giveaway
    http://promotions.yahoo.com/design_giveaway/
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-05 15:10
    Daen,

    We still need a little more detail on your project. Can the device be in the
    car, or do you want to drive it through a sensor?

    If the sensor must be outside of the car: The PULSIN with a single photogate
    probably won't work, because the PULSIN command time period is too short.
    Unless you are going REALLY fast ;-). However, I bet you could have two
    sensors, and start a timing loop when the car passes through the first gate.
    Then have the program count loops until the second gate is triggered. The
    only difficulty with this method is you have to have an oscilloscope to
    measure the length of your loop in order to get an accurate readout in MPH.
    If you are going to use infrared sensors, you may want to consider a
    38-455kHz sensor instead of a regular type, as they have better range and
    aren't as easily spoofed by ambient light.

    Some of the other suggestions in this thread will work if you can have the
    device in the car. If this is the case you have a number of options, like a
    NIB magnet on the exsiting speedo cable. Let us know exactly what you need.

    Jonathan

    www.madlabs.info


    Original Message
    From: "daen78" <daen78@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, April 03, 2004 1:51 AM
    Subject: [noparse][[/noparse]basicstamps] Re: pulses>>>> to Jonathan Peakall


    > Dear Jonathan Peakall,
    >
    > my application is to measure the velocity of a real car with the
    > maxamimum accurity that stamp can do. also it should measure at least
    > 100 mph and if it possible to calculate more speed it will be ok. i
    > think If we use the PULSIN command to see how long a pulse, the
    > problem may will be with the car lenght specialy if we use laser
    > sensor!!
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "Jonathan Peakall"
    > <jpeakall@p...> wrote:
    > > Daen,
    > >
    > > How to do what you want depends on what you are doing. Is it a real
    > car or a
    > > model, and how fast is it going? What level of accuracy do you
    > need? The
    > > Stamp doesn't have a timer, but you can count program loops and get
    > pretty
    > > good accuarcy.
    > >
    > > I made a velocity meter for my coilgun using a Stamp. I did it with
    > one
    > > sensor, and used the PULSIN command to see how long a pulse was
    > made as the
    > > projectile went through the gate. As the length of the projectile
    > is known,
    > > the speed can be calculated from the length of the pulse. Works
    > quite well
    > > for my application.
    > >
    > > Give us some more details of your application, and maybe we can be
    > of more
    > > help.
    > >
    > > Jonathan
    > >
    > > www.madlabs.info
    > >
    > >
    > >
    Original Message
    > > From: "daen78" <daen78@y...>
    > > To: <basicstamps@yahoogroups.com>
    > > Sent: Thursday, April 01, 2004 5:08 AM
    > > Subject: [noparse][[/noparse]basicstamps] pulses
    > >
    > >
    > > >
    > > >
    > > >
    > > > I want to measure a speed of car...
    > > >
    > > > I have 2 sensors! When the car cross the first sensor, i
    > > > receive
    > > > a pulse! When the car cross cross the second sensor, i receive
    > other
    > > > pulse!
    > > >
    > > > I want to measure the lenght between pulses...does someone
    > > > have some suggestion? and what is the best IR sensor should i
    > use??
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > To UNSUBSCRIBE, just send mail to:
    > > > basicstamps-unsubscribe@yahoogroups.com
    > > > from the same email address that you subscribed. Text in the
    > Subject and
    > > Body of the message will be ignored.
    > > >
    > > > Yahoo! Groups Links
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
Sign In or Register to comment.