neiltechspec
Senior Member
Using an M2, I want to measure loco speeds.
I have two IR sensors (TX/RX) in small packages mounted in the track 12 inches apart.
So, 1 Foot Per Sec = 0.6818 MPH, for N Scale multiply by 148 gives me scale speed. Should be easy enough.
Thinking of using the 'pulsin' command to measure time between IR's. The number of 10uS units will give me a time.
1st IR has to start pulsin.
2nd IR has to stop the count.
Was thinking of a simple S/R logic gate latch to use with pulsin ('srlatch' doesn't make any sense to me).
I seem to be having a bit of a 'senior moment' presently & can't seem to get my head around the best way to achieve what I want.
Anybody any better ideas, or has it been done before.
Neil.
I have two IR sensors (TX/RX) in small packages mounted in the track 12 inches apart.
So, 1 Foot Per Sec = 0.6818 MPH, for N Scale multiply by 148 gives me scale speed. Should be easy enough.
Thinking of using the 'pulsin' command to measure time between IR's. The number of 10uS units will give me a time.
1st IR has to start pulsin.
2nd IR has to stop the count.
Was thinking of a simple S/R logic gate latch to use with pulsin ('srlatch' doesn't make any sense to me).
I seem to be having a bit of a 'senior moment' presently & can't seem to get my head around the best way to achieve what I want.
Anybody any better ideas, or has it been done before.
Neil.
Last edited: