• Lucid Dreaming - Dream Views




    Results 1 to 4 of 4
    1. #1
      Member
      Join Date
      Mar 2008
      Posts
      64
      Likes
      12

      Lucid dreaming tool using the Zeo and home automation

      I recently completed and tested a Zeo lucid dreaming project using a Zeo (http://www.myzeo.com/), the Zeo Raw Data Library (http://developers.myzeo.com/ra…..a-library/) and the ActiveHome remote lamp module from X10.com (X10.com - Security Cameras, X10 Home Security, Wireless Camera, Home Automation, Electronics and More!) to send an overhead lamp signal (and computer beep) when REM is detected by my program. With the free SDK from X!0, I was able in a few program lines to wait until 5 hours after sleep and then 5 minutes into REM to send on/off commands to the lamp to cue me I was dreaming.



      I have always had good dream incorporation for flashing lights with the old dream masks, but the masks were uncomfortable and slid around and often failed to recognize REM. With the Zeo (which I find quite comfortable and fairly accurate) I can track real-time REM and other sleep stages and also leverage the Sleep Stream Online website (Sleep Stream Online) that may in the future offer synchronized lucid cues to multiple dreamers and maybe even dream-to-dream communication.



      In theory, the computer screen could be made to flash as a lucid cue, but the size and brightness of my netbook screen is questionable for this and the direction of my sleeping may occlude the screen light enough to make the cue ineffective. I figured an overhead lamp or light can be as bright or dim as I choose (though my neighbors may be curious of the red or blue flashing room in the middle of the night).



      If you are interested in this, you will need, in addition to a Zeo, a home automation kit (fifty bucks), the Raw Data Library, Python and the ActiveHome SDK (ActiveHome Professional: SDK, Software Development Kit) .

      Also, there are two ways to control the lamp: via a direct command using a AHCMD file in the SDK or via a COM (ActiveX) object call (to use COM with Python you will need to load pywin32 (http://sourceforge.net/project…..s/pywin32/). I use COM in the source code below, but you can also use the command file like:

      import subprocess
      subprocess.check_call(['ahcmd', 'sendplc', 'A3', 'on'])



      Below is my bare-bones Python program. Naturally, this can be extended for night-long cues or stopping the light with deliberate dream eye-movements (using the REM eye movement detection of the Raw Data Library) and all kinds of other stuff. To get really wild using eye movement detection and home automation tools, you could actually turn on your coffee maker in the morning from within a dream. What a world!



      Code:



      # lucidLampCue



      # System Libraries

      import time

      from time import localtime,strftime

      import sys

      import winsound

      import pythoncom



      # Zeo Libraries

      from ZeoRawData import BaseLink, Parser

      from ZeoRawData.Utility import *



      # ActiveHome Libraries (Windows COM)

      from win32com.client import Dispatch



      # User customizable variables

      port = 'COM3'



      class lucidCue:



      def updateSlice(self, slice):

      if not slice['SleepStage'] == None:

      self.updateCue(slice['SleepStage'])



      def updateCue(self, stage):

      print stage

      if stage == 'REM':

      if time.clock() > 300:

      print time.clock()

      for i in range(1, 10):

      self.sendCue()

      print time.localtime()

      sys.exit()



      def sendCue(self):

      pythoncom.CoInitialize()

      ah = Dispatch('X10.ActiveHome')

      ah.SendAction("sendplc", "a3 on")

      winsound.PlaySound("SystemExclamation", winsound.SND_ALIAS)

      time.sleep(1)

      ah.SendAction("sendplc", "a3 off")





      if __name__ == "__main__":



      # Initialize Serial Link



      link = BaseLink.BaseLink(port)

      parser = Parser.Parser()



      cue = lucidCue()



      time.sleep(20000)



      # Add Callbacks and Start the Link

      link.addCallback(parser.update)

      parser.addSliceCallback(cue.updateSlice)

      link.start()



      # Infinitely loop to allow the script to run continuously

      while(True):

      time.sleep(5)
      Last edited by topcat; 05-30-2011 at 06:20 AM.

    2. #2
      Member
      Join Date
      Mar 2008
      Posts
      64
      Likes
      12

      Progress

      Quote Originally Posted by DarkStaid View Post
      Really interesting man, any further updates on his project?

      (I've been thinking for sometime on something very similar)
      Thanks for asking.
      Yes: Forbes
      topcat

    3. #3
      Mike DarkStaid's Avatar
      Join Date
      Dec 2007
      Gender
      Location
      Scotland
      Posts
      5
      Likes
      0
      Really interesting man, any further updates on his project?

      (I've been thinking for sometime on something very similar)
      Are You Dreaming?
      Are You Sure? RC
      Remember Your Dream
      Write It Down

    4. #4
      Member
      Join Date
      Dec 2012
      Posts
      20
      Likes
      2
      There is something very similar out called ZILD, it doesn't use home automation, but it does trigger the devices flash LED to cause a similar effect.

    Similar Threads

    1. Lucid dreaming as a psychological tool
      By Neo Neo in forum Research
      Replies: 4
      Last Post: 02-23-2011, 05:19 PM
    2. Replies: 2
      Last Post: 02-17-2011, 10:25 PM
    3. Home Automation Systems
      By Ynot in forum Tech Talk
      Replies: 21
      Last Post: 08-13-2008, 10:48 AM
    4. Lucid Tool- New, Cheap, Simple, Works?
      By scook in forum Lucid Aids
      Replies: 11
      Last Post: 01-06-2007, 09:23 PM
    5. Any Lucid dreams also Tool fans?
      By Perj in forum Artists' Corner
      Replies: 9
      Last Post: 03-06-2004, 02:49 AM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •