Knock to turn on your PC

If you have your PC somewhere deep in your stuff or you simply want to impress someone, this project might interest you. Simply speaking this is a PC on trigger circuit activated with a knock. Knock detector is based on piezoelectric sensor which is nothing more than piezo speaker from some gadget. Attiny45 reads piezo signal using ADC and program detects if there is a required pattern (three knocks). If MCU detects three knocks it then generates 0x29 keyboard code and sends using PS/2 interface to computer. In other end. PC has to be configured to boot on PS/2 keyboard input. The only thing is left – hide sensor under table and start doing magic. Continue reading

One button PS/2 keyboard on AVR microcontroller

It is practically hard to find a keyboard with PS/2 interfaces. All is taken by USB. Anyway owners of older computers still use them (including myself). I see no problem with that. It is reliable and works with no problem. It happens that some older systems aren’t so much robust with USB keyboards. Joonas has discovered that his newest keyboard didn’t work using PS/2 to USB adapter. Problem was that motherboard needs a spacebar key click in order to power up. Instead of looking for new keyboard he decided to solve this problem with DIY minimal keyboard built around Attiny2313. Generating keystroke commands and sending them using PS/2 protocol isn’t that complex and small micro can deal with this. Especially when single key press is needed. AVR generates spacebar command and sends it to PC PS/2 input using simple bit bang method. After Computer powers up an USB keyboard takes place. The project purpose is very specific, but some methods like signaling can be used in other projects where various key press are needed. Continue reading