Skip to content

Instantly share code, notes, and snippets.

@KunYi
KunYi / MCU OTA SPEC.md
Last active January 16, 2026 07:33
A specification of MCU OTA

MCU OTA System Specification

1. System Architecture

The OTA system is composed of three main layers:

1.1 Device Layer (MCU Side)

  • MCU Firmware: Bootloader + Application
  • OTA Agent: Handles download, verification, and flash writing
  • Security Module: RSA/ECDSA verification, AES encryption
@KunYi
KunYi / Outdoor IP Camera Enclosure Design Specifiation.md
Last active January 9, 2026 09:11
Outdoor IP Camera – Mechanical & Thermal Design Specification

Outdoor IP Camera – Mechanical & Thermal Design Specification

1. Purpose

This document defines the mechanical, thermal, and environmental design requirements for a fanless outdoor IP Camera, optimized for direct sunlight exposure, sealed enclosure, and long-term industrial deployment.

This specification is intended for:

  • Mechanical design vendors
  • Enclosure / die-casting suppliers
@KunYi
KunYi / Outdoor Industrial Enclosure Design Specification.md
Created January 9, 2026 08:35
Outdoor Industrial Enclosure + Sun Shield Design Specification

Outdoor Industrial Enclosure + Sun Shield Design Specification

1. Scope & Purpose

This specification defines the mechanical, thermal, and environmental design requirements for an outdoor industrial control enclosure equipped with a passive sun shield (radiation shield). The design targets fanless operation, sealed enclosure, and long-term outdoor deployment under direct sunlight.


2. Design Goals

@KunYi
KunYi / 戶外防水盒電路板保護技術報告.md
Created January 9, 2026 08:12
戶外防水盒電路板保護策略報告

戶外防水盒電路板保護技術報告

Outdoor Enclosure Electronics Protection Technical Report


1. 問題背景 / Problem Background

在戶外環境中,電子控制板容易受到水氣、雨水及溫差影響而腐蝕,即使盒子兩端使用橡膠圈密封,實際測試中仍可能因溫度變化導致水汽滲入。

原因

@KunYi
KunYi / OutdoorEnclosureElectronicsProtection.md
Created January 9, 2026 08:10
Outdoor Enclosure Electronics Protection Technical Report

Outdoor Enclosure Electronics Protection Technical Report


1. Problem Background

In outdoor environments, electronic control boards are susceptible to moisture, rain, and temperature variations, which can lead to corrosion. Even if the enclosure uses rubber seals at both ends, practical tests show that temperature changes can still allow water vapor to enter.

Causes:

  1. Temperature differences cause internal pressure fluctuations (positive/negative), drawing in external moisture.
@KunYi
KunYi / meow.cpp
Created November 5, 2025 06:08
Chinese Meow C++ demo code
#define 喵喵喵 main
#define 喵喵 int
#define 喵 (
#define 喵喵嗚 )
#define 喵喵喵喵 {
#define 喵嗚喵 }
#define 嗚喵喵 <<
#define 嗚 cout
#define 嗚嗚 endl
#define 嗚嗚嗚 "喵喵喵!"
@KunYi
KunYi / coreboot_lattepand_mu.md
Last active September 18, 2025 13:52
lattepanda mu with coreboot 25.06 and latest

prepare build environments

$ sudo apt-get install -y bison build-essential curl flex git gnat libncurses-dev libssl-dev zlib1g-dev pkgconf

pull source code

@KunYi
KunYi / rtsp_client.c
Created July 25, 2025 00:37
RTSP clent use FFMPEG/SDL2 for 720P
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/imgutils.h>
#include <libavutil/time.h>
#include <SDL2/SDL.h>
#include <stdio.h>
#include <stdlib.h>
#define RTSP_URL "rtsp://172.32.0.93:554/live/0"
@KunYi
KunYi / PICO BOARD with NUC120.md
Created June 2, 2025 05:35
DebugProbeOnPICO pins wires mapping table

PICO BOARD NUC120DBG
PIN2 (GPIO1): nRST PIN4: nRST
PIN4 (GPIO2): SWD_CLK PIN3: SWDCLK
PIN5 (GPIO3): SWD_DAT PIN2: SWDDAT
PIN36: 3V3 PIN1: VCC_3V3
PIN38: GND PIN5: GND