PIR Screen Unsaver

A PIR (passive infared) sensor and a Adafruit Trinket presses shift key to wake a computer.

Similar projects worth following
At work in the hallway we have a LCD TV and a Linux box as a slide-show kiosk. The TV is on 24/7 and we burnt one TV out. I added some cron jobs to shut off the display, but then I thought of the this: A PIR Sensor that wakes the PC via USB HID.
I was greatly inspired by Dot Mana's version.


Trinket Arduino code to send HID Keyboard Shift to wake screen saver.

ino - 1.52 kB - 02/08/2017 at 07:10


  • Right and Wrong Shift Key

    Scoops02/08/2017 at 07:08 0 comments

    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!

  • Connector for PIR

    Scoops02/08/2017 at 07:02 0 comments

    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!

  • PIR Pins

    Scoops02/08/2017 at 06:19 0 comments

    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!

View all 3 project logs

  • 1
    Step 1

    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.

View all instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates