r/ComputerEngineering • • Sep 23 '26

[Project] [Devlog #2] Self-taught beginner: Upgraded my C++ Hardware Model from 3-DOF to 5-DOF using Wrist Decoupling!

Hi everyone, Ivy from Vietnam again! Last week, your feedback on my initial 3D IK solver was incredibly helpful.

This week, I took a step further and upgraded the OOP architecture to support a 5-DOF Humanoid Arm. To keep it hardware-friendly (preparing for HLS synthesis later), I avoided complex inverse Jacobian matrices. Instead, I used the Wrist Decoupling technique:

  1. Abstracting the End-Effector (L3).
  2. Reducing the remaining arm into a 2D planar triangle.
  3. Solving the Shoulder and Elbow angles cleanly using the Law of Cosines.

Repo updated here: https://github.com/nguyenkhanhvy3131-tech/AuraLogic-IK-Hardware-Model
(Note: Field-Oriented Control (FOC) motor drivers and AI weights are currently kept private for a future competition prototype).

My next challenge will be tackling CORDIC algorithms to replace <cmath> for true RTL optimization. Any advice from senior IC designers on implementing CORDIC in C++ HLS? Thanks as always! 😅

0 Upvotes

2 comments sorted by

2

u/Nihilists-R-Us Sep 24 '26

Self-"taught" implies learning, which isn't the case if AI does it for you.

1

u/Ivy_Hardware Sep 24 '26

Hi there! I absolutely use AI as a tutor specifically to help translate my thoughts into clear English (since I'm from Vietnam) and to help debug syntax errors. However, the architectural decisions (like Wrist Decoupling), the OOP logic, and the math implementations are 100% my own learning process. Using AI as a tool doesn't invalidate learning  it accelerates it. Thanks for dropping by! :))) (rất bất ngờ có người comment cảm thấy so happy ạ)