Pages: [1]   Go Down
Author Topic: Wake up computer with a proximity sensor  (Read 1579 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone,

I'm attempting to use a simple proximity sensor to wake my computer up from sleep. I currently have a nice applescript proxy (a max/msp patch that reads serial data and runs an applescript) that allows me to initiate a sleep command from my arduino. The problem is, I can't wake the computer up using the same method because the computer is....well...asleep, and my proxy can't listen for serial data.

Does anyone have any creative ideas? I've read a few things that were floating around online, and haven't found a solution.

A few thoughts:
  • Is there something that might make it possible to wake the computer when it receives serial data?
  • Is there a simple way to have my arduino send a keypress, without nullifying non-HID serial communication?
  • How about a creative use of wake on LAN?
I'm struggling, would love any directional advice.
Thanks!  smiley
Logged

Tacoma, WA
Offline Offline
Full Member
***
Karma: 4
Posts: 192
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Servo to hit the space bar? smiley Or take the optical sensor out of a cheap/dead mouse, and wave the servo arm past it to simulate wiggling the mouse to wake the computer.
« Last Edit: December 09, 2010, 01:59:02 pm by UnaClocker » Logged

Brian from Tacoma, WA
Arduino evangelist - since Dec, 2010.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice suggestion smiley
I'm looking for something a little more transparent to user experience though. Anybody have a firmware / software based solution? Hardware solution is welcome too, if I can conceal it well enough.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12904
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Most BIOS / motherboards support "wake on USB".  I assume sending anything via Serial would wake a computer if this option is set.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks! I'm looking into that now and will report back with results. By the way, I'm on a 2009 Mac Pro 8-core running Snow Leopard 10.6.5.

** UPDATE: Wake on USB, while enabled on mac, doesn't listen for data. I believe it only responds to USB devices being plugged in or pulled out.
« Last Edit: December 09, 2010, 02:49:00 pm by royalcommoner » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Any other ideas? I love the idea of being able to send a keypress from my arduino, perceived as an HID device. Problem is, I'd want to be able to still do regular arduino stuff over serial that keyboards don't do. Has anyone had any experience with this?

I read a little bit about rancidbacon's "V-USB". Anyone know if that would do the trick?
http://code.google.com/p/vusb-for-arduino/
« Last Edit: December 09, 2010, 02:58:32 pm by royalcommoner » Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Does anyone have any creative ideas?

Quote
I believe it only responds to USB devices being plugged in or pulled out.

Could you define the sleepmode the computer is in? I recall there are a number of levels and some are only to be awaken with the powerbutton.
 
  • let the arduino control a relay that disconnects or reconnect the USB signals...
  • Don't some bios's have a wakeup function too?
  • A reed relay connected to the powerswitch but hidden in your system. Arduino just 'fires' an electromagnet near that position. would look like magic ...
sofar my 2 cents
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Vejen, Denmark
Offline Offline
Edison Member
*
Karma: 9
Posts: 1178
RAWR! ^,..,^
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

8 core???

Isn't it a 4 core with hyper-threading, so it got 8 threads?
Logged

captain-slow.dk | non contagious!

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

From http://www.mythtv.org/wiki/ACPI_Wakeup

The ACPI Real Time Clock (RTC) Alarm function can be used by your [mythTV] system to wake up your machine at a certain date and time. (sorry no Arduino involved)
« Last Edit: December 09, 2010, 03:16:35 pm by robtillaart » Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12904
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Try leaving Serial Monitor running with a connection open to the Arduino.  Put the computer to sleep and have the Arduino send a bit of data.
Logged

Pages: [1]   Go Up
Jump to: