A PIR (passive infared) sensor and a Adafruit Trinket presses shift key to wake a computer.
Trinket Arduino code to send HID Keyboard Shift to wake screen saver.
ino - 1.52 kB - 02/08/2017 at 07:10
OK, I have to set the screen saver to come on in the minimum time, one minute.
Now I have to wait a whole minute to see if it works.
Sending Right Shift key works! The screen saver stops!
But what the hell... "Stick-keys"?!? In Windows pressing shift 5 times asks to turn on sticky keys. :( Is it because the come too fast? No, any 5 in a row will do it, even separated by 10 seconds.
Today I thought of the solution! Alternate right and left shift! This fools Windows and no sticky keys dialog!
I chopped up a SCSI cable I found in the ewaste to make the connector. I pulled out the surrounding pins and cut the plastic with wire cutters. My soldering sucks :(
I'm so glad about standard 0.1" pins!
I ordered the PIR sensors from Amazon, and this is what I got:There are no markings on the silk screen! What are the pinouts??
Google finds a few similar
but finally this one:Looks the same!
Here is how I wired it.
On this PIR module the pins are Gnd Signal Vcc as seen with the pins on the top of the board.