When we saw [merkz] use of an Arduino to produce lucid dreaming we were quite shocked. Unlike typical setups that just flash a light through sleep, his system monitors eye movement through electrodes and is able to send the data to a computer for graphing and analyzing. The only problem being we couldn’t find a circuit diagram or code.
Not ones to be shot down so quickly, a Google revealed this thread on making ‘Dream Goggles’, which was really a Brain-Wave Machine based on the parallel port. Some modifications of an ECG collector’s electrodes using sound cards, and you could have your own lucid dreaming.