The Sleep Sensei - Fall Asleep Faster

A sleep coaching device that uses a calming pattern of light to guide users to fall asleep faster by training your breathing

Similar projects worth following
What is the Sleep Sensei?

The Sleep Sensei is a device to help people fall asleep faster using calming breathing training. It's for people who have trouble falling asleep, due to insomnia or an active mind at bedtime.

The Sleep Sensei produces a sinusoidal pattern of light that you follow with your breathing. As the light increases in brightness, you inhale, and as the light dims, you exhale, and the light is bright enough to be seen with your eyes closed. This pattern slows throughout the session, guiding your breathing to become slower, calming you down and inducing sleep. Also, if your mind tends to race at bedtime, the Sleep Sensei gives you something to focus on to help you fall asleep.

The Sleep Sensei has 4 ultra-bright red LEDs, which allow you to see the coaching light even with your eyes closed. The max brightness of the Sleep Sensei can be adjusted on-the-fly to suit your comfort level.

Why red light? Blue/white light actually keeps you awake, while green light has a similar effect and can suppress your melatonin output. This leaves red light, which "has the least power to shift circadian rhythm and suppress melatonin." That's why apps like Flux change your screen to a more reddish hue towards the end of the day.

The Sleep Sensei guides users to sleep by coaching their breathing patterns. Your breathing rate decreases when you are asleep, so the Sleep Sensei trains your breathing to get slower as the coaching session progresses to ease you into a state of sleep. Using calm red light, the Sleep Sensei produces a sinusoidal pattern of light that you follow with your breathing.

As the light begins to brighten, the user inhales, and as the light dims, the user exhales. As time passes, the breath length gets longer up to a maximum length specified by the user’s settings. It is a very gradual and unnoticeable change that happens progressively over time.

Customizable Coaching Profiles

You can change the length of coaching session, initial breath length, final breath length, and brightness. These settings are saved to profiles that are stored in the Sleep Sensei, even when the batteries are removed.

The hinged design allows you to aim the Sleep Sensei so you can most comfortably see the light in your usual sleeping position. You can also adjust the stiffness of the hinge.

Open Source

The Sleep Sensei is built on the open-source Arduino platform. All aspects of the Sleep Sensei, including the circuit board design and Arduino code, are freely available. Check out the GitHub page!

The Design

The circuit contains an ATtiny85 as the brains of the operation, and a rotary encoder is used for control.

The body is made of laser-cut bamboo. The design file is available on the GitHub repository.


  • 1 × ATtiny85 Microprocessors, Microcontrollers, DSPs / ARM, RISC-Based Microcontrollers
  • 1 × 8 pin DIP socket (recommended)
  • 1 × 220Ω resistor
  • 2 × 10kΩ resistors
  • 1 × 10 mF capacitor

View all 9 components

  • The Second Kickstarter

    Jeremy Wilson09/07/2016 at 04:56 0 comments

    After the first Kickstarter failed to meet the funding goal, I decided to try again. Like the first Kickstarter, I wanted to time my launch with an event to get the word out, and it just so happened that the Bay Area Maker Faire was just around the corner!

    The New Strategy - Think Small

    I figured that I still wouldn't be able to get $25,000 for mass production, so I had to rethink how I would make the Sleep Sensei. I decided that if a reasonably small amount (less than 250) of Sleep Senseis were ordered, I would order the bare PCBs and solder the components myself. If quantities ordered exceeded these expectations, then the volume would be sufficient to put in a bulk order.

    For example, I was quoted $8.27 per assembled PCB if only 100 were ordered, but the price went down to $3.57 each if I ordered 1000. The laser-cut bodies cost around $9 each shipped, and the mechanical components (knob, hinge) cost around $2. Adding in shipping, packaging, taxes, and Kickstarter fees, and the Sleep Sensei would sell at a loss at low quantities if I didn't fabricate the boards myself!

    The New Design

    For the second Kickstarter, I wanted to have a finished improved design for the Sleep Sensei. One bit of feedback I heard from several people was that the default breathing pattern wasn't right for them. Some complained the breathing rate was too slow, while others couldn't keep up.

    So, I wanted to allow the user to customize all aspects of the breathing pace: how long the breaths are at the start and end of the coaching session, and how long the session lasts. I had to rethink the design, since I wouldn't be able to add all this functionality with just a button and a potentiometer. So, I switched up the design and opted for a rotary encoder with a built-in button.

    This gave me 3 forms of digital input: two directions of the knob and a button press. With this, I modified the code to include "menus" the user could activate in order to change the settings, and I made some instructional videos to clarify how the process is done.

    I also stared making the Sleep Sensei out of bamboo, since I liked the look and found the price to be comparable to using plastic.

    Updating the Kickstarter

    I also knew I needed a new logo and Kickstarter video. My girlfriend pitched in and came up with a sketch for a logo that I really liked:

    I sent this over to a logo designer I found on Fiverr, and voila!

    My girlfriend also helped me shoot the new video, with directing and writing help (and use of her Mac for some much-needed premium editing software).

    I also found a reasonably priced professional product photographer on Fiverr, and had some nice shots of the Sleep Sensei taken.

    All in all, I wanted the new campaign to be more polished and professional, all while staying on a shoestring budget.


    This time, I wanted to be more proactive with the marketing of the Sleep Sensei, so I contacted Ponoko, the laser-cutting shop that produces the Sleep Sensei shell, and told them about the new Kickstarter. They were quite interested and ended up interviewing me and writing a post about it.

    I also paid a couple of organizations that claim they will get you a bunch of backers through social media, but I did not get a single new backer as a result of their facebook posts and tweets. This seemed mainly because they sell the same service to hundreds of others, so your product is just one in a sea of many posts each day.

    In the end, the Maker Faire ended up being the most valuable form of marketing, since I was able to show people the product and have them try it out in person. Most of my backers ended up coming out of the Bay Area, and I can assume that most of those backers were visitors to my Maker Faire booth.

    After the Kickstarter

    Once the Kickstarter was funded, I ordered all the things:

    And got to work assembling the PCBs by hand:

    With my girlfriend's help, we got all the lasercut components organized and ready to pack:

    After a few weeks of assembling, packing, and shipping, all the Kickstarter...

    Read more »

  • The First Kickstarter

    Jeremy Wilson09/06/2016 at 06:16 0 comments

    With a bit of confidence under my belt, I decided that I wanted to launch a kickstarter for the Sleep Sensei to get it into more hands.

    I was tired of having to make my own wooden bases by hand, so I started working on a new design that could be fabricated by a vendor. I ended up trying out a bunch of concepts, such as:

    Split laser-cut design

    3D Printed minimalist

    And what ended up being the winning concept, a laser-cut hinged design.

    I decided to set my Kickstarter launch date as the same day as Houston Mini Maker Faire. This gave me a deadline, and I figured the Maker Faire would help me attract some backers.

    I made some business cards...

    And set up a booth at the Maker Faire.

    And I launched my Kickstarter page! However, it didn't end up reaching the goal. I think several reasons factored in:

    • I made little effort outside of the Maker Faire to market the Sleep Sensei
    • I asked for way too much money. I had planned to have a vendor make and assemble all the PCBs, but this required a large volume of orders. I didn't get anywhere close to what I needed.
    • The design was still rough around the edges

    But, the failure of the first Kickstarter didn't stop me, since Bay Area Maker Faire was just a few months away, and I had a couch to crash on in San Francisco. So I decided to improve the product and try again!

  • The Sleep Sensei Study

    Jeremy Wilson09/03/2016 at 07:42 0 comments

    At first, I gave my prototypes to a handful of friends for their feedback. They responded with things like "it seems to work" or "I think it might be helping." Although it was great to get positive feedback, I wanted results that were a little more scientific. So I came up with a study of sorts.

    Using this ad, I found several people on the reddit /r/insomnia community willing to try the device and provide me data on their sleep via a daily survey and seep tracking smartphone app. I had the users record data for 3 weeks without the Sleep Sensei, and I then sent the users the sleep coach device and had them record data for 3 weeks of sleep using the device.

    I ended up sending out 20 Sleep Senseis, and I got decent data from 5 users. Here is a plot of the average time it took these users to fall asleep before and after using the Sleep Sensei:

    I have a detailed breakdown of each user's data here.

    Here is some of the feedback I got from the users:

    “I think the quality of sleep has been improving, and I think that’s the Sleep Sensei. When I start having issues again I pull it out and it does help” – Alice S, TX
    “I was really impressed with the [Sleep Sensei]- it cut the amount of time it took me to fall asleep by about half … I basically don’t have insomnia anymore and it feels that way” Marijke S, MA
    “The [Sleep Sensei] allows me to fall asleep in at least under 30 minutes, sometimes even as few as 7 minutes, which is great for me! I would definitely recommend this device to anyone who is on the search for something new to help them fall asleep, someone who perhaps has tried every other sleep aid without finding anything that truly helps yet. The Sleep Sensei is awesome!” – Kate B, GA
    “I’ve noticed a HUGE decrease in how long it takes me to fall asleep which has been wonderful! I really like the machine. It’s easy to use and works well.” – Kelly P, LA

    Of course, this was not a clinical trial or very hard-sciency, but it gave me the confidence to try to make the Sleep Sensei into a real product by launching a Kickstarter! More on that part of the journey in the next log post.

  • More prototyping! Refining the design

    Jeremy Wilson09/03/2016 at 07:28 0 comments

    Standalone Prototype

    I liked the idea of the Sleep Sensei enough to acid-etch a circuit board for what I breadboarded. I drilled 4 (very rough) holes into my wooden base so that the LEDs would shine through, and had my first standalone prototype!

    This prototype used an ATMega328, and it has a standard potentiometer to adjust the brightness. The button would allow you to switch between 4 durations of sleep coaching.

    The First Decent-Looking Prototype

    I ended up enjoying using my standalone prototype so much that I wanted to try to make more of these little guys to try on friends and family. I figured if it helped me fall asleep faster, it could help others as well! So I did some research and found out that I could program an ATtiny85 (much cheaper than the ATMega328) using Arduino, and whipped up a breadboard with all the necessary connections.

    A challenge I had was timing, since the ATtiny85 was running at 8 MHz compared to the ATMega328's 16 MHz. So I had to add a couple multiplication factors in the code to have the breathing pattern match what I had tuned on the ATMega-based design.

    I then designed and acid-etched a new circuit board designed for the ATtiny85. I also found some nice thumb-wheel potentiometers on eBay which would allow for adjustment of the brightness without a tiny screwdriver! Here is what the prototype looked like:

    I used this guy for a few weeks, and it was actually pleasant to use. This time I had red LEDs (since I had done some research), and a nice compact circuit board that wouldn't be too expensive to have professionally made. So that's what I did:

    I then came up with a (terrible) logo for the Sleep Sensei and made a small army of them!

    I wanted to test the product out in the wild and get feedback. More on that in the next log entry.

  • The first (very rough) prototype

    Jeremy Wilson09/03/2016 at 06:34 0 comments

    This whole project started because I have trouble falling asleep at night. I was looking at potential solutions and came across a smartphone app that produced a pattern of light to follow with your breathing as you try to fall asleep. The main problem with this is that the phone screen is so dim that you can't see it without having your eyes open! This seemed counter-productive to sleep, so I sought a better way.

    This is the very first prototype of the Sleep Sensei. It consisted of a breadboard with 4 blue LEDs performing a simple brightening and dimming cycle. I chose blue LEDs since the smartphone app I used performed a similar feat, and it used blue light. This was before I began researching the effects of various colors of light on sleep quality, so I didn't really know any better.

    The breadboard was clamped onto a wooden base with a pivot to allow me to aim the light towards my eyes. The idea was that the light from 4 LEDs directed towards my eyes would be bright enough to be seen with my eyes closed through my eyelds. And it worked!

View all 5 project logs

Enjoy this project?



yong53798 wrote 11/09/2022 at 07:11 point

adderallsellers strong opioids include diamorphine, oxycodone, fentanyl, methadone and buprenorphine. Opioid medicines come in many forms including tablets, capsules, liquids, skin patches and injections.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates