Doug Simpson
Archiver
Posts: 46,084
Let me go dig in my stamp book and see if I can point you thataway. .
. Give me a few. . .
Doug
> To: <basicstamps@yahoogroups.com>
> From: "john & lisa" <johnlisa@c...>
> Date: Tue, 30 Jan 2001 00:15:24 -0000
> Reply-to: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Doug Simpson
> Thanks Doug for your reply although I understand what you meant on both your
> emails, I don't have a clue how to actually program the stamp to carry out
> the commands you detailed below. Can you help or point me in the right
> direction.
> Many thanks
>
John
> -
>
Original Message
> From: Doug Simpson <veewee77@a...>
> To: <basicstamps@yahoogroups.com>
> Sent: Monday, January 29, 2001 3:49 PM
> Subject: Re: [noparse][[/noparse]basicstamps] Sonar
>
>
> > John,
> > Do you have shaft encoders for exact readings on the wheels to
> > measure distance? If not, you will have to use time/distance type
> > data.
> >
> > Find out how far it moves in a second, then find out how far away
> > something is and do some math.
> >
> > Say the distance measuring system says it's 5 feet to the object.
> > Your bot can move 6 inches per second. it will take 10 seconds to
> > reach the object. The rangefinder returns a number of some sort, that
> > will be a close proportion to the distance it is from an object.
> > We'll use 5ms for each inch of distance. 5 feet is 60 inches. 60
> > inches times 5 ms =300 ms for a 5 foot distance. Lets say your
> > polaroid returns a number of 300 (to make it ieasy to do the math)
> > for this distance. the stamp reads 300 from the polaroid, and tells
> > the motors to run for 6 seconds. (300ms/5ms) if it were half that
> > distance it would be 150ms (150/5ms)and the stamp would
> > do the math to get a time/distance of 5 seconds or 30 inches.
> >
> > Hope this helps, and keep in mind that these numbers are purely
> > theoretical.
> >
> > Doug
> >
> >
> > > To: <basicstamps@yahoogroups.com>
> > > From: "john & lisa" <johnlisa@c...>
> > > Date: Sun, 28 Jan 2001 14:25:04 -0000
> > > Reply-to: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] Sonar
> >
> > > Can anyone tell me how to take the 'distance' reading that the Polariod
> 6500
> > > generates to the stamp, and tell the stamp to move that 'distance'. I
> can
> > > quite easily programme each individually but I can't figure out from the
> > > Stamp manual how to use the reading I get from my sonar board, and tell
> the
> > > motors to either move that distance or stop, depending how close it is
> to an
> > > object.
> > > Many, many thanks in advance to anyone who is able to solve this
> problem,
> > > which I've been trying to solve for months.
> >
> >
John
> --
> > > -
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
>
>
>
. Give me a few. . .
Doug
> To: <basicstamps@yahoogroups.com>
> From: "john & lisa" <johnlisa@c...>
> Date: Tue, 30 Jan 2001 00:15:24 -0000
> Reply-to: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Doug Simpson
> Thanks Doug for your reply although I understand what you meant on both your
> emails, I don't have a clue how to actually program the stamp to carry out
> the commands you detailed below. Can you help or point me in the right
> direction.
> Many thanks
>
John
> -
>
Original Message
> From: Doug Simpson <veewee77@a...>
> To: <basicstamps@yahoogroups.com>
> Sent: Monday, January 29, 2001 3:49 PM
> Subject: Re: [noparse][[/noparse]basicstamps] Sonar
>
>
> > John,
> > Do you have shaft encoders for exact readings on the wheels to
> > measure distance? If not, you will have to use time/distance type
> > data.
> >
> > Find out how far it moves in a second, then find out how far away
> > something is and do some math.
> >
> > Say the distance measuring system says it's 5 feet to the object.
> > Your bot can move 6 inches per second. it will take 10 seconds to
> > reach the object. The rangefinder returns a number of some sort, that
> > will be a close proportion to the distance it is from an object.
> > We'll use 5ms for each inch of distance. 5 feet is 60 inches. 60
> > inches times 5 ms =300 ms for a 5 foot distance. Lets say your
> > polaroid returns a number of 300 (to make it ieasy to do the math)
> > for this distance. the stamp reads 300 from the polaroid, and tells
> > the motors to run for 6 seconds. (300ms/5ms) if it were half that
> > distance it would be 150ms (150/5ms)and the stamp would
> > do the math to get a time/distance of 5 seconds or 30 inches.
> >
> > Hope this helps, and keep in mind that these numbers are purely
> > theoretical.
> >
> > Doug
> >
> >
> > > To: <basicstamps@yahoogroups.com>
> > > From: "john & lisa" <johnlisa@c...>
> > > Date: Sun, 28 Jan 2001 14:25:04 -0000
> > > Reply-to: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] Sonar
> >
> > > Can anyone tell me how to take the 'distance' reading that the Polariod
> 6500
> > > generates to the stamp, and tell the stamp to move that 'distance'. I
> can
> > > quite easily programme each individually but I can't figure out from the
> > > Stamp manual how to use the reading I get from my sonar board, and tell
> the
> > > motors to either move that distance or stop, depending how close it is
> to an
> > > object.
> > > Many, many thanks in advance to anyone who is able to solve this
> problem,
> > > which I've been trying to solve for months.
> >
> >
John
> --
> > > -
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
>
>
>
Comments
emails, I don't have a clue how to actually program the stamp to carry out
the commands you detailed below. Can you help or point me in the right
direction.
Many thanks
John
-
Original Message
From: Doug Simpson <veewee77@a...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, January 29, 2001 3:49 PM
Subject: Re: [noparse][[/noparse]basicstamps] Sonar
> John,
> Do you have shaft encoders for exact readings on the wheels to
> measure distance? If not, you will have to use time/distance type
> data.
>
> Find out how far it moves in a second, then find out how far away
> something is and do some math.
>
> Say the distance measuring system says it's 5 feet to the object.
> Your bot can move 6 inches per second. it will take 10 seconds to
> reach the object. The rangefinder returns a number of some sort, that
> will be a close proportion to the distance it is from an object.
> We'll use 5ms for each inch of distance. 5 feet is 60 inches. 60
> inches times 5 ms =300 ms for a 5 foot distance. Lets say your
> polaroid returns a number of 300 (to make it ieasy to do the math)
> for this distance. the stamp reads 300 from the polaroid, and tells
> the motors to run for 6 seconds. (300ms/5ms) if it were half that
> distance it would be 150ms (150/5ms)and the stamp would
> do the math to get a time/distance of 5 seconds or 30 inches.
>
> Hope this helps, and keep in mind that these numbers are purely
> theoretical.
>
> Doug
>
>
> > To: <basicstamps@yahoogroups.com>
> > From: "john & lisa" <johnlisa@c...>
> > Date: Sun, 28 Jan 2001 14:25:04 -0000
> > Reply-to: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Sonar
>
> > Can anyone tell me how to take the 'distance' reading that the Polariod
6500
> > generates to the stamp, and tell the stamp to move that 'distance'. I
can
> > quite easily programme each individually but I can't figure out from the
> > Stamp manual how to use the reading I get from my sonar board, and tell
the
> > motors to either move that distance or stop, depending how close it is
to an
> > object.
> > Many, many thanks in advance to anyone who is able to solve this
problem,
> > which I've been trying to solve for months.
>
>
John
--
> > -
> >
> >
> >
> >
> >
>
>
>
>
>