R.P.M
Archiver
Posts: 46,084
Hi Folks,
Briefly what I wish to do is using a encoder wheel with 120 slots
attached to a bicycle wheel. (bike is held in a frame stationary)
Output the results into Excel and return a graph of times and
revs,this is then used via a formula to find the input of the cyclist
effor in watts,the setup is to be used to improve the cyclists pedal
power.I am using Wedge software toput the s
erial output into Excel,that part seems to enter the data OK.
So far I have used the tach App. on page 91 of the Parallax manual
with a few small alterations, In my experimental setup I am usinga 4"
encoder wheel with 80 slots attached to a small motor,to register low
pulses I had to increase the delay(as for starting up to get to top
speed 1 to approx 200rpm.
Following is the code I tried to use.
Input 7
Output 0
RPM: pulsin 7,0.W2 'read pulses on pin 7
Let w2 = w2/100 'w2/100 divided into 60,000 equals
let w2=w2/80 '6,000,000/w2 (60 seconds in 10-us units
let w2 = w2/80 'extra divisions for 80 hole encoder wheel
'Transmit data followed by carriage return and linefeed.
if w2<> sendit
Other: pause 1500 'wait 1.5 secs between readings
Goto RPM
Sendit:
serout0,n2400,(w2,10,13)
pause 1500
Goto RPM
When the stamp is running (Bs1, I also have Bs2 if need be) It will
ouputsay 150rpm for about 6 incidents then flip to 123 for a couple
of times the away again.
I am using a pulse shaper for the input to BS! also I hace a separate
timer from 2mins to 30 mins.I would prefer to use the stamp but don't
know if this is possible.The reason for thw 120 slot encoder is for a
decimal reading in secs.Within 1 rpm is not good enough.
If anyone can oblige it would be great.
I did ask Nuts & Volts abot two months ago but nothing has happened
then I found E-Groups looks great.
Thanks
Bernie Byers
Briefly what I wish to do is using a encoder wheel with 120 slots
attached to a bicycle wheel. (bike is held in a frame stationary)
Output the results into Excel and return a graph of times and
revs,this is then used via a formula to find the input of the cyclist
effor in watts,the setup is to be used to improve the cyclists pedal
power.I am using Wedge software toput the s
erial output into Excel,that part seems to enter the data OK.
So far I have used the tach App. on page 91 of the Parallax manual
with a few small alterations, In my experimental setup I am usinga 4"
encoder wheel with 80 slots attached to a small motor,to register low
pulses I had to increase the delay(as for starting up to get to top
speed 1 to approx 200rpm.
Following is the code I tried to use.
Input 7
Output 0
RPM: pulsin 7,0.W2 'read pulses on pin 7
Let w2 = w2/100 'w2/100 divided into 60,000 equals
let w2=w2/80 '6,000,000/w2 (60 seconds in 10-us units
let w2 = w2/80 'extra divisions for 80 hole encoder wheel
'Transmit data followed by carriage return and linefeed.
if w2<> sendit
Other: pause 1500 'wait 1.5 secs between readings
Goto RPM
Sendit:
serout0,n2400,(w2,10,13)
pause 1500
Goto RPM
When the stamp is running (Bs1, I also have Bs2 if need be) It will
ouputsay 150rpm for about 6 incidents then flip to 123 for a couple
of times the away again.
I am using a pulse shaper for the input to BS! also I hace a separate
timer from 2mins to 30 mins.I would prefer to use the stamp but don't
know if this is possible.The reason for thw 120 slot encoder is for a
decimal reading in secs.Within 1 rpm is not good enough.
If anyone can oblige it would be great.
I did ask Nuts & Volts abot two months ago but nothing has happened
then I found E-Groups looks great.
Thanks
Bernie Byers
Comments
Briefly what I wish to do is using a encoder wheel with 120 slots
attached to a bicycle wheel. (bike is held in a frame stationary)
Output the results into Excel and return a graph of times and
revs,this is then used via a formula to find the input of the cyclist
effor in watts,the setup is to be used to improve the cyclists pedal
power.I am using Wedge software toput the s
erial output into Excel,that part seems to enter the data OK.
So far I have used the tach App. on page 91 of the Parallax manual
with a few small alterations, In my experimental setup I am usinga4"
encoder wheel with 80 slots attached to a small motor,to register low
pulses I had to increase the delay(as for starting up to get to top
speed 1 to approx 200rpm.
Following is the code I tried to use.
········ Input 7
········ Output 0
RPM:· pulsin 7,0.W2··· 'read pulses on pin 7
····· Let w2 = w2/100· 'w2/100 divided into60,000 equals
····· let w2=w2/80····'6,000,000/w2 (60 seconds in 10-us units
····· let w2 = w2/80·· 'extradivisions for 80 hole encoder wheel
'Transmit data followed by carriage return and linefeed.
··· Goto RPM
Sendit:
······ serout0,n2400,(w2,10,13)
······ pause 1500
········ Goto RPM
When the stamp is running (Bs1, I also have Bs2 if need be) It will
ouputsay 150rpm for about 6 incidents then flip to 123 for a couple
of times the away again.
I am using a pulse shaper for the input to BS! also I hace a separate
timer from 2mins to 30 mins.I would prefer to use the stamp but don't
know if this is possible.The reason for thw 120 slot encoder is for a
decimal reading in secs.Within 1 rpm is not good enough.
If anyone can oblige it would be great.
I did ask Nuts & Volts abot two months ago but nothing has happened
then I found E-Groups looks great.
Thanks
Bernie Byers
Regards
Bernie Byers
Original Message
From: Bruce Bates
To: basicstamps@egroups.com
Sent: Friday, October 13, 2000 4:13 PM
Subject: Re: [noparse][[/noparse]basicstamps] R.P.M
At 10/13/2000 +0000 02:56 AM, you wrote:
Briefly what I wish to do is using a encoder wheel with 120 slots
attached to a bicycle wheel. (bike is held in a frame stationary)
Output the results into Excel and return a graph of times and
revs,this is then used via a formula to find the input of the cyclist
effor in watts,the setup is to be used to improve the cyclists pedal
power.I am using Wedge software toput the s
erial output into Excel,that part seems to enter the data OK.
So far I have used the tach App. on page 91 of the Parallax manual
with a few small alterations, In my experimental setup I am usinga 4"
encoder wheel with 80 slots attached to a small motor,to register low
pulses I had to increase the delay(as for starting up to get to top
speed 1 to approx 200rpm.
Following is the code I tried to use.
········ Input 7
········ Output 0
RPM:· pulsin 7,0.W2··· 'read pulses on pin 7
····· Let w2 = w2/100· 'w2/100 divided into 60,000 equals
····· let w2=w2/80···· '6,000,000/w2 (60 seconds in 10-us units
····· let w2 = w2/80·· 'extra divisions for 80 hole encoder wheel
'Transmit data followed by carriage return and linefeed.
··· Goto RPM
Sendit:
······ serout0,n2400,(w2,10,13)
······ pause 1500
········ Goto RPM
When the stamp is running (Bs1, I also have Bs2 if need be) It will
ouputsay 150rpm for about 6 incidents then flip to 123 for a couple
of times the away again.
I am using a pulse shaper for the input to BS! also I hace a separate
timer from 2mins to 30 mins.I would prefer to use the stamp but don't
know if this is possible.The reason for thw 120 slot encoder is for a
decimal reading in secs.Within 1 rpm is not good enough.
If anyone can oblige it would be great.
I did ask Nuts & Volts abot two months ago but nothing has happened
then I found E-Groups looks great.
Thanks
Bernie Byers
own, then your stamp polls it once a second for the result..
That will free your Stamp up to transmit data to PC without any misses..
Stewart
Original Message
From: Bruce Bates [noparse]/noparse]SMTP:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=OfMX6dBUya80WlCGpCq6frCA2xWUdTsLsmBjdoKpcp3Lso1wZt7XKDQVcjZN83hsO2iDUIoi4HtfzGCTK--JZ38]bvbates@u...[/url
Sent: Friday, 13 October 2000 1:13
To: basicstamps@egroups.com
Subject: Re: [noparse][[/noparse]basicstamps] R.P.M
At 10/13/2000 +0000 02:56 AM, you wrote:
Hi Folks,
Briefly what I wish to do is using a encoder wheel with 120 slots
attached to a bicycle wheel. (bike is held in a frame stationary)
Output the results into Excel and return a graph of times and
revs,this is then used via a formula to find the input of the cyclist
effor in watts,the setup is to be used to improve the cyclists pedal
power.I am using Wedge software toput the s
erial output into Excel,that part seems to enter the data OK.
So far I have used the tach App. on page 91 of the Parallax manual
with a few small alterations, In my experimental setup I am usinga 4"
encoder wheel with 80 slots attached to a small motor,to register low
pulses I had to increase the delay(as for starting up to get to top
speed 1 to approx 200rpm.
Following is the code I tried to use.
Input 7
Output 0
RPM: pulsin 7,0.W2 'read pulses on pin 7
Let w2 = w2/100 'w2/100 divided into 60,000 equals
let w2=w2/80 '6,000,000/w2 (60 seconds in 10-us units
let w2 = w2/80 'extra divisions for 80 hole encoder wheel
'Transmit data followed by carriage return and linefeed.
if w2<> sendit Not equal to what ?
Other: pause 1500 'wait 1.5 secs between readings
Goto RPM
Sendit:
serout0,n2400,(w2,10,13)
pause 1500
Goto RPM
When the stamp is running (Bs1, I also have Bs2 if need be) It will
ouputsay 150rpm for about 6 incidents then flip to 123 for a couple
of times the away again.
I am using a pulse shaper for the input to BS! also I hace a separate
timer from 2mins to 30 mins.I would prefer to use the stamp but don't
know if this is possible.The reason for thw 120 slot encoder is for a
decimal reading in secs.Within 1 rpm is not good enough.
If anyone can oblige it would be great.
I did ask Nuts & Volts abot two months ago but nothing has happened
then I found E-Groups looks great.
Thanks
Bernie Byers
<< File: ATT00021.htm >>
The VFO is connected to a Magentic Pickup.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.