惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tenable Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
博客园 - 司徒正美
D
Darknet – Hacking Tools, Hacker News & Cyber Security
量子位
N
News | PayPal Newsroom
S
Secure Thoughts
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LINUX DO - 热门话题
有赞技术团队
有赞技术团队
V
Visual Studio Blog
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Project Zero
Project Zero
B
Blog RSS Feed
J
Java Code Geeks
Google Online Security Blog
Google Online Security Blog
Last Week in AI
Last Week in AI
Cyberwarzone
Cyberwarzone
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
小众软件
小众软件
博客园 - 【当耐特】
Latest news
Latest news
T
Threat Research - Cisco Blogs
aimingoo的专栏
aimingoo的专栏
博客园_首页
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta
D
Docker
Forbes - Security
Forbes - Security
Help Net Security
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
The Last Watchdog
The Last Watchdog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Threatpost
Cloudbric
Cloudbric
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
Webroot Blog
Webroot Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Turning a Toaster Oven into a Reflow Oven — A Safety Design Story
Takahiro Tan · 2026-05-28 · via DEV Community

⚠️ Disclaimer: This project involves modifying an AC100V household appliance. Anyone attempting a similar modification should fully understand the risks of electric shock and fire, and proceed entirely at their own risk.

Characters

  • Master: The person who wants to build a DIY reflow oven
  • Tanjiro: A sincere but occasionally misguided assistant

Tanjiro is named after the protagonist of Demon Slayer — earnest, hardworking, and genuinely sorry every time he gets something wrong.


The Parts Are Coming Together

There's an Iris Ohyama toaster oven sitting on the workbench — 15 liters, nothing special. The plan is to turn it into a reflow oven.

Yes, buying a commercial reflow oven would be the sensible choice. But there's something appealing about building your own controller, defining your own temperature profiles, and being able to trace every fault back to a schematic you drew yourself. So here we are.

Here's what's on hand:

Part Qty Status
Iris Ohyama Toaster Oven 15L 1 ✓ Have it
MAX31855 Thermocouple Module (K-type) 1 ✓ Have it
SSR-25DA Solid State Relay 2 ✓ Have it
SSR Heat Sink 2 ✓ Have it
15A Circuit Breaker 1 ✓ Have it
ESP32 Need to buy
Thermocouple Need to buy

With the parts laid out, Master and Tanjiro sat down to work through the design.


The Fuse Debate

Master: "Do we actually need a fuse after the breaker?"

Tanjiro: "Absolutely! A fuse responds faster than a breaker, so it provides better device-level protection!"

Master: "But if an SSR fails shorted — stuck closed — the current through the heater stays within its rated range, right?"

Tanjiro: "...oh."

Master: "A fuse protects against overcurrent. It won't react in that scenario."

SSR fails (stuck closed)
  │
  ├──→ Current remains within rated range
  │         └──→ Fuse: does nothing ✗
  │
  └──→ Temperature keeps rising
            └──→ Thermal runaway 🔥

Enter fullscreen mode Exit fullscreen mode

Tanjiro: "You're absolutely right. We're not trying to stop a current runaway — we're trying to stop a temperature runaway. A fuse is simply the wrong tool for this."

Master: "Exactly. So let's think about what the right tools are."


Building Layers of Safety

Master: "I want a software watchdog that cuts the SSR if we exceed the setpoint by 30°C. And I want to use the oven's built-in thermostat as a hardware backstop. How do we structure this?"

Tanjiro: "Let me try to organize it as layers."

Layer Owner Trigger Action
1 ESP32 PID Temperature profile Normal operation
2 ESP32 Software Setpoint +30°C exceeded Force SSR OFF
3 MAX31855 Sensor open/short circuit FAULT flag → SSR OFF
4 ESP32 Internal WDT Deadlock Reset → GPIO LOW → SSR OFF
5 ??? Absolute temperature exceeded Physical AC disconnect

Tanjiro: "Layer 5 is still empty. We need something that works completely independently of software — even if everything else has failed."

Master: "KSD9700 would work here."


Discovering the KSD9700

Tanjiro: "KSD9700... it's a bimetallic thermostat disc. When it exceeds its rated temperature, the contacts physically open."

Master: "No software, no control signals involved. Just temperature. Wire it in series with the AC line and it becomes the last line of defense."

Tanjiro: "And it operates on a completely different physical principle from our other protection mechanisms."

Protection Measurement Principle
Thermocouple (main sensor) Seebeck effect
KSD9700 (final backstop) Bimetallic physical deformation

Tanjiro: "If you double up on the same method, both can fail for the same reason at the same time. Changing the underlying principle is what makes redundancy real. That's diversity redundancy."

Master: "Exactly."


The AND Gate Trap

Master: "Alongside the ESP32, I want to use a PIC microcontroller for safety monitoring during development. How do we combine their outputs to control the SSR?"

Tanjiro: "An AND gate! Both outputs must be HIGH for the SSR to turn on!"

Master: "Isn't that backwards?"

Tanjiro: "...huh?"

Master: "We want: if either one detects a fault, cut the SSR. That's Wired-OR."

Tanjiro: "...you're right. I had the logic completely inverted. I'm sorry."

ESP32 (open-drain) ──┐
                     ├──[pull-up]──→ SSR-25DA
PIC   (open-drain) ──┘

Both HIGH  →  SSR ON  (heating)
Either LOW →  SSR OFF (safe)

Enter fullscreen mode Exit fullscreen mode

Tanjiro: "Both outputs are open-drain with a shared pull-up. The moment either one pulls LOW, the line goes LOW and the SSR cuts. If one side fails, the other keeps running independently."

Master: "That's the idea."

📝 Note on Wired-OR vs Wired-AND
Strictly speaking, this configuration — open-drain outputs with a pull-up — is called Wired-AND in positive logic, because the output is HIGH only when both drivers release the line (the same topology used by I2C). Viewed in negative logic, however, either side asserting LOW stops the SSR, which is OR behavior. This article uses "Wired-OR" to emphasize that intent. Readers familiar with the formal terminology may prefer to call it Wired-AND.


The Two-Thermocouple Trap

Tanjiro: "For sensor redundancy, what about using two thermocouples with two separate MAX31855 modules?"

Master: "Isn't that too simplistic?"

Tanjiro: "How so?"

Master: "Different mounting positions mean different temperatures. If you put two identical sensors side by side using the same method, you can't build a valid monitoring system — you have no reference."

Tanjiro: "...right. If the two readings diverge, there's no way to know which one is correct, or whether it's even an anomaly."

Master: "Besides, KSD9700 is already watching temperature using a completely different physical principle. That is your second sensor — and it's already built on diversity."

Tanjiro: "So one thermocouple is enough. And the MAX31855 handles open-circuit and short-circuit detection in hardware. That covers the sensor failure modes."


The Deadlock Problem

Tanjiro: "For detecting ESP32 deadlocks, what about adding an external watchdog IC? The ESP32 sends a regular kick pulse, and if it stops, the watchdog cuts the SSR."

Master: "The ESP32's internal WDT handles that."

Tanjiro: "Oh."

Master: "When it deadlocks, the internal WDT fires a reset. During reset, GPIO goes LOW, which propagates through the Wired-OR and cuts the SSR. The PIC's job is overtemperature detection during development — while the ESP32 code is still unstable."

Tanjiro: "So the purpose is different entirely. Got it."


The SPI Bus: Who's in Charge?

Master: "The PIC needs temperature data. We only have one MAX31855. How do we share it?"

Tanjiro: "Make the ESP32 the SPI master, and have the PIC snoop on the bus!"

                    ┌── SCK/CS ──→ MAX31855
ESP32 (SPI Master) ─┤              │
                    └──←── MISO ───┘
                                   │
PIC   (Snooping)   ─────←── MISO ──┘
                   ──── SCK/CS ref ──→ (from ESP32)

✗ Safety system depends on ESP32 being alive

Enter fullscreen mode Exit fullscreen mode

Master: "That makes the safety system dependent on the ESP32 being alive."

Tanjiro: "...oh no."

Master: "If the ESP32 stops, the PIC loses its temperature data too. Having your safety system depend on your main system is completely backwards."

Tanjiro: "You're right. So we flip it."

                   ┌── SCK/CS ──→ MAX31855
PIC (SPI Master ✓)─┤              │
                   └──←── MISO ───┘
                                  │
ESP32 (Snooping)  ────←── MISO ───┘
                  ──── SCK/CS ref ──→ (from PIC)

✓ Safety system runs independently of ESP32

Enter fullscreen mode Exit fullscreen mode

Tanjiro: "The PIC becomes the SPI master, reading the MAX31855 every 100ms. The ESP32 snoops on those transactions as a passive slave and uses the data for PID control."

Master: "And what happens when the ESP32 deadlocks and stops doing SPI reads?"

Tanjiro: "The PIC stops seeing transactions. It can detect that silence as a timeout. Which means... the ESP32's normal operation is the heartbeat signal to the PIC."

Master: "No dedicated heartbeat line. No external watchdog IC."

Tanjiro: "One passive tap on the SPI bus gives us both temperature monitoring and deadlock detection. That's... actually elegant."


Where Things Stand

After a long series of corrections, the architecture has taken shape.

AC100V
  │
  ├──→ 15A Circuit Breaker
  │         │
  │         ├──→ KSD9700 (Bimetallic Thermostat) [Layer 5]
  │                   │
  │                   └──→ SSR-25DA ──→ Heater Element
  │                             ↑
  │                        Wired-OR
  │                    ┌────────┴────────┐
  │              ESP32 (open-drain)   PIC (open-drain)
  │              [Layer 1 & 4]        [Layer 2]
  │                    ↑                  ↑
  │                    └────────┬──────────┘
  │                             │ SPI (snoop)  │ SPI (master, 100ms)
  │                         MAX31855 [Layer 3: FAULT Detection]
  │                             ↑
  └──────────────────── K-type Thermocouple

Enter fullscreen mode Exit fullscreen mode

Layer Owner Monitors Notes
1 ESP32 PID Temperature profile Normal operation
2 PIC Setpoint +30°C Dev safety net, stays in production too
3 MAX31855 Sensor open/short Hardware FAULT detection
4 ESP32 Internal WDT Deadlock Reset → GPIO LOW → SSR OFF
5 KSD9700 Absolute temperature Bimetallic, fully software-independent

Tanjiro: "No schematic yet. No firmware yet. But the design philosophy is solid."

Master: "More to come."


Parts list: IRIS OHYAMA PFC-D15A-W / MAX31855 / SSR-25DA / KSD9700 / ESP32 / PIC (3.3V)