กลับไปหน้ารวมไฟล์
automated-snake-enclosure-with-camera-b0a903-en.md

Background

I wanted to create a snake enclosure that I did not have to monitor 24/7 and tend to all change from daylight to night. It started out as a project to switch from day to night and it grew from there. I wanted to mirror their natural habitat in temperature that changes daily to replicate the changing of the seasons with fans and various heat elements, sunrise and set to match their natural habitat, humidity to keep them healthy. But I also wanted to be able to manipulate these settings for various reasons.

Arduino Mega, W5200 Ethernet shield, TFT touch screen from Seeed, bread bord w/ RTC

How It Works

It uses a RTC to save the date and time at restarts (happens every hour to prevent SRAM fill up from the webserver). Then it reads the SD from the TFT touch screen by Seeed, for any data that is not preset in order to maintain different settings (like increased humidity for shedding).

DHT 22

Reads the ambient temperature and humidity from the DHT 22.

Two temperature sensors read each rock to make sure they do not overheat.

Using the data received it will control two relay shields enclosed in a project box

These relays control the Night light, Day Light, Heat Lamp, Heat rocks 1 & 2, fogger and the fans.

The fogger needed to be hacked so I could monitor water levels remotely. fist you need to take the wires off the float switch and connect them to each other ( this will make the fogger believe it is always full). connect two wires to the float switch one will go to the 5v pin and the other will go to the selected input pin (mine is pin 31) with a 220 resistor to the ground (dont know how important the resistor number is as long as you have one, I have tested a few and they all work),

Not going to go into too much detail on the relays as I have a diagram and it is not that important on placement.

These are the screens I made to show me the readouts. (My snakes names are Harold and Kumar.) The Home screen just shows data about the snakes like Latin name and native countries. The Temperature screen shows current temperatures and set temperatures and a switch button that shows the same screen but with the opposite time (Day/Night). The Humidity screen shows the current and set humidity. The Sunrise/set screen shows daily sunrise and set times. The Setting Page shows what sensors are active and what devices are on. if any variable is changed it will also have a correlating days variable for each, this is subtracted by one at midnight.

Added camera shield

I added a camera for remote monitoring

The Ethernet has a web-server the gives me the ability to read current readouts above is an example.

Here are some other photos...

here is a diagram:

The full code is attached.

EXPANDED TECHNICAL DETAILS

Reptile Bio-Automation

This system maintains the delicate ecosystem required for snakes and other reptiles, integrating visual monitoring for safety.

  • Climate Control Hub: Uses a DHT22 (Humidity/Temp) and a waterproof DS18B20 sensor for the heating mat. The Arduino uses Hysteresis logic to toggle a relay, keeping the "Basking Spot" within a strict 2-degree window.
  • ESP32-CAM Integration: Includes a WiFi-enabled camera module. The user can view a live MJPEG stream of their snake from any web browser and remotely check the current temperature readings.

Safety Alarms

  • Thermal Cut-off: If the temperature exceeds a dangerous threshold (e.g., 35°C), the system kills all power to the heating elements and triggers an audible siren and a push notification to the owner's phone.

ข้อมูล Frontmatter ดั้งเดิม

title: "Automated Snake Enclosure with Camera"
description: "Interactive snake enclosure that is temperature and humidity controlled and uses lat-long to mimic natural light cycles, with an online cam."
author: "hagakure"
category: "Home & Automation"
tags:
  - "camera"
  - "animals"
  - "clocks"
  - "data collection"
  - "internet of things"
  - "monitoring"
views: 18646
likes: 22
price: 3450
difficulty: "Intermediate"
components:
  - "1x w5200 Ethernet Shield"
  - "1x DHT22 Temperature Sensor"
  - "1x 2.8 TFT Touch Shield V2.0"
  - "1x Arduino Mega 2560"
  - "2x SEEED Studio Relay Shield"
  - "2x Temperature Sensor"
  - "1x Pmod RTCC"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "251d023ad5e5ed215c389a51736d9f070524c6a8290da9dd0724b31c9c3349cb"
encryptedPayload: "U2FsdGVkX1/D/NyA5gu+Ympsetr9VlsMJVMcUcnJmNqvoiRPfBhJTW3HzSKcQq6c6zozu88XwGit3Ce99UOOhgybDdBSoua7ea2oPjvRgHI="
seoDescription: "Smart Automated Snake Enclosure with Temperature and Humidity control, natural light cycling via Lat-long, and an Online Cam."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/automated-snake-enclosure-with-camera-b0a903_cover.jpg"
lang: "en"