946Views6Replies

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??

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
iceng
iceng

8 years ago

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

See the pic :)   .   .   .   A

PIR-OPTOISO-sw.jpg
0
dodecafono
dodecafono

Answer 7 years ago

Hello iceng!

The PS2561-2 optoisolator is a good choice?

Thanks in advanced!

0
iceng
iceng

8 years ago

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....

0
iknowvations
iknowvations

8 years ago

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.

0
iceng
iceng

Answer 8 years ago

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

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

A

0
quatch
quatch

8 years ago

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)