Best approach to make a rotation sensor

Miscellaneous Forums/General Discussion/Best approach to make a rotation sensor

I'm with John on this one, Hall effect switch and magnet.
You could experiment with a reed switch, you might need to debounce the switch in hardware or software.

FOR FUN:

I was thinking you could get a cloths pin, playing cards, tape, alum foil and fabricate a switch that makes and break as the wheel turns, plus you'll get that cool engine sound!

I'd tap the 5 volt supply off one of the power supply plugs, and connect 10k resister to the 5 volts and the other end to pin 10 (ack) on your parallel port. Finally your switch would connect to pin 10, and when it switches it would need to drive pin 10 to ground.

Finally use some code from the archives:
ontrol your I/O ports with B3d.
Inpout32.dll for WIN 98/NT/2000/XP

1. get the dll
2. put the dll into your windows system directory
3. create the InpOut32.decls in your userlibs
4. test the sample b3d code shown below
5. party

-enjoy

Parallel Port I/O made easy.

Inpout32.dll for WIN 98/NT/2000/XP
Get binary, source, and other info here:

http://www.logix4u.net/inpout32.htm

-----------------------------------------------
InpOut32.decls:
-----------------------------------------------
.lib "inpout32.dll"

Inp32%( port% )
Out32 ( port%, value% )

-----------------------------------------------
B3d code:

; B3D Parallel Port I/O

Global Lpt1= $378

Graphics 800,600,16,2
SetBuffer BackBuffer()

; Output data
Out32(Lpt1,1)

; Read port status
DebugLog Bin$(Inp32(Lpt1))

While Not KeyHit(1)
Wend

End