Tuesday, November 25, 2025

HW#10 Electronics using AI

   AI for solving amplifier electronics (課堂講義內有參考解答)


 建議工具

使用 Claude Sonnet 4

使用 ChatGPT 5

使用 Gemini 2.5 Pro 免費額度最高 1M tokens

使用 Grok 4



 課堂練習 

Deadline: This Saturday at 23:59

Send all the share links to  me chang212@gmail.com by email with subject HW#10  [your id, your name]

How to share a Claude link

How to share a ChatGPT link

How to share a Grok link

How to share Gemini Link


 AI for solving amplifier electronics (課堂講義內有參考解答)

任選兩題


1. Using A* search to design a two stage amplifier using BJT.

Gain approximately 8000, bandwidth 2Hz to 100 kHz

Hint: A* guide  using A* search algorithm to design a two-stage BJT amplifier. This is a fascinating application of AI search to circuit design optimization!

2. Use A* to design a class AB amplifier. The first stage is class A. the second is class B. freq response cut off at 10Hz and 25 KHz





schematic enhanced by Gemini 3.0 Pro




artifact enhanced by Claude (share) opus 4.5




3.  animate in three.js (one of them)

animation of Turbofan jet engine, protein folding, CO2 capture

enhance schematic




Protein Folding artifact  html
highly accomplish it artifact improved on student work


Carbon capture artifact html
(graph by Gemini, artifact re-rendered by Claude)


4. from spec to animation

參考齒輪規格

製作其中一組規格的 3D 齒輪動畫




Follow up to #9

 1. staged or not staged, that is the question.



not staged, all in one, Claude Opus 4.5



Gemini 3.0 Pro



depending on the model.


why Chain of Thought may not work

because it is not summoned. 


AI is the new dev environment


Code, run, debug, verify







IDE+VM+ AI Partner
API discovery and integration
piecing everything together








AI is the new UI.


 

Summary of the Paradigm Shift

FeatureOld UI (Graphical User Interface)New UI (Generative Interface)
InputClicks, Drag-and-Drop, MenusNatural Language (Text/Voice)
Skill RequiredTool proficiency (How to use the software)Articulation (How to describe the goal)
OutputStatic results based on manual inputDynamic, unique results generated on the fly
FrictionHigh (Many steps to achieve 1 result)Low (1 step to achieve complex result)
My examples (Gemini 3 pro)
My examples (Claude Sonnet 4.5,中文) pptx

今年國科會計畫寫甚麼好呢?

Monday, November 24, 2025

Google AI Studio (Playground) and App Builder

 Google has two tools to build artifacts. You have recently used the App Builder, which not only generates codes but also compile them. It takes more time to compile but less time to execute. Therefore, it is best for product delivery to  pilot production. If you are still playing with your idea and involve a lot of iterative revisions, you may want to use Playground, which does not compile the code so it will save time for waiting. 


Claude explains.

Google AI Studio (Playground)

Google AI Studio 是一個瀏覽器為基礎的環境,讓開發者可以快速測試和改進使用 Gemini 模型的提示(prompts) MediumGoogle AI。主要特點包括:

  • 快速原型開發: 這是開始使用 Gemini 建構應用最快的方式 Google AI Studio
  • 互動式測試: 可以即時測試不同類型的提示(freeform、structured、chat prompts)
  • 程式碼產生: 測試完成後可以選擇「Get code」並選擇您偏好的程式語言來使用 Gemini API
  • 適合對象: 開發者、研究人員、想要實驗 AI 功能的創作者

App Builder 工具

根據搜尋結果,Google 提供幾種不同的 App Builder:

1. AppSheet 的 Gemini for App Creation

允許您透過簡單描述業務流程或想法的自然語言來建構應用程式 Google Support。例如:

  • 描述一個管理設施檢查的應用程式
  • Gemini 會返回應用程式結構供您審查和編輯
  • 自動生成資料表、欄位和基本功能

2. Google AI Studio 的 Build Mode

Build Mode 讓您能比以往更快地添加 AI 功能,自動連接正確的模型和 API Google

主要差異總結

特點Playground (AI Studio)App Builder
用途測試和實驗 Gemini 模型建構完整的應用程式
輸出提示設計、API 程式碼可部署的應用程式
技術門檻需要基本程式設計知識可使用自然語言描述
開發方式手動編寫程式碼AI 輔助自動生成
適用場景API 整合、模型測試快速開發商業應用

簡單來說,Playground (AI Studio) 著重在「實驗和測試 AI 模型」,而 App Builder 則專注於「快速建構完整的應用程式」。您會先在 Playground 測試您的 AI 互動方式,然後可能使用 App Builder 或手動編碼來建構完整的應用。



Gemini explains.

Here is the difference between the two modes when creating an engineering animation:

1. Playground Mode (The "Prompt & Test" Phase)

This is the default interface where you chat with the AI (Gemini).

  • Goal: To test if the AI understands the physics or logic of your animation.

  • What you do: You describe the engineering concept (e.g., "Write a Python script to animate a double pendulum with chaotic motion").

  • Result: The AI gives you code snippets or text descriptions. You have to copy-paste this code into another tool (like VS Code or a Python IDE) to actually see the animation run.

  • Best for: debugging the math, refining the physics formulas, or generating the initial code logic.

2. Build Mode (The "Vibe Coding" / App Phase)

This is the new "Build" feature (often called "Vibe Coding").

  • Goal: To create a standalone, running web app that displays your animation immediately.

  • What you do: You type the same prompt (e.g., "Build a web app that simulates a hydraulic press crushing a can with adjustable pressure sliders").

  • Result: AI Studio writes the code (usually React/Javascript), compiles it, and runs it in a preview window on the right side of the screen. You see the animation working live.

  • Best for: Visualizing the final result instantly, creating interactive sliders/buttons for your engineering model, and deploying it as a shareable link.


Summary Comparison

FeaturePlayground ModeBuild Mode
Primary ActionChatting & Code GenerationApp Creation & Previewing
OutputText / Raw Code SnippetsA Functioning Web App (GUI)
VisualizationNone (must run code externally)Live Preview (runs in browser)
Engineering UseVerifying formulas/logicVisualizing the simulation

Wednesday, November 19, 2025

Optimize circuit design using A*

Two stage Amp





 






Make it fully optimized by A*















Using A* search to design a two stage amplifier using BJT.

Hint: A* guide  using A* search algorithm to design a two-stage BJT amplifier. This is a fascinating application of AI search to circuit design optimization!

Use A* to design a class AB amplifier. The first stage is class A. the second is class B. freq response cut off at 10Hz and 25 KHz



schematic enhanced by Gemini 3.0 Pro




artifact enhanced by Claude (shareopus 4.5



Tuesday, November 18, 2025

HW#9 Electronics

  AI for solving amplifier electronics (課堂講義內有參考解答)


 建議工具

使用 Claude Sonnet 4

使用 ChatGPT 5

使用 Gemini 2.5 Pro 免費額度最高 1M tokens

使用 Grok 4



 課堂練習 

Deadline: This Saturday at 23:59

Send all the share links to  me chang212@gmail.com by email with subject HW#9  [your id, your name]

How to share a Claude link

How to share a ChatGPT link

How to share a Grok link

How to share Gemini Link


 AI for solving amplifier electronics (課堂講義內有參考解答)

任選兩題


1. Plot frequency response for the following amplifier circuit using matplotlib

Compare two methods Claude Sonnet 4.5 Freq resp (all in one) vs. staged



AI Model Results:

Note: Lower cut-off comes from coupling capacitors (not shown here).


Generate professional grade Bode plot.

Using AI tools to generate professional plot using Matplotlib


Bode plot

ChatGPT integrates Python environment so it directs generates Bode plot.










Bode plot 

1. React (Claude) - AIStudio - Python w/ Matplotlib - Colab - Plot

2. Reasoning (AIStudio) - AIStudio - Python w/ Matplotlib - Colab - Plot



2. solve for the gain


 (source)



share (Claude running Python internally on VM)






3. Solve for the gain. Plot frequency response for the following  amplifier circuit.



share (Av=-2.31, Lower Cutoff 20 Hz, Upper Cutoff 10.46MHz)

Analysis with Cπ = 22.1 pF, Cμ = 3.0 pF

20Hz is assumed, not by calculation

Analysis with Cπ = 22.1 pF, Cμ = 3.0 pF: 








Design Alternative




 以上參考答案
(1) -4  (2) -165 (3) -2.31 答案誤差10%以內都是正常的