Design a gadget
Gadgets › Chicken coop door

Chicken coop door

Opens the coop at dawn and closes it at dusk.

Garden & outdoorsPetsESP32 projects

Build guideOpen and change it

Parts

ESP32-C3 SuperMiniThe brain: Wi-Fi, Bluetooth, USB-CAmazoneBay
BH1750 light sensorPicked because the wish says “light level”AmazoneBay
Reed switch / door contact (2-pin)Picked because the wish says “door”AmazoneBay
Hobby servo connectorPicked because the wish says “servo”AmazoneBay

Circuit board

Board67 × 78 mm, 2 layers
Tracks11
Case74 × 85 × 32 mm
Plastic44.9 cm³
U1 ESP32-C3 USB UP01234567891020215VG3V3J1 BH17503V3 GND SCL SDA NCJ2 REEDGPIO GNDJ3 SERVOGND 5V GPIOCIRCUITWISH.COM

Gold is the top copper and blue is the bottom. Every module plugs into a labelled header, so there is no fine-pitch soldering.

Downloads

Gerbers (.zip)Case tray (.stl)Case lid (.stl)Firmware (.yaml)

ESPHome firmware

# Generated by Circuit Wish. Flash with ESPHome (esphome.io): esphome run chicken-coop-door.yaml
esphome:
  name: chicken-coop-door

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: esp-idf

logger:
api:
ota:
  - platform: esphome
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  ap:
    ssid: "chicken-coop-door setup"
captive_portal:

i2c:
  sda: GPIO6
  scl: GPIO7

sensor:
  - platform: bh1750
    name: "Chicken coop door Illuminance"

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO10
      mode: INPUT_PULLUP
    name: "Chicken coop door Contact"
    device_class: door

output:
  - platform: ledc
    id: servo_pwm
    pin: GPIO5
    frequency: 50 Hz

servo:
  - id: servo1
    output: servo_pwm

number:
  - platform: template
    name: "Chicken coop door Servo"
    min_value: -100
    max_value: 100
    step: 1
    optimistic: true
    set_action:
      - servo.write:
          id: servo1
          level: !lambda 'return x / 100.0;'

Related gadgets

CO2 monitor with screen and alarmShows CO2 in parts per million on a small OLED and beeps when a room gets stuffy. Sends readings to Home Assistant.
SCD41 CO20.96 in OLED displayActive buzzer
Plant watering controllerMeasures soil moisture and switches a small pump through a relay when the pot dries out.
Capacitive soil moisture sensor v1.21-channel 5 V relay
Room presence sensormmWave radar that sees people even when they sit still, plus temperature, humidity and light level.
BME280 temperature, humidity, pressureBH1750 lightLD2410C mmWave presence radar
Garage door sensor with LED stripKnows whether the garage door is open, lights an LED strip, and has a button to trigger a scene.
WS2812 LED strip connectorPush buttonReed switch / door contact
Aquarium heater controllerA waterproof probe in the tank and a relay that keeps the heater on or off around your set point.
DS18B20 waterproof temperature probe1-channel 5 V relay
Weather station with displayTemperature, humidity, pressure and light level, shown on a small screen and logged in Home Assistant.
BME280 temperature, humidity, pressureBH1750 light0.96 in OLED display

Want something slightly different?

Describe it in a sentence. Circuit Wish picks the parts, writes the firmware, routes the board and sizes the case.

Design a gadget