506Views6Replies

Author Options:

Is it possible to use a pir motion sensor to activate a keystroke on a computers keyboard? If so how? Answered

I want to be able to trigger the F1 to F8 keys on a keyboard using a motion sensor, Basically to trigger voice commands and software that controls parallel port pins. I cant figure out how this can be possible, I have pulled apart several keyboards but don't know how to send the signal of pressing a key to the pc with only a motion sensor. Doesn't have to be those security motion sensor any thing will do.. any ideas??

6 Replies

user
iceng (author)2012-04-24

Use the PIR module to activate an optically isolated transistor
in parallel with the keyboard button you want to activate.

See the pic :)   .   .   .   A

Select as Best AnswerUndo Best Answer

user
dodecafono (author)iceng2013-09-28

Hello iceng!

The PS2561-2 optoisolator is a good choice?

Thanks in advanced!

Select as Best AnswerUndo Best Answer

user
iceng (author)2012-04-28

Of course you can make a little servo push a button with a 555 oscillating
a continuous Fq pulse width in response ti your PIR signal by depress a
rubber eraser onto the selected key and retract as fast as the detector
registers the end of motion....

Select as Best AnswerUndo Best Answer

user
iknowvations (author)2012-04-24

How about doing it the other way ? You have software that controls parallel port pins. I hope it also reads parallel port pins as an input. If yes, you can monitor any one pin ( used as input pin on your parallel port) .

Now monitor the relay output by this pin & you are done ! No need to touch keyboard.
If you need any more clarification, just let me know.

Select as Best AnswerUndo Best Answer

user
iceng (author)iknowvations2012-04-24

Sure you can always use a micro processor................

Now your challenge is to sketch it clearly for a non-programmer Lol...

A

Select as Best AnswerUndo Best Answer

user
quatch (author)2012-04-24

Look up how to make an arduino or other microcontroller be a USB input device (it can pretend to be a second keyboard), they sell them with the necessary hardware to do this. Reading a PIR sensor with an arduino is easy.

PIR are generally pretty big in terms of field of view. If you're looking for a smaller input area look at capacitive sensing or NIR rangefinding (paired reflectance)

Select as Best AnswerUndo Best Answer