Skip to content

martysweet/sleep-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sleep-box

Simple Sleep Box implementation using ESP32, inspired by Zuckerberg. Also find this project on Thingiverse!

Sleep Box

Components

  1. Adafruit Huzzah32 (ADA3405) - should also be ESP8266 compatible - adjust the PIO config and pin configuration
  2. 4x LEDs - 4 was chosen, 1 for each corner but less can be used if needed
  3. 4x Resistors - chosen for brightness, for the LEDs I used, 4.7k resistors worked well
  4. 2x Self tapping screws - 2mm thread to keep the Huzzah in place when (dis)connecting the micro-USB
  5. A short bit of wire to connect the LED grounds
  6. (Optional) Crypton tape - Useful for soldering the eletronics in-place with minimal damage to 3D printed parts

Software Build Instructions

  1. Use VSCode with PlatformIO Plugin
  2. Adjust the configuration at the top of src/main.cpp as required
  3. Adjust the PIO settings as required
  4. Build the project and flash the chip

See smurf0969/WiFiConnect#5 for issues with the WiFiConnect library.

  1. Join the ESP WiFi network with your phone at http://192.168.4.1
  2. Click Join WiFi and enter your WLAN settings
  3. The device should now turn on the outputs as you've programmed.

Hardware Construction

  1. Print the STL files located in the models folder, you can optionally edit the f3d (Fusion 360) files.
  2. Print the two parts, platform and housing in your desired material
  3. Use the platform to align the LEDs and place crypton tape where needed at the joins
  4. Join the neutral LEDs legs together on each side and join a wire between the two side
  5. Solder 4x resistors to the Adafruit (A0, A1, 12, 13)
  6. Use an resistor off-triming to join the neutral LED wiring to the GND pin on the Adafruit
  7. Join each LED positive leg to its own resistor (wrap the resistor wire round the LED leg for ease of soldering)
  8. Screw the Adafruit down
  9. Place into housing so the LEDs are visable until the stop is met on both sides

3D_Parts Electronics Assembly

Operation

  • Once time is synchronized with NTP over WiFi, the ESP32 will perform timekeeping using built-in timers.

About

Simple Sleep Box implementation using ESP32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages