This is my first time trying any kind of circuitry so I am very much a novice but here is what I am trying to do. I am rewiring my treadmill into a computer keyboard so that when someone moves on the treadmill hit hits the move key on the keyboard for a video game that I play.
Here is what I have so far.
I have a switched that is triggered by a magnet on the conveyor part of the tread mill so that with ever rotation it triggers the switch. The switch is wired into the keyboard so that it closes the circut to the specified key sending a key pressed signal to the computer.
Here is my problem.
Since it sends the signal each time the magnet passes the character in the game moves ackwardly. I put a few more magnets on the conveyor part which seemed to help but if the convey stops in front of the switch the character keeps running. So what I think I need is to some how wire it so that it sends a continual signal to the computer as long as the magnetic switch is being tripped. (As long as the conveyor is moving.) And stops sending the signal when they conveyor stops.
Any help would be greatly appreciated.
Here is what I have so far.
I have a switched that is triggered by a magnet on the conveyor part of the tread mill so that with ever rotation it triggers the switch. The switch is wired into the keyboard so that it closes the circut to the specified key sending a key pressed signal to the computer.
Here is my problem.
Since it sends the signal each time the magnet passes the character in the game moves ackwardly. I put a few more magnets on the conveyor part which seemed to help but if the convey stops in front of the switch the character keeps running. So what I think I need is to some how wire it so that it sends a continual signal to the computer as long as the magnetic switch is being tripped. (As long as the conveyor is moving.) And stops sending the signal when they conveyor stops.
Any help would be greatly appreciated.