Taking Building with the Claude API. Notes from today

  • Prompt engineering requires certain guidelines
    • List qualities that the output should have
      • eg. keep this under 1000 words and include a specific example that includes a physical metaphor 
    • Provide steps the model should follow
      • Compare current and previous metrics
      • Summarize changes
      • Review customer feedback 

ChatGPT: Code Interpreter | Treehouse

  • Example: use EV data from Kaggle and uploading to ChatGPT code interpreter and give a summary 
  • You can see ChatGPT generate python code in real time, schema, summary stats
  • It can generate pyplot, bokeh visualizations and use pandas dataframe
  • You can do things to help you run a customer sentiment analysis but may need from massaging and fact checking

Worked with Claude and Gemini on deciding what hardware + robot kit to learn:

Item
SIYEENOVE Robotic Arm
XIAO ESP32S3 Sense
Grove Vision AI V2
Raspberry Pi 5 (4GB)
SunFounder AI Fusion Lab Kit

Think of it as a body

DeviceRoleAnalogy
Robotic ArmDoes the physical workHands
XIAO ESP32S3 SenseCoordinates signals between devicesSpinal cord
Grove Vision AI V2Sees and identifies objectsEyes
Raspberry Pi 5Reasons, talks to LLMs, handles voiceBrain
SunFounder KitGives the Pi ears, voice, and sensorsSensory organs

How they connect physically:

You speak

    ↓

SunFounder Mic → Raspberry Pi 5 → LLM (ChatGPT/Gemini)

                        ↓

                 LLM sends command back

                        ↓

                 Pi tells XIAO what to do

                        ↓

SunFounder Camera → Grove Vision AI V2 → finds the object

                        ↓

                 XIAO receives object location

                        ↓

                 XIAO moves the Robotic Arm

                        ↓

                 Arm picks up the object

                        ↓

                 Pi speaks confirmation back to you

 How you’d learn on them in order:

Week 1-2 — Just the Arm + XIAO Plug the arm into the XIAO. Write simple code that says “move left, move right, open gripper.” No AI yet — just understanding how to send commands to physical hardware. This is the foundation everything else builds on. If you can’t control the arm with code, nothing else matters.

Week 3-4 — Add the Grove Vision AI V2 Plug the camera in. Now the arm reacts to what it sees instead of following hardcoded commands. Point the camera at a red object — arm moves toward it. Point at a blue object — arm stops. You’ve just built your first perception-action loop. This is the core of every robotics AI system.

Week 5-6 — Add the Raspberry Pi + SunFounder Kit Now you add language and reasoning. Instead of the arm only reacting to colors or shapes, you can tell it what to do in plain English. The Pi takes your voice, sends it to an LLM, gets back a structured command, and passes it down to the XIAO. The system goes from reactive to intelligent.

Week 7+ — Connect all five together Voice in → LLM reasons → Grove V2 finds the object → XIAO coordinates → arm acts → Pi speaks confirmation. That full loop is a working AI agent with a physical body. Small scale, but architecturally identical to what’s running in serious robotics labs.


The key insight for your PM context:

Each layer maps directly to a real product decision:

  • Grove V2 = edge inference (the GR4AD paper you read)
  • XIAO = embedded systems / IoT coordination
  • Raspberry Pi + LLM = the cloud reasoning layer every AI product has
  • The arm = actuation / real-world impact

When engineers on your team debate whether to run inference on-device or in the cloud, you’ll have physically experienced why that tradeoff exists and what it costs in latency, complexity, and money.

Plan to start:

Here’s the learning arc in order:


Phase 1 — Get the Pi running (Day 1, ~2 hours)

Just getting the hardware set up. Plug in the SD card, connect to your WiFi, open a terminal. No coding yet — just confirming everything works. The Vilros kit includes a quickstart guide that walks you through this. By the end you have a working Linux computer.


Phase 2 — Python basics on real hardware (Week 1)

The SunFounder kit’s video lessons start here. You’re writing Python that controls physical things — turning on an LED, reading a temperature sensor, making the OLED screen display text. This sounds basic but it’s important: you’re learning that code has physical consequences, which is the mental model everything else builds on.

What you actually learn:

  • Python syntax in a context where mistakes are visible
  • How sensors send data to a computer
  • How a computer sends commands to hardware

Phase 3 — Voice AI (Week 2)

Now you use the SunFounder kit’s built-in microphone and speaker. You speak, the Pi converts it to text, sends it to ChatGPT or Gemini via API, gets a response, and speaks it back to you.

What you actually learn:

  • How to call an LLM API programmatically (not just through a chat interface)
  • Speech-to-text and text-to-speech pipelines
  • How latency works in a real AI system — you’ll feel the delay between speaking and response and understand why it exists

This is directly relevant to your Stellair work — you’ll understand the full technical stack of a voice AI product from the ground up.


Phase 4 — Computer Vision (Week 3)

The SunFounder camera attaches to the Pi. Now you’re writing Python with OpenCV — detecting colors, tracking objects, identifying hand gestures with MediaPipe. The pan-tilt mount in the kit physically moves the camera to follow a detected object.

What you actually learn:

  • How computer vision works at the code level
  • The difference between detection (is there a face?) and tracking (where is it moving?)
  • Why frame rate and latency matter in vision systems — you’ll see it stutter in real time

Phase 5 — Combine everything (Week 4)

This is where it gets interesting. You combine voice + vision + LLM into one project. Example: you say “what do you see?” — the camera captures a frame, sends it to GPT-4o vision, gets back a description, and the Pi speaks it to you. That’s a working multimodal AI system you built yourself.

What you actually learn:

  • How multimodal AI works in practice
  • How to chain APIs together
  • System thinking — when one part is slow, why, and how to fix it

By the end of Phase 5 you’ll be able to:

  • Speak credibly about LLM API integration from personal experience
  • Understand edge AI tradeoffs because you’ve felt latency in your own system
  • Explain computer vision concepts with concrete examples
  • Have a real project to reference in interviews and consulting conversations

Then you add the robotic arm and Seeed stack — and you already understand everything the software layer needs to do. The hardware just becomes the next logical step.

Posted in , ,

Leave a Reply