Alex Glow

DreamGlass (WIP)

A pair of glasses that guide you to lucid dreaming, day and night.

Work in progress3,552
DreamGlass (WIP)

Things used in this project

Hardware components

LiPo battery
3.7V works (the Lily takes 2.7V – 5.5V in Arduino mode)
Pair of glasses
Enclosure materials
3D printer, chain-making tools, amber, etc.

Software apps and online services

Fusion 360
Autodesk Fusion 360


Read more



DreamGlass test code
  DreamGlass code to test haptic motor with random timing.
  Modified from Arduino "Blink" example function.
  Turns on an LED on for one second, then off for one second, repeatedly.

  This code is in the public domain.

  // Pin 13 has a haptic motor connected.
int haptic = 13;
long randel;                    // random delay interval

void setup() {
  pinMode(haptic, OUTPUT);      // initialize the digital pin as an output

void loop() {
  randel = random(500, 3000);   // generate random delay, 500-3000ms
  digitalWrite(haptic, HIGH);   // turn the motor on
  delay(500);                   // wait half a second
  digitalWrite(haptic, LOW);    // turn the motor off
  delay(randel);                // wait for a second


Alex Glow

Alex Glow

142 projects • 1459 followers
The Hackster team's resident Hardware Nerd. I like robots, music, EEG, wearables, and languages. FIRST Robotics kid.


Add projectSign up / Login