pulse in/windspeed meter
Archiver
Posts: 46,084
Is there any way to debounce it in hardware? Would a small cap. work?
Original Message
From: Doug Heckaman <tad@h...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, October 30, 2001 8:04 PM
Subject: Re: [noparse][[/noparse]basicstamps] pulse in
> I got it to work now. But how do you debounce it? When I spin it, I says
> that I am spinning it at 4000+times per unit of time! [noparse];)[/noparse] Does anybody have
> some code that will debouce it?
>
Original Message
> From: Electronic Media Systems <dbishop@e...>
> To: <basicstamps@yahoogroups.com>
> Sent: Tuesday, October 30, 2001 7:25 PM
> Subject: RE: [noparse][[/noparse]basicstamps] pulse in
>
>
> > Nice hack for a broken mouse!
> >
> > Try tying the basic stamp pin to +5 volts through a 10K ohm resistor. If
> > that doesn't work, try tying the stamp pin to ground through the
resistor.
> > Let us know if it works!
> >
> >
> >
Original Message
> > From: Doug Heckaman [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=GzNV1pihnyEFi1HNnF4Rhl2rTaWiJL0ewRSNYw1FOe5inz5VmBFg9-SgN8CaOHAstpcRrt2rKETQ-Q]tad@h...[/url
> > Sent: Tuesday, October 30, 2001 7:20 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] pulse in
> >
> >
> > I have a broken computer mouse that I took apart. The things that the
ball
> > spins against pulses when I spin it. I hooked it up to my basicstamp 2
> with
> > pulse in but I cant seem to get it to work. I hooked up an led to it and
> > when I spun it the led flashed, so I know it works. Has anybody used one
> of
> > these? I was hoping to use it as a wind speed meter.
> >
> > Tad
> >
> >
> > 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.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
> > 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.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
>
>
> 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.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
Original Message
From: Doug Heckaman <tad@h...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, October 30, 2001 8:04 PM
Subject: Re: [noparse][[/noparse]basicstamps] pulse in
> I got it to work now. But how do you debounce it? When I spin it, I says
> that I am spinning it at 4000+times per unit of time! [noparse];)[/noparse] Does anybody have
> some code that will debouce it?
>
Original Message
> From: Electronic Media Systems <dbishop@e...>
> To: <basicstamps@yahoogroups.com>
> Sent: Tuesday, October 30, 2001 7:25 PM
> Subject: RE: [noparse][[/noparse]basicstamps] pulse in
>
>
> > Nice hack for a broken mouse!
> >
> > Try tying the basic stamp pin to +5 volts through a 10K ohm resistor. If
> > that doesn't work, try tying the stamp pin to ground through the
resistor.
> > Let us know if it works!
> >
> >
> >
Original Message
> > From: Doug Heckaman [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=GzNV1pihnyEFi1HNnF4Rhl2rTaWiJL0ewRSNYw1FOe5inz5VmBFg9-SgN8CaOHAstpcRrt2rKETQ-Q]tad@h...[/url
> > Sent: Tuesday, October 30, 2001 7:20 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] pulse in
> >
> >
> > I have a broken computer mouse that I took apart. The things that the
ball
> > spins against pulses when I spin it. I hooked it up to my basicstamp 2
> with
> > pulse in but I cant seem to get it to work. I hooked up an led to it and
> > when I spun it the led flashed, so I know it works. Has anybody used one
> of
> > these? I was hoping to use it as a wind speed meter.
> >
> > Tad
> >
> >
> > 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.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
> > 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.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
>
>
> 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.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
Comments
Original Message
From: ulibasic <ulibasic@r...>
To: <basicstamps@yahoogroups.com>
Sent: Thursday, November 01, 2001 3:41 AM
Subject: AW: [noparse][[/noparse]basicstamps] pulse in/windspeed meter
>
> Hi there,
>
> for applications like this I prefer the COUNT command. If you dont't have
to
> measure in very small intervals, which I guess is not so when you are
> measuring wind, the COUNT results are much more reliable then the PULSIN
> ones because you do not only measure one incident.
>
> Try:
>
> EXAMPLE:
>
> count 0,100,sample 'count the incoming pulses on pin 0 for 100ms
> debug? sample
> goto example 'once again
>
>
> Let me know what you find out. Have a nice day, Uli
>
>
>
Urspr