Coder Social home page Coder Social logo

cabinet-light's Introduction

Cabinet light

I hate, when I cannot see what's in my cabinet. Cabinets with light are expensive as ****, so I decided to build my own. Next step is to make it pretty.

Closet light

Step by step

1. Components

The project uses the following components:

  1. ESP32-wroom-32E development board
  2. VCNL4040 proximity sensor
  3. NeoPixel strip. I used one with 30 pixels. Make sure it uses WS2812.
  4. Powerbank
  5. Cables

2. Putting everything together

VCNL4040 sensor:

  • GPIO21 > SDA
  • GPIO22 > SCL
  • GND > GND
  • 3.3V > 3.3V

Pixel strip:

  • GPIO27 > Data input
  • 5V > 5V
  • GND > GND

3. Running the program

Prepare the open source Toit language by following the steps here.

Compile an ESP32 image from the program:

cd <path-to-toit-lang>
make esp32 ESP32_ENTRY=<path-to-cabinet-light>/cabinet-light/light.toit

Connect the ESP32 to your computer and flash the program by pasting the output from make esp32 into the terminal.

4. Enjoy your smart cabinet

Once the program has been flashed, it will start running every time the ESP32 is powered on.

cabinet-light's People

Contributors

jacobqvist avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.