Giter VIP home page Giter VIP logo

cagelight's Introduction

CageLight

A smart light control for pet cages with simple and easy to use WebUI and API.

See the images below

FEATURES

  • conifgurable output channels
  • Low cost ESP8266 powered
  • WebUI
  • RTC for automatic mode
  • easy to use http-get api
  • weekly schedule for each channel

PARTS

Partlist for a two channel configuration

  • ESP8266 module (I used the NodeMCU V3 board)
  • 2 channel relais card
  • DS1307 RTC module
  • 12V power supply (12V for the led strips, min 5V)
  • some wood/plastic odds for mounting the stuff
  • luster terminals
  • [OPTIONAL] I used a small 5V step down converter for the esp and relays
  • [OPTIONAL] the 3d printed case (located at documentation/cage_light.skp - Sketchup)
  • [OPTIONAL] 2 push buttons for on off switching
  • [OPTIONAL] 2 pullup resistors for the 2 buttons
  • [IF REQUIRED] CR2032 Battery for the RTC Module

TOOLS

  • soldering stuff
  • hot glue
  • wires, ....
  • micro usb cable
  • a 3D Printer for the case (optional)

BUILD

3D PRINT

Print the both stl-files (/documentation/cage_light_case_box.stl and /documentation/cage_light_case_top.stl). Good settings are 0.3mm layerheight, 0.4mm nozzle (i used a 0.5mm), no support, no raft. Please feel free to modify the Sketchup File to you needs. The basic case is a bit oversized eg. to build in the power supply or more relais. Gopher image

HARDWARE

  • Open the downloaded sketch (src/cage_light) and see the pin config or change it!
  • connect the input of the step down converter to the power supply
  • connect the output of the step down converter to the VI and GND of the ESP8266 board
  • connect the step down converter to VCC and GND of the relays board
  • connect 3.3V and GND from the ESP8266 board to the power pins of the RTC module
  • connect the I2C interface from the RTC module to the in the config set pins of the ESP8266 board
  • connect the in the config set pins for the relay outputs of the ESP8266 board to the channel input of the relais

SOFTWARE SETUP

DYNDNS STUFF

  • Please add a port forwarding for port 80 in you router

DYNDNS PROVIDER

  • a dyndns provider if you have not a static ip adress and you want to access the system from outside of your lan

  • WIP

RB DNS SERVICE BY ME

  • i have several of this units at different locations so i have create a own simple dyndns service for this. it called RB DNS and the cage light firmware after version 24b support it https://github.com/RBEGamer/RB_DNS_SERVICE please change the ip in the configuration to your own rb_dns_server configuration
  • WIP

Please note the software is not really clean at this time because it was a one day project and WIP!

  • add the esp8266 board url to the additional board in your arduino ide : http://arduino.esp8266.com/stable/package_esp8266com_index.json
  • download the sketch located at src/cage_light/
  • [ edit the pin config to your connected pins (first lines) ]
  • upload the sketch to the ESP8266 board
  • show at startup over the serial port the given IP of the board (or check your router)

IMAGES

FINAL UNIT WITH OPEN CASE

Gopher image

RELAIS outputs

The middle of the luster terminal was disconnected from the relais and connected to GND so no additional GND-Terminal needed Gopher image

USB AND POWER IN

Gopher image

BASIC WEB UI

Gopher image

TODO

See the TODO List located at /TODO.MD

cagelight's People

Contributors

rbegamer avatar

Watchers

 avatar  avatar  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.