<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Raspberry Pi | Aaron Wu</title><link>https://aawrail.me/tags/raspberry-pi/</link><atom:link href="https://aawrail.me/tags/raspberry-pi/index.xml" rel="self" type="application/rss+xml"/><description>Raspberry Pi</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Mon, 11 May 2026 00:00:00 +0000</lastBuildDate><image><url>https://aawrail.me/media/icon_hu5270673394573577288.png</url><title>Raspberry Pi</title><link>https://aawrail.me/tags/raspberry-pi/</link></image><item><title>Turkish Ice Cream Robotic Arm</title><link>https://aawrail.me/project/turkish-ice-cream/</link><pubDate>Mon, 11 May 2026 00:00:00 +0000</pubDate><guid>https://aawrail.me/project/turkish-ice-cream/</guid><description>&lt;p>&lt;strong>MakeNTU 2026 · Best Maker Award&lt;/strong>&lt;/p>
&lt;p>Our team built this low-cost robotic arm on site in &lt;strong>36 hours&lt;/strong> at MakeNTU 2026. Inspired by Turkish ice cream vendors, the arm tracks a visitor’s hand and moves the cone out of reach as they reach for it. I designed the arm’s control software and integrated it with the motors for the live demonstration.&lt;/p>
&lt;p>&lt;a href="https://drive.google.com/file/d/1BFXB1GpudO0woDzYfWKCwXtomD88cyo4/view?usp=sharing" target="_blank" rel="noopener">Open demo in Google Drive&lt;/a> · &lt;a href="https://github.com/work-tomorrow/turkish-ice-cream" target="_blank" rel="noopener">Source code&lt;/a>&lt;/p>
&lt;iframe class="drive-video"
src="https://drive.google.com/file/d/1BFXB1GpudO0woDzYfWKCwXtomD88cyo4/preview"
title="Turkish Ice Cream Robotic Arm demonstration at MakeNTU 2026"
allow="fullscreen"
allowfullscreen>
&lt;/iframe>
&lt;h2 id="from-camera-to-arm-movement">From camera to arm movement&lt;/h2>
&lt;ol>
&lt;li>&lt;strong>Track the hand.&lt;/strong> A desktop vision service uses MediaPipe to detect the visitor’s hand in the camera feed. It sends the detection results to a FastAPI service running on the Raspberry Pi over a WebSocket.&lt;/li>
&lt;li>&lt;strong>Choose where to move.&lt;/strong> The Pi maps the detected hand position from camera pixels into the arm’s workspace using a four-point calibration. The controller then uses that position to choose how to move the cone within the arm’s reach.&lt;/li>
&lt;li>&lt;strong>Drive the arm.&lt;/strong> The controller uses planar inverse kinematics to turn a target position into joint angles. The motor control layer translates those targets into commands for the physical arm.&lt;/li>
&lt;/ol>
&lt;p>&lt;a href="featured.png">
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Physical prototype with the robotic arm, motor electronics, and wiring" srcset="
/project/turkish-ice-cream/featured_hu15948832166037979985.webp 400w,
/project/turkish-ice-cream/featured_hu7132629095878049465.webp 760w,
/project/turkish-ice-cream/featured_hu8526797759361558519.webp 1200w"
src="https://aawrail.me/project/turkish-ice-cream/featured_hu15948832166037979985.webp"
width="718"
height="760"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/a>&lt;/p>
&lt;p>&lt;em>The prototype we used for the MakeNTU demonstration.&lt;/em>&lt;/p>
&lt;h2 id="inverse-kinematics">Inverse kinematics&lt;/h2>
&lt;p>The motion controller chooses where the tip of the cone should go in the arm’s left–right and up–down plane. To turn that target into motor commands, I modeled the arm’s links and joint offsets with forward kinematics. The inverse kinematics solver then iteratively adjusts the joint angles to bring the predicted tip position closer to the target.&lt;/p>
&lt;p>The solver favors keeping the cone pointed forward. Near the edge of the workspace or when a joint reaches its limit, it can use additional pitch and yaw to reach more positions while respecting the motor angle limits.&lt;/p>
&lt;p>During the demo, targets change as the visitor moves their hand. The solver starts each new calculation from the previous solution to reduce sudden changes in joint angles. If it cannot get close enough to a target within the joint limits, the controller keeps the current motor targets.&lt;/p>
&lt;h2 id="my-contribution">My contribution&lt;/h2>
&lt;p>I designed the core control software on the Raspberry Pi, implemented the 2D inverse kinematics for positioning the arm, and integrated the motion controller with the motor interface. I also tested and debugged the system on the physical arm as the team prepared for the final demo.&lt;/p></description></item></channel></rss>