# AiAutonomous Batik Factory

- **Event:** [Meta Global AI Developer Hackathon](https://cerebralvalley.ai/e/meta-ai-developer-hackathon)
- **When:** Oct 26, 12:00 PM – Nov 4, 9:00 PM (EST)
- **Where:** Online
- **Team:** [Tuan Cin](https://cerebralvalley.ai/u/aichaliveret)
- **GitHub:** https://github.com/AIchaliveret/batik-guard-8in1
- **Demo video:** https://youtube.com/shorts/NhsnnTpaNCg?si=RL16eU6siWyuBipo
- **Gallery:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/19

📋 LONG DESCRIPTION - AGENTIC LOOP WITH META OPEN-WEIGHTS (Buat Form Cerebral Valley)
Problem:
Batik clearance traditional 25 kodi = 500 lembar manual, gradasi kuning Indanthrene + Water Glass tidak beraturan (Bug No 2) needs 120 observations, stok kimia Gudang Kecil hilang (Naphthol A soda api dimasak, Naphthol B nitrit+air keras HCl/H2SO4, Reaktif, Indanthrene + Water Glass), thermal Kuali Pematangan 90x70 346L->173L 8 jam tidak terkontrol, IPAL 3-stage + Cerobong 12M SS304 asap hitam, tanpa log jam kerja 14 CCTV, RAB Teknik Sipil Rp 534.800.000.

Solution - Agentic Loop with Meta open-weights:
ESP32-S3 mesh 5 nodes (192.168.4.1 laptop & 192.168.4.22 HP) ->

AS7341 11-channel spectral + IMX219 8MP Fusion: celup 10 detik 120 observasi kuning 590nm, hitung Delta E CIE76, if Manager A (Red/Blue/Black) >10% alarm, if Manager B (Yellow/Green/Violet specialist) >5% alarm merah HP + trigger IPAL Cyclone+Scrubber+Spark hitam->putih tipis. Manager specialization reduces training.

IMX219 8MP 5500K Colorimeter + Gudang Kimia vision + AS7341: deteksi stok Reaktif, Naphthol A (soda api dimasak api), Naphthol B (nitrit+air keras HCl/H2SO4), HX711 50kg dacin + HX711 5kg 0.1gr, SAM 3.1 segmentation.

MLX90640 32x24 thermal + SHT41 + NDIR CO2 4-ch + MQ-135 NOx for No Motor Water System: Tabung A 500L dingin bersih vacuum insulated + Tabung B Kettle Uap 500L 2 Ruang Pluit 2.5 bar 90kg/jam Thermosiphon panas naik dingin turun, uap pertama menekan Tabung A dorong air ke Kolam/Jambangan 320L/min without motor 135W, stop otomatis Relay COM-NC-NO Orange SS304 800C + ESP32-S3 control HP/Laptop.

Generator 2-4x1000W=2000-4000W Turbine Francis magnet+coil Faraday E=-N dΦ/dt Lenz + Thermal Battery 500L 07:00-17:00 + lembur 17:00-19:00 ATS PLN no LiFePO4 explosion, ESC 6 MOSFET 3 fasa reversible as rectifier MORE SWITCHING POWER = MORE THRUST throttle = steam pressure, Switch Board 4 LEDs Biru Hijau Kuning Merah, Induction magnet spinning -> eddy current 20,000 flips/sec.

14 CCTV Cetak 4 Jemuran 4 Halaman 2 24H Security Naphthol 2 Generator+Water Glass 2 PIR cold only Face IMX219 hot only -> log jam kerja efisien auto STANDBY 12:00-13:00 & 15:00-15:15.

Tech Stack:
Meta: meta-models/muse-spark-open-1026 + Muse Wonder (Context 1M) + SAM 3.1 for stock detection
Infra: Modal Endpoints (app.py) + Baseten $100 + Fireworks Glimmer 30B free SFT
Hardware: ESP32-S3, IMX219, AS7341 11ch 590nm, TCS34725, MLX90640, HX711, SHT41, NDIR CO2, MQ-135, IP65 M12 gland 18650 Double Power
App: WiFi mesh full otomatis dashboard live Delta E, thermal mapping, CO2, relay control, Building Energy 12.4kW 380V 3P

Why Agentic (not generic chatbot/RAG):
Agent plans long task (25 kodi chemical standardization + 120 yellow observations + 14 CCTV + IPAL + Chimney), delegates sub-agents (Manager A vs Manager B 3 colors specialization), recovers from errors (Delta E >5% specialist alarm vs >10% non-specialist), decides LED + relay + IPAL autonomously. Video demo 3 min shows real factory 20x110M = 2200m2 with RAB Rp 534.800.000.

Links:
GitHub PUBLIC repo: https://github.com/Alchaliveret/batik-guard-8in1
Modal URL: https://[username]--batik-guard-8in1-france-turbo-detect-batik-issue.modal.run
Kitab HTML: https://alchaliveret.github.io/batik-guard-8in1/
3D Interior: 3d-interior-architecture-control-office-4x6M.webp
Streamlit: https://batik-guard-8in1.streamlit.app
ESP32 Code: Esp32_S3_As7341_Imx219.html (AS7341 11ch + IMX219 fusion + Manager Specialization)

## More from Meta Global AI Developer Hackathon

- [OpsAegis](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/16)
- [Afsar Masoom](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/17)
- [Deal Interrogator](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/18)
- [boni bonanza](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/20)
- [WAYNE LEVI HERRINGTON AND HOLY SPIRIT](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/21)
- [Pratham the frontier](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/22)

---

Markdown version of https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/19. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
