{
 "原理:歐姆定律與分壓為什麼成立#1": {
  "type": "cards",
  "reveal": [
   0,
   3,
   3
  ],
  "cards": [
   {
    "title": "電壓",
    "points": [
     "像水塔的高度",
     "也就是水壓"
    ]
   },
   {
    "title": "電流",
    "points": [
     "像每秒流過的水量"
    ]
   },
   {
    "title": "電阻",
    "points": [
     "像管子的細窄程度"
    ]
   }
  ]
 },
 "原理:歐姆定律與分壓為什麼成立#4": {
  "type": "line",
  "x": [
   "0 V",
   "5 V"
  ],
  "min": 0,
  "max": 25,
  "unit": " mA",
  "series": [
   {
    "name": "250 Ω",
    "y": [
     0,
     20
    ]
   }
  ],
  "markers": [
   {
    "x": 1,
    "y": 20,
    "label": "5 V → 20 mA",
    "at": 1
   }
  ],
  "reveal": [
   0,
   2
  ]
 },
 "原理:歐姆定律與分壓為什麼成立#5": {
  "type": "table",
  "head": [
   "步驟",
   "式子"
  ],
  "widths": [
   1,
   2.2
  ],
  "reveal": [
   0,
   1,
   3
  ],
  "rows": [
   [
    "串聯電流",
    "I = Vin ÷ (R1 + R2)"
   ],
   [
    "R2 的電壓",
    "Vout = I × R2"
   ],
   [
    "合併",
    "Vout = Vin × R2 ÷ (R1 + R2)"
   ]
  ]
 },
 "原理:歐姆定律與分壓為什麼成立#6": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   3,
   3,
   4,
   4
  ],
  "nodes": [
   {
    "label": "空載輸出",
    "sub": "≈ 3.33 V",
    "color": 1
   },
   {
    "label": "接 10 kΩ 負載",
    "sub": "並聯在 R2 上",
    "color": 2
   },
   {
    "label": "2 kΩ 並聯 10 kΩ",
    "sub": "≈ 1.667 kΩ",
    "color": 0
   },
   {
    "label": "Vout",
    "sub": "= 3.125 V",
    "color": 4,
    "kind": "end"
   }
  ]
 },
 "原理:歐姆定律與分壓為什麼成立#7": {
  "type": "cards",
  "reveal": [
   0,
   2
  ],
  "cards": [
   {
    "title": "0.01 A 流過 330 Ω",
    "points": [
     "P = I²R"
    ],
    "value": "0.033 W"
   },
   {
    "title": "0.5 A 流過 330 Ω",
    "points": [
     "P = I²R"
    ],
    "value": "82.5 W 會燒毀"
   }
  ]
 },
 "電壓、電流、電阻與歐姆定律#1": {
  "type": "table",
  "head": [
   "名稱",
   "單位 / 式",
   "說明"
  ],
  "widths": [
   1,
   1.4,
   1.6
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   5
  ],
  "rows": [
   [
    "電壓",
    "伏特 V",
    "像水管裡的水壓"
   ],
   [
    "電流",
    "安培 A(常用 mA)",
    "像水流量"
   ],
   [
    "電阻",
    "歐姆 Ω",
    "像水管的細窄程度"
   ],
   [
    "歐姆定律",
    "V = I × R",
    "I = V ÷ R"
   ],
   [
    "功率",
    "P = V × I",
    "單位瓦特 W"
   ]
  ]
 },
 "電壓、電流、電阻與歐姆定律#4": {
  "type": "table",
  "head": [
   "情況",
   "電流",
   "功率",
   "結果"
  ],
  "widths": [
   1.2,
   1,
   1.2,
   2
  ],
  "reveal": [
   0,
   1,
   2
  ],
  "rows": [
   [
    "限流 330 Ω",
    "10 mA",
    "0.033 W",
    "1/4 W 電阻綽綽有餘"
   ],
   [
    "用 1/4 W 電阻",
    "500 mA",
    "≈ 82 W",
    "瞬間冒煙"
   ]
  ]
 },
 "電壓、電流、電阻與歐姆定律#5": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "串聯",
    "points": [
     "電流相同,電壓分攤",
     "兩顆 1.5 V 串聯得 3 V"
    ]
   },
   {
    "title": "並聯",
    "points": [
     "電壓相同,電流分攤",
     "電壓不變,容量變大"
    ]
   },
   {
    "title": "鋰電池組",
    "points": [
     "2S:兩顆串聯",
     "2S2P:兩串並聯成兩組"
    ]
   }
  ]
 },
 "電壓、電流、電阻與歐姆定律#6": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   2,
   3
  ],
  "nodes": [
   {
    "label": "啟動或堵轉",
    "color": 4
   },
   {
    "label": "電流最大",
    "sub": "空載的數倍到十倍以上",
    "color": 2
   },
   {
    "label": "用堵轉電流估算",
    "sub": "查資料表 stall current",
    "color": 0,
    "kind": "end"
   }
  ]
 },
 "電壓、電流、電阻與歐姆定律#7": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "LED 沒串電阻",
    "points": [
     "直接接腳位與地",
     "LED 與腳位都可能燒壞"
    ]
   },
   {
    "title": "忘記單位",
    "points": [
     "mA 當成 A 代入公式",
     "結果差一千倍"
    ]
   },
   {
    "title": "混淆電壓電流",
    "points": [
     "7.4 V 電池短路",
     "也能放出極大電流而起火"
    ]
   }
  ]
 },
 "電源設計:電池、保險絲與共地#1": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   4,
   4
  ],
  "nodes": [
   {
    "label": "馬達啟動",
    "sub": "吸很大的電流",
    "color": 4
   },
   {
    "label": "電池電壓",
    "sub": "瞬間下降",
    "color": 2
   },
   {
    "label": "微控制器",
    "sub": "電壓跌落重開機",
    "color": 0
   },
   {
    "label": "車子當機",
    "sub": "一加速就當機",
    "color": 4,
    "kind": "end"
   }
  ]
 },
 "電源設計:電池、保險絲與共地#2": {
  "type": "flow",
  "layout": "snake",
  "reveal": [
   0,
   5
  ],
  "edges": [
   [
    0,
    1
   ],
   [
    1,
    2
   ],
   [
    1,
    3
   ]
  ],
  "nodes": [
   {
    "label": "電池",
    "color": 2
   },
   {
    "label": "保險絲與開關",
    "sub": "分成兩路",
    "color": 4
   },
   {
    "label": "降壓穩壓",
    "sub": "供電給邏輯電路",
    "color": 0
   },
   {
    "label": "馬達驅動模組",
    "sub": "直接供電給馬達",
    "color": 3
   },
   {
    "label": "共地",
    "sub": "所有 GND 接在一起",
    "color": 1,
    "kind": "end"
   }
  ]
 },
 "電源設計:電池、保險絲與共地#3": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "電源分開",
    "points": [
     "馬達電源:電池經開關、保險絲",
     "微控制器經穩壓取得 5 V 或 3.3 V"
    ]
   },
   {
    "title": "共地",
    "points": [
     "驅動模組、微控制器、感測器的 GND 連在一起"
    ]
   },
   {
    "title": "不用 5V 腳",
    "points": [
     "不要用開發板 5V 腳位直接帶動馬達"
    ]
   }
  ]
 },
 "電源設計:電池、保險絲與共地#4": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   3,
   4
  ],
  "nodes": [
   {
    "label": "電池容量",
    "sub": "2000 mAh",
    "color": 2
   },
   {
    "label": "平均電流",
    "sub": "500 mA",
    "color": 0
   },
   {
    "label": "理想續航",
    "sub": "2000 ÷ 500 = 4 小時",
    "color": 1
   },
   {
    "label": "保守估算",
    "sub": "乘上 0.7~0.8",
    "color": 4,
    "kind": "end"
   }
  ]
 },
 "電源設計:電池、保險絲與共地#5": {
  "type": "table",
  "head": [
   "驅動模組",
   "元件",
   "導通壓降"
  ],
  "widths": [
   1,
   1.2,
   1.6
  ],
  "reveal": [
   0,
   2,
   2
  ],
  "rows": [
   [
    "L298N",
    "雙極電晶體",
    "1.5~2.5 V"
   ],
   [
    "TB6612",
    "MOSFET",
    "小得多"
   ]
  ]
 },
 "電源設計:電池、保險絲與共地#6": {
  "type": "bar",
  "unit": " V",
  "labels": [
   "滿電",
   "標稱",
   "必須斷電"
  ],
  "values": [
   8.4,
   7.4,
   6
  ],
  "colors": [
   1,
   0,
   4
  ],
  "reveal": [
   0,
   3
  ]
 },
 "電源設計:電池、保險絲與共地#7": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   3,
   3
  ],
  "nodes": [
   {
    "label": "整車堵轉",
    "sub": "總電流估計 2 A",
    "color": 4
   },
   {
    "label": "選保險絲",
    "sub": "約 3 A",
    "color": 2
   },
   {
    "label": "開關與急停",
    "sub": "要能切斷馬達電源",
    "color": 1,
    "kind": "end"
   }
  ]
 },
 "分壓與電平轉換:3.3V 與 5V 並存#1": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2
  ],
  "cards": [
   {
    "title": "Arduino Uno",
    "points": [
     "5 V 邏輯",
     "HC-SR04 的 Echo 為 5 V,直接接沒問題"
    ]
   },
   {
    "title": "ESP32",
    "points": [
     "腳位不耐 5 V,直接接可能損壞晶片",
     "3.3 V 版模組可直接使用"
    ]
   }
  ]
 },
 "分壓與電平轉換:3.3V 與 5V 並存#2": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   2,
   3,
   4,
   4,
   4,
   4
  ],
  "nodes": [
   {
    "label": "Echo 輸入",
    "sub": "5 V",
    "color": 4
   },
   {
    "label": "R1",
    "sub": "1 kΩ",
    "color": 2
   },
   {
    "label": "R2 到地",
    "sub": "2 kΩ",
    "color": 0
   },
   {
    "label": "輸出",
    "sub": "≈ 3.33 V 接 ESP32",
    "color": 1,
    "kind": "end"
   }
  ]
 },
 "分壓與電平轉換:3.3V 與 5V 並存#5": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   2,
   3
  ],
  "nodes": [
   {
    "label": "ESP32 輸出",
    "sub": "3.3 V",
    "color": 0
   },
   {
    "label": "5 V 晶片的 Vih",
    "sub": "約 0.7 × VCC = 3.5 V",
    "color": 2
   },
   {
    "label": "可能不穩",
    "sub": "要用電平轉換",
    "color": 4,
    "kind": "end"
   }
  ]
 },
 "分壓與電平轉換:3.3V 與 5V 並存#7": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   3,
   4
  ],
  "nodes": [
   {
    "label": "2S 滿電",
    "sub": "8.4 V",
    "color": 2
   },
   {
    "label": "分壓",
    "sub": "R1 20 kΩ、R2 10 kΩ",
    "color": 0
   },
   {
    "label": "ADC 電壓",
    "sub": "8.4 × 10 ÷ 30 = 2.8 V",
    "color": 1
   },
   {
    "label": "電池電壓",
    "sub": "= ADC 電壓 × 3",
    "color": 3,
    "kind": "end"
   }
  ]
 }
}
