1 / 4
Outdoor Snap-Fit Enclosure for ESP32-S2 Water Tank Level Monitor (JST-SR04T, WS2812 LED Support) — zdjęcie 1
1 / 4

Outdoor Snap-Fit Enclosure for ESP32-S2 Water Tank Level Monitor (JST-SR04T, WS2812 LED Support)

Zamów wydruk tego modelu

Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.

Zapisane na tym urządzeniu.

Durable PETG snap-fit enclosure for ESP32-S2 Water/JoJotank level monitoring projects. Designed for use with JST-SR04T.

Ocena
0 / 5
Polubienia
7
Pobrania
39
Wydruki
0
Wyświetlenia
386
Oceny
0

Aktualizacja u źródła:

Informacje o modelu

Źródło
Printables
Kategoria
Electronics
Licencja
Creative Commons — Attribution

This is a purpose-built outdoor enclosure designed for a JoJo tank level monitoring project utilising an ESP32-S2 microcontroller and JST-SR04T waterproof ultrasonic sensor.

The case features:

  • Snap-fit lid for tool-free assembly while maintaining a firm hold.
  • Centre hole for JST-SR04T sensor head, with internal standoffs for the sensor’s PCB.
  • Custom cut-outs for ESP32-S2 development board and USB-C breakout board (tight fit to prevent movement).
  • Optional LED display support — space for a 4×4 WS2812B LED matrix on the inside of the lid.
  • Weather-resistant PETG design suitable for outdoor use (when printed in PETG).
  • Easily modifiable STL files to accommodate other ESP32 or USB-C board dimensions.

Power & Wiring

The design uses a USB-C breakout board to feed power to the ESP32-S2.
The ultrasonic sensor connects via a JST connector, and the LED panel (if installed) connects directly to the ESP32 pins as per the provided ESPHome configuration.

Example ESPHome Code

Below is a sanitised version of the ESPHome YAML used in the project (WiFi credentials, API keys, and other sensitive values removed). PLEASE NOTE: You will have to provide your JoJo tank dimensions as the example code is for a 1000-litre slim tank, with a 204mm offset for sensor placement when the tank is full.

esphome:
  name: jojo-echo
  friendly_name: JoJo-Echo

esp32: board: esp32-s2-saola-1 framework: type: esp-idf

logger:

api:

ota:

wifi: ssid: "YOUR_WIFI_SSID" password: "YOUR_WIFI_PASSWORD"

LED Grid (WS2812)

light:

  • platform: esp32_rmt_led_strip id: tank_led name: "Tank LED Grid" chipset: ws2812 pin: GPIO18 num_leds: 16 rgb_order: GRB default_transition_length: 0s restore_mode: ALWAYS_ON

Ultrasonic Sensor

sensor:

  • platform: ultrasonic trigger_pin: GPIO7 echo_pin: GPIO8 id: tank_distance name: "Tank Distance" unit_of_measurement: "m" update_interval: 5s accuracy_decimals: 3 filters:

    • median: window_size: 5 send_every: 1 send_first_at: 1
    • sliding_window_moving_average: window_size: 3 send_every: 1
    • filter_out: nan
  • platform: template id: tank_litres name: "Tank Volume" unit_of_measurement: "L" accuracy_decimals: 2 update_interval: 5s lambda: |- if (isnan(id(tank_distance).state)) return NAN; const float r = 0.42f; // radius const float pi = 3.1415926f; const float full_distance = 0.204f; // m at full 1000L const float volume_height = 1000.0f / (pi * r * r * 1000.0f); const float h = full_distance + volume_height; const float x = id(tank_distance).state; float litres = pi * r * r * (h - x) * 1000.0f; if (litres < 0.0f) litres = 0.0f; if (litres > 1000.0f) litres = 1000.0f; return litres;

This enclosure has been designed with practicality and durability in mind, ensuring your ESP32 tank level monitor remains protected outdoors, while still allowing for easy upgrades and maintenance.

Print Settings (PETG)

  • Material: PETG (recommended for outdoor durability)
  • Layer Height: 0.2 mm
  • Wall Line Count: 4 (for increased strength and weather resistance)
  • Top/Bottom Layers: 3
  • Infill: 30% Gyroid (for strength without excessive material use)
  • Print Temperature: 240°C nozzle / 70°C bed (adjust for your filament brand)
  • Cooling: Minimal cooling (10–20%) to maintain layer adhesion in PETG
  • Supports: None
  • Orientation: Print lid and base separately, both facing up to minimise supports
  • Post-Processing: None required. 

 

Tagi