Turn a PC mouse into a Speedo
- Ace_B_Pimpn
- Posts: 13
- Joined: Sat Jun 14, 2003 10:59 pm
- Location: Myrtle beach
- Contact:
nox, why don't you make this prog into a full screen.
You know the screen you have to us alt f4 to get out of. Then we wouldn't have to hold the mouse button
You know the screen you have to us alt f4 to get out of. Then we wouldn't have to hold the mouse button
I love anything wid curves, cars electronic , girls. I'm definetly not the oldest here, and maybe the youngest. If anyone lives in south carolina e-mail me
-
- bitPimp
- Posts: 1979
- Joined: Tue Mar 25, 2003 6:33 am
- Location: taco city
Ace, the scope of the program has changed a shitload since we first started workin on it. We are no longer using the ps2 port / mouse electronics 'cause it is inadequete for the speeds/rpm's involved.(see earlier discussions in this thread). I'm sure the program has changed (and will continue to change) as we develop this shiat!
Nox, I got a call from a supplier who will be shipping me the parts today so I *should* have some working hardware-wise by the weekend. Could you post the proggie that reads Data 0 (pin 2) on the parallel port so I could begin testing. Thanks man.
ph2t.

Nox, I got a call from a supplier who will be shipping me the parts today so I *should* have some working hardware-wise by the weekend. Could you post the proggie that reads Data 0 (pin 2) on the parallel port so I could begin testing. Thanks man.
ph2t.
-
- bitPimp
- Posts: 1979
- Joined: Tue Mar 25, 2003 6:33 am
- Location: taco city
- Ace_B_Pimpn
- Posts: 13
- Joined: Sat Jun 14, 2003 10:59 pm
- Location: Myrtle beach
- Contact:
- noxorc
- bitPimp
- Posts: 2104
- Joined: Wed Feb 19, 2003 2:49 pm
Ph2t,
digital logically speaking:
how does this thing you got work? can you send me some info.
How are you going to tickle data line 0? at what rate?
or at what rate should I sample at?
from my point of view. I can read the data lines. Once or within a read loop.
I would assume I going to watch it tickle back and forth (0,1).
-nox
digital logically speaking:
how does this thing you got work? can you send me some info.
How are you going to tickle data line 0? at what rate?
or at what rate should I sample at?
from my point of view. I can read the data lines. Once or within a read loop.
I would assume I going to watch it tickle back and forth (0,1).
-nox
-
- bitPimp
- Posts: 1979
- Joined: Tue Mar 25, 2003 6:33 am
- Location: taco city
Dude, the circuit is still sorta in my head but it's based around a hall effect device. These devices are very fast and are commonly used in tachos and speed monitors for many different applications.
It goes a little somthin' like this....
The hall effect device is placed near the encoder disc. Attached to the encoder disc is a piece of metal (or some fridge magnet material, yet to decide...). When the BCG is placed on the encoder disc and started the disc rotates and the metal crosses the face of the hall effect sensor.
When the hall effect sensor finds a magnetic field, it outputs a voltage depending on the strength of this field. This varies from sensor to sensor. Some hall devices put out a simple logical "1", others scale the voltage in relation to the magnetic field. Bottom line is that stuff happens when the magnet goes past the hall sensor. It is this trigger I want to capture and put to the parallel port which your software will decode/measure.
As to the rate this data will be triggered at will vary. I can put a divide-by-10 circuit in before the pulse gets to the parallel port to slow it down, your software would need to account for this. Don't code this yet, it's just an example. If you could poll the parallel port as quickly as possible that would be great (assembly anyone?). I'll put the circuit together once I get the parts (should be today) and let you know what my real-world results are.
You're correct about the trickle (0,1) part. Once cycle would be 0,1. Two would be 0,1,0,1, and so on.....
More to come.....
ph2t.
It goes a little somthin' like this....
The hall effect device is placed near the encoder disc. Attached to the encoder disc is a piece of metal (or some fridge magnet material, yet to decide...). When the BCG is placed on the encoder disc and started the disc rotates and the metal crosses the face of the hall effect sensor.
When the hall effect sensor finds a magnetic field, it outputs a voltage depending on the strength of this field. This varies from sensor to sensor. Some hall devices put out a simple logical "1", others scale the voltage in relation to the magnetic field. Bottom line is that stuff happens when the magnet goes past the hall sensor. It is this trigger I want to capture and put to the parallel port which your software will decode/measure.
As to the rate this data will be triggered at will vary. I can put a divide-by-10 circuit in before the pulse gets to the parallel port to slow it down, your software would need to account for this. Don't code this yet, it's just an example. If you could poll the parallel port as quickly as possible that would be great (assembly anyone?). I'll put the circuit together once I get the parts (should be today) and let you know what my real-world results are.
You're correct about the trickle (0,1) part. Once cycle would be 0,1. Two would be 0,1,0,1, and so on.....
More to come.....
ph2t.
- noxorc
- bitPimp
- Posts: 2104
- Joined: Wed Feb 19, 2003 2:49 pm
My DLL is written in C to read the port. I don't think assembly is going to be any faster. My routine is a very low level functionality call.ph2t wrote:If you could poll the parallel port as quickly as possible that would be great (assembly anyone?). I'll put the circuit together once I get the parts (should be today) and let you know what my real-world results are. ph2t.
Most of the code is to get around Windows C2 complient backdoor entry points.
I'll whip together a ripping loop to read data line 1 and post the version.
that way, when your ready. You'll know, your tickling the data line.
-nox
- noxorc
- bitPimp
- Posts: 2104
- Joined: Wed Feb 19, 2003 2:49 pm