# Leong Ko Ryan Jasper (Ryan Leong) — Full Technical Portfolio & Dossier > Leong Ko Ryan Jasper (Ryan Leong) — Robotics Software Engineer, Robotics Engineer, and Embodied AI Researcher (NUS M.Sc. & First Class Honours, ex-ZeroshotData San Francisco, DSO National Laboratories, Stanford Visiting Student). PyTorch RL, Genesis World simulation, bimanual DLO manipulation, tactile sensing, C++, ROS 2, and ORB-SLAM3 VIO. US H-1B1 eligible. - Portfolio URL: https://ryan-leong-portfolio.vercel.app - Email: ryan.leong@u.nus.edu - GitHub: https://github.com/ryryry-3302 - LinkedIn: https://www.linkedin.com/in/ryanjasperkoleong/ - SF Fold Dataset: https://huggingface.co/datasets/zeroshotdata/sf_fold - Resume (US PDF): https://ryan-leong-portfolio.vercel.app/ryan_leong_robotics_resume_us.pdf - Target Roles: Robotics Software Engineer, Robotics Engineer, Embodied AI Research Engineer, Robot Learning Research Engineer, Robotic Manipulation & Perception Engineer - Target Locations: San Francisco Bay Area, CA · United States (H-1B1 Visa Eligible — No Lottery) · Singapore ## Hiring & Technical FAQ ### What robotics roles and start timelines is Ryan Leong targeting? Ryan Leong is targeting Robotics Software Engineer, Robotics Engineer, and Research Engineer roles in Embodied AI, Robot Learning, Robotic Manipulation, Perception/SLAM, and Autonomy. He is pursuing his M.Sc. in Computer Engineering (Machine Intelligence Applications) at the National University of Singapore (graduating July 2027) after completing his B.Eng. (First Class Honours, 4.75/5.0 GPA) in June 2026, and is available for full-time engineering roles and research collaborations. ### Is Ryan Leong authorized to work in the United States (San Francisco Bay Area / US robotics hubs)? Yes. As a Singapore Citizen, Ryan Leong is eligible for the US H-1B1 treaty visa under the US–Singapore Free Trade Agreement. Unlike the standard H-1B lottery, H-1B1 has a dedicated annual quota that is historically undersubscribed and available year-round, offering fast-track sponsorship comparable to TN and E-3 visas. He previously worked full-time on-site in San Francisco, CA at ZeroshotData and studied at Stanford University in Stanford, CA, and is open to roles across the San Francisco Bay Area, US robotics hubs, and Singapore. ### What sim-to-real, robot learning, and embodied AI experience does he have? As a Research Assistant at NUS (supervised by Prof Xingyu Liu and Yutong Li), he builds Genesis World simulation scenes, demonstration data pipelines, and PyTorch reinforcement learning training/evaluation loops with tactile sensing for bimanual manipulation of deformable linear objects (cables and ropes). At DSO National Laboratories, he built a SayPlan/LookPlanGraph-inspired agentic robot task-planning harness integrating local LLM tool use, DDS middleware, hierarchical 3D scene graphs, embodiment simulators, and a reproducible benchmark across 40+ compact language models. ### What real-robot hardware, SLAM, and production data-flywheel systems has he shipped? At ZeroshotData in San Francisco, Ryan integrated stereo visual-inertial ORB-SLAM3 onto a UMI gripper using OAK-D cameras and Kalibr camera–IMU calibration, built Python processing pipelines (validation, ORB-SLAM3 execution, Rerun visualization, Mosaic sharding) for 100+ hours of robot-folding demonstrations in the public SF Fold dataset, deployed 20+ containerized GCP/Kubernetes/Terraform fleet services, automated calibration with a Piper 6-DoF arm, engineered a 1.5 m range 6-DoF electromagnetic tracking system (1 cm / 5° accuracy) with custom KiCad PCBs and STM32 firmware, and previously built a 6.5–9.0 ns Verilog FPGA 1PPS synthesizer at A*STAR. ## Detailed Engineering & Research Experience ### Research Assistant — National University of Singapore (Aug 2026 — Present, Singapore) - Developing simulation and robot-learning pipelines in Genesis World for bimanual manipulation of deformable linear objects (DLO — cables and ropes), supervised by Prof Xingyu Liu and Yutong Li. - Building PyTorch RL training and evaluation loops over Genesis World scenes, with tactile sensing in the policy observation stack. - Working the full sim-to-real path: scene and asset setup, physics simulation, demonstration data generation, and policy training. ### Robotics Software Engineer Intern — DSO National Laboratories (May 2026 — Oct 2026, Singapore) - Built an agentic robot task-planning harness inspired by SayPlan and LookPlanGraph, integrating local LLM tool use, DDS middleware, and hierarchical 3D scene graphs for spatial reasoning and closed-loop replanning. - Developed low-fidelity robot embodiment simulators and DDS adapters for external simulators, enabling hardware-independent testing, scenario replay, telemetry, and end-to-end autonomy validation. - Benchmarked 40+ compact language models for task success, tool-use reliability, inference latency, and resource usage, producing a reproducible evaluation pipeline for local and edge deployment. ### Robotics Software Engineer — ZeroshotData (Jan 2025 — Dec 2025, San Francisco, CA) - Built robotics infrastructure on GCP using Terraform and Kubernetes, deploying 20+ containerized services with CI/CD and FastAPI-based device registration, telemetry, monitoring, and fleet operations. - Integrated visual-inertial ORB-SLAM3 into a UMI gripper using OAK-D stereo cameras, Kalibr camera–IMU calibration, Allan variance analysis, and synchronized sensor acquisition. - Built Python applications for the end-to-end processing pipeline behind the SF Fold dataset across 100+ hours of robot-folding demonstrations, including video preprocessing, automated data validation, ORB-SLAM3 execution, review-video generation, Rerun visualizations, and Mosaic-based dataset sharding. - Automated robot and sensor calibration using a Piper 6-DoF arm and prototyped infrared tracking with Arducam cameras, hardware frame synchronization, and Orange Pi compute. - Engineered an electromagnetic full-body tracking system with a 1.5 m range, centimetre-level positional accuracy, and 5° rotational accuracy using custom PCBs, STM32 firmware, Helmholtz coils, and Onshape CAD. ### Research Engineering Intern — A*STAR National Metrology Centre (May 2024 — Aug 2024, Singapore) - Built a Python measurement platform using PyVISA, Pandas, and Dash on an Orange Pi, and designed a Verilog FPGA frequency synthesizer achieving 6.5–9.0 ns timing precision. ### Software Engineering Intern — HolyWally (Apr 2023 — Jun 2023, Singapore) - Built Python and SQL tools backed by PostgreSQL for an operational dashboard used by approximately 100 employees. ## Published Project Case Studies ### RnZ - URL: https://ryan-leong-portfolio.vercel.app/projects/rnz - Category: Web | Date: 2025-12-01 - Repository: https://github.com/ryryry-3302/RnZ - External Link: https://github.com/ryryry-3302/RnZ - Summary: A comprehensive 3D design tool for BTO renovation planning in Singapore. ### Introduction RnZ is a comprehensive 3D design tool specifically built for BTO (Build-To-Order) renovation planning in Singapore. It empowers homeowners to visualize their dream home with precision and ease. ### Demo Video Your browser does not support the video tag. ### Project Resources - [View Project PDF](/RnZ.pdf) - [GitHub Repository](https://github.com/ryryry-3302/RnZ) ### Features #### 3D Designer - **Real-time 3D rendering** with shadows and lighting - **2D Floorplan editor** for precise room layout - **Furniture placement system** with drag-and-drop functionality - **Extensive furniture library** with BTO-specific items - **Room-by-room design** with accurate measurements - **Export designs** for contractor consultations #### Furniture Placing System The designer now includes a comprehensive furniture placing system: 1. **Select Furniture**: Choose from the sidebar categories (Furniture, Doors, Windows, Sofas, Tables, Chairs, Storage, Lighting, Decor) 2. **Place in 3D**: Click on a furniture item to enter placement mode, then click in the 3D view to place it 3. **Edit Placed Items**: Click on placed furniture to open the context menu for: - Resize dimensions (width, height, depth) - Lock/unlock position - Delete items 4. **Visual Feedback**: Real-time indicators show placement status and item counts ### How to Use Furniture Placing 1. **Navigate to Designer**: Go to `/designer` page 2. **Select Furniture Tab**: Click on the "Furniture" tab in the sidebar 3. **Choose Category**: Select a furniture category from the filter buttons 4. **Place Item**: - Click on a furniture item in the sidebar - The system will switch to 3D view automatically - Click anywhere in the 3D view to place the furniture - The item will appear at the clicked location 5. **Edit Placed Items**: - Click on any placed furniture item to select it - A context menu will appear on the right side - Adjust dimensions, lock position, or delete the item ### Technical Implementation The furniture placing system integrates with Blueprint3D and includes: - **Raycasting**: Converts mouse clicks to 3D coordinates - **Item Management**: Tracks placed items and their properties - **Event Handling**: Manages placement, selection, and deletion events - **State Management**: Maintains placement state and visual feedback ### Technology Stack - **Framework**: Next.js 14 - **3D Engine**: Three.js & Blueprint3D - **Styling**: Tailwind CSS - **Icons**: Lucide React --- ### EMF Full Body Tracking System - URL: https://ryan-leong-portfolio.vercel.app/projects/emf-full-body-tracking - Category: Robotics | Date: 2025-11-20 - Summary: Developed a 6-DOF pose estimation system using electromagnetic field (EMF) technology with 3D coil antennas, achieving 1cm positional precision and 5-degree angular precision through custom hardware design and machine learning. ### Introduction As part of my internship, I developed a full-body tracking system using electromagnetic field (EMF) technology. This project involved end-to-end development from hardware design and assembly to data collection, model training, and system calibration, resulting in a high-precision 6-DOF pose estimation system. ### Project Overview The system uses electromagnetic field sensing with 3D coil antennas and receivers to track body position and orientation. I was responsible for the complete development cycle, from designing and building the hardware to collecting training data and developing machine learning models for pose prediction. ### System Architecture The full system combined a Helmholtz cage for controlled field generation, transmitter and receiver electronics, field-measurement tooling, and an end-to-end calibration and model-training pipeline for pose estimation. ### Helmholtz Cage Design & Build I designed the Helmholtz cage in OnShape, built the physical structure, and used it as the central field-generation environment for calibration, experimentation, and data collection. ### Transmitter Electronics For the transmitter, I built upon electrical engineering work by **William Zhang**, editing and extending his original circuit design to suit the requirements of this project. That included circuit changes, board-level iteration, and bring-up/debugging work during validation. ### Receiver Electronics I did **not** design the receiver from scratch. That part of the system was based on earlier EE work, and my contribution was to build on top of it through system integration, testing in the Helmholtz setup, and using it in the end-to-end calibration and tracking pipeline. ### Demo Videos ### Key Contributions - **Hardware Design & Assembly:** Designed the Helmholtz cage in OnShape and built the physical structure for generating controlled electromagnetic fields - **Circuit Iteration & Soldering:** Built on William Zhang's transmitter circuit work, edited the transmitter design for this project, and assembled/debugged the hardware during bring-up - **Data Collection:** Collected comprehensive training datasets by systematically varying positions and orientations within the calibrated field - **Machine Learning Model:** Trained models to predict 6-DOF poses from EMF sensor readings - **System Calibration:** Developed and performed calibration procedures to ensure accurate field generation and sensor readings - **Precision Achievement:** Achieved 1cm positional precision and 5-degree angular precision in pose estimation ### Technical Approach The system operates by generating controlled electromagnetic fields using a Helmholtz cage and measuring field strength and orientation using 3D coil antennas. The collected sensor data is processed through machine learning models to predict accurate 6-DOF poses (position and orientation) of tracked objects. Key technical components included: - Helmholtz cage design for uniform field generation - 3D coil antenna arrays for multi-axis field sensing - Receiver electronics for signal processing and field measurement - Data collection protocols for training dataset generation - Machine learning pipeline for pose prediction In practice, the development cycle also involved PCB bring-up, oscilloscope-based debugging, field validation using the fluxgate reader, and repeated calibration runs to make the final demos stable and repeatable. ### Results The system achieved high-precision tracking with: - **Positional Accuracy:** 1cm precision - **Angular Accuracy:** 5-degree precision - **6-DOF Tracking:** Full position and orientation estimation ### Impact This work contributed to advanced motion tracking capabilities, with applications in motion capture, virtual reality, and robotics. The end-to-end development process demonstrated skills in hardware design, embedded systems, data science, and machine learning. ### Acknowledgements & References This project was partly an attempt to recreate and learn from [Aura: Inside-out Electromagnetic Controller Tracking](https://ubicomplab.cs.washington.edu/pdfs/aura.pdf), a 6-DoF electromagnetic tracking system by Eric Whitmire, Farshid Salemi Parizi, and Shwetak Patel. I also want to acknowledge and thank [Eric Whitmire](https://www.ericwhitmire.com/) for his help during development and for the original research that inspired this project direction. For the Helmholtz cage construction and design intuition, I also used [this Helmholtz coil reference](https://notblackmagic.com/bitsnpieces/helmholtz-coil/), which gives practical guidance on coil spacing, radius, and field estimation. ### Note This project was completed as part of my internship, so I'm unable to share detailed technical implementation details, schematics, or source code. However, I'm happy to discuss the high-level approach, design decisions, and challenges encountered during development. --- ### MedBox AI - URL: https://ryan-leong-portfolio.vercel.app/projects/medbox-ai - Category: AI | Date: 2025-10-20 - Repository: https://github.com/slye20/CalHacksWinner - External Link: https://devpost.com/software/medbox-ai - Summary: An intelligent "black box" for medical and dental procedures that uses computer vision to automatically record, segment, and analyze every step of an operation. ### Introduction MedBox AI is an intelligent "black box" system designed for medical and dental procedures. Inspired by aviation black boxes, it provides a transparent, objective system to capture and analyze procedural data, enhancing accountability and supporting quality assurance in healthcare. ### Project Overview MedBox AI uses computer vision to automatically record, segment, and analyze procedure videos in real-time. It detects key surgical or dental steps, identifies tool usage, and flags deviations from standard protocols. The result is a secure, timestamped record that serves as a reliable reference for clinicians, insurers, and patients. ### Demo Video ### Key Features - **Automated Segmentation:** Uses computer vision to detect and segment key steps in medical procedures. - **Tool Detection:** Identifies specific surgical and dental tools used during operations. - **Deviation Flagging:** Automatically flags deviations from standard medical protocols. - **Secure Logging:** Creates a timestamped, immutable record for medico-legal documentation. - **Auditable Dashboard:** Provides a visual timeline of events for easy review by clinicians. ### How It Built It We integrated **OpenCV** computer vision models for step segmentation and tool detection with **Chroma** for vector storage and retrieval of procedural data. The frontend is built with **Next.js** and **Shadcn/UI**, providing a clean dashboard for reviewing annotated procedures. The backend manages real-time inference and report generation. ### Technology Stack - **Frontend:** Next.js, Shadcn/UI, Tailwind CSS - **Backend:** Python, Flask - **AI/CV:** OpenCV, Chroma (Vector DB) - **Video:** NextVideo ### Challenges & Learnings Obtaining clean, annotated datasets for specific surgical tools was a significant challenge. We also had to balance the complexity of medical workflows with the need for an intuitive user interface. We learned that effective medico-legal documentation requires not just AI accuracy, but absolute data integrity. --- ### Leasy - URL: https://ryan-leong-portfolio.vercel.app/projects/leasy - Category: Web | Date: 2025-09-15 - Repository: https://github.com/ryryry-3302/LeaseApp - External Link: https://github.com/ryryry-3302/LeaseApp - Summary: A Zillow-style lease takeover platform for students, interns, and exchange students looking for sublets in San Francisco. ### Introduction Leasy is a specialized lease takeover platform designed for the dynamic housing needs of students, interns, and exchange students in San Francisco. It simplifies the process of finding short-term sublets and lease takeovers in a competitive market. ### Project Overview Finding short-term housing in San Francisco is notoriously difficult. Leasy addresses this by providing a centralized platform specifically for lease takeovers, featuring a Zillow-like interface that makes browsing listings intuitive and efficient. ### Demo Video Your browser does not support the video tag. ### Key Features - **Interactive Map View:** Integrated Mapbox GL JS to provide a seamless, interactive map experience for exploring listings by location. - **Advanced Filtering:** Users can filter listings by price range, number of bedrooms, and availability dates to find their perfect match. - **Responsive Design:** Fully responsive interface that works flawlessly on both desktop and mobile devices. - **Detailed Listings:** Comprehensive listing pages featuring photo galleries, amenities, and lease terms. - **Mock Data:** Populated with 15+ realistic mock listings in popular neighborhoods like SOMA and the Mission to demonstrate functionality. ### Technology Stack - **Framework:** Next.js 14 (App Router) with TypeScript - **Maps:** Mapbox GL JS - **Styling:** Tailwind CSS - **Icons:** Lucide React --- ### ORB SLAM3 Implementation for Stereo Camera Setup - URL: https://ryan-leong-portfolio.vercel.app/projects/orb-slam3-stereo - Category: Robotics | Date: 2025-05-30 - Summary: Developed a custom implementation of ORB SLAM3 optimized for a stereo camera configuration, enabling real-time visual-inertial SLAM for robotics navigation applications. ### Introduction As part of my internship at ZeroshotData, I developed a custom implementation of ORB SLAM3 specifically optimized for our stereo camera setup. This project involved adapting the open-source ORB SLAM3 framework to work seamlessly with our multi-camera robotics system, enabling accurate real-time pose estimation and mapping for autonomous navigation. ### Project Overview This project focused on implementing and optimizing visual-inertial SLAM (Simultaneous Localization and Mapping) for robotics applications. The system processes stereo camera feeds and IMU data to provide real-time 6-DOF pose estimation, enabling robots to understand their position and orientation in 3D space while mapping their environment. ### SLAM Output ### Key Contributions - **Stereo Camera Integration:** Adapted ORB SLAM3 to work with our specific stereo camera configuration, handling calibration and synchronization between multiple camera feeds - **Sensor Fusion:** Integrated visual data from stereo cameras with inertial measurement unit (IMU) data for improved accuracy and robustness - **Real-time Performance:** Optimized the implementation to achieve real-time pose estimation suitable for robotics applications - **Trajectory Visualization:** Created visualization tools to display robot trajectories and sensor data in 3D space ### Technical Approach The implementation leveraged ORB SLAM3's robust feature detection and tracking capabilities while customizing the system for our stereo camera setup. Key adaptations included: - Custom camera calibration and rectification for stereo vision - Integration of IMU data for visual-inertial odometry - Optimization for real-time performance on embedded systems - Development of visualization tools for trajectory analysis ### Impact This work contributed to the robotics navigation capabilities of our system, enabling accurate localization and mapping for autonomous robotics applications. The implementation supported our broader efforts in robotics data collection and processing. ### Related Research & Systems This project was informed by recent demonstration-driven manipulation systems that combine wrist-mounted sensing, SLAM, and robot-deployable policy learning: - [Universal Manipulation Interface (UMI)](https://umi-gripper.github.io/) presents a handheld gripper data-collection and policy-learning framework for transferring in-the-wild human demonstrations into robot policies. - [Grabette](https://huggingface.co/blog/grabette) is a related open manipulation-data capture system inspired by UMI and built around robot-ready dataset generation. - This work supported the [SF Fold dataset](https://huggingface.co/datasets/zeroshotdata/sf_fold), a robot-folding dataset built by my company, where I contributed to the surrounding data-processing pipeline, ORB-SLAM3 execution workflow, and trajectory/review-video generation used to process demonstrations at scale. ### Note This project was completed as part of my internship, so I'm unable to share detailed technical implementation details or source code. However, I'm happy to discuss the high-level approach and challenges encountered during development. --- ### WatchDocks - URL: https://ryan-leong-portfolio.vercel.app/projects/watchdocks - Category: AI | Date: 2025-04-20 - Repository: https://github.com/ThatGirlJam/WatchDocks - External Link: https://devpost.com/software/watchdocks - Summary: A smart surveillance system that detects bike theft in real-time using computer vision, alerting users instantly when suspicious activity is observed. ### Introduction WatchDocks is a smart surveillance system designed to tackle the pervasive issue of bike theft. Born from the shared frustration of losing bikes on campus, it combines real-time computer vision with instant alerts to protect cyclists' property. ### Project Overview WatchDocks uses a camera system powered by computer vision to monitor bike racks. It detects suspicious behavior—such as lock tampering or loitering—and triggers a two-pronged response: a loud siren to deter the thief and an immediate notification to the bike owner's phone. ### Demo Video ### Key Features - **Real-time Theft Detection:** Uses YOLOv8 and computer vision to identify suspicious activities like lock cutting or tampering. - **Instant Alerts:** Sends immediate notifications to the owner's mobile device via a React Native app (or web dashboard). - **Active Deterrence:** Triggers a loud siren when theft is detected to scare off perpetrators. - **Context-Aware Analysis:** Leverages the Gemini API to analyze activity patterns and generate context-aware warnings. - **Secure Verification:** Integrates Auth0 for secure user authentication and role-based access control. ### How It Works 1. **Monitoring:** Cameras feed video to a Flask backend. 2. **Detection:** The system runs YOLOv8 models trained on RoboFlow to detect theft behaviors. 3. **Alerting:** If suspicious activity is confirmed, the system triggers a siren and sends an alert to the MongoDB database. 4. **Notification:** The React frontend polls for alerts and notifies the user. 5. **Verification:** Users can verify their identity to dismiss false alarms. ### Technology Stack - **Frontend:** React.js, Tailwind CSS - **Backend:** Flask (Python) - **AI/ML:** YOLOv8, RoboFlow, Gemini API - **Database:** MongoDB - **Authentication:** Auth0 ### Challenges & Learnings One of the main challenges was reducing false positives in motion detection—distinguishing between a student unlocking their bike and a thief tampering with a lock. We fine-tuned sensitivity thresholds and applied filtering logic to improve accuracy. We also learned the importance of low-latency processing for real-time security systems. --- ### Flair AI - URL: https://ryan-leong-portfolio.vercel.app/projects/flair-ai - Category: AI | Date: 2025-03-20 - Repository: https://github.com/ryryry-3302/flare.ai - Summary: AI writing assistant built for non-profit 826 Valencia. Winner (1st place, $1,500) at AI for Good Hackathon, San Francisco. ### Introduction Flair AI is an end-to-end AI writing assistant application built for non-profit **826 Valencia** to support ~400 students with essay writing. The application won **1st place ($1,500)** at the AI for Good Hackathon in San Francisco, demonstrating the impact of technology in education. ### Project Overview Built in a 3-person team (with Manoj Narender and Yuxuan Shan), Flair AI provides comprehensive writing support through automated grading, real-time feedback, and advanced grammar checks. The application integrates multiple AI services to deliver a seamless, multilingual writing assistance experience. ### Demo Video ### Key Features - **Automated Essay Grading:** Uses 826 Valencia's rubrics to automatically grade student essays, providing consistent and objective feedback - **Real-time AI Voice Agent:** Integrated Brainbase, Twilio, and Gemini to deliver real-time voice feedback in both English and Spanish - **Live Writing Metrics:** Tracks writing progress, word count, and other metrics in real-time - **Advanced Grammar Checks:** Provides comprehensive grammar and style suggestions - **Essay Text Extraction:** Automatically extracts and processes text from various input formats - **Multilingual Support:** Delivers feedback in both English and Spanish to support diverse student populations ### Technology Stack - **Frontend:** React, Tiptap (rich text editor), Tailwind CSS - **AI Services:** - Google Gemini (language processing and feedback generation) - Brainbase (AI voice agent platform) - Twilio (voice communication) - **Real-time Communication:** WebSocket integration for live feedback ### Impact Flair AI was designed specifically for 826 Valencia, a non-profit organization dedicated to supporting under-resourced students with their writing skills. The application helps scale personalized writing feedback to support approximately 400 students, making quality writing education more accessible. ### Recognition **Winner (1st Place, $1,500)** — AI for Good Hackathon, San Francisco, 2025 This recognition highlights the project's potential to make a meaningful impact in educational technology and support underserved student communities. --- ### RTX RTOS Car controlled with PS4 controller - URL: https://ryan-leong-portfolio.vercel.app/projects/rtx-rtos-car - Category: Embedded | Date: 2024-11-10 - Repository: https://github.com/ryryry-3302/CG2271 - Summary: A project to illustrate skills in embedded systems and real-time operating systems. The car is controlled using KEIL RTX RTOS using the FRDM KL25 Board and a ESP 32 [![](/rtos-car.jpg)](https://www.youtube.com/shorts/eeN1Xv1kED4) ### ESP32 - Used to receive bluetooth data from PS4 controller - Sends the data to the FRDM KL25Z Board using UART communication ### Threads and ISR on the FRDM KL25Z Board - tBrain: Decode the data from the Serial Port and perform the necessary action - tMotorControl: Control the Action of the Motors for both direction and speed control using bitwise operations - tLED: Control the LED’s based on movement status - tAudio: Controls music effects - Serial_ISR: Used to trigger the tBrain thread after updating the data from the Serial Port --- ### Data Collection server hosted on an OrangePi 3B+ - URL: https://ryan-leong-portfolio.vercel.app/projects/data-collection-server - Category: Embedded | Date: 2024-07-31 - Repository: https://github.com/ryryry-3302/cnt90-data-collection - Summary: I built a data collection server that collects data from various lab equipment using the National Instruments GPIB interface and performs various data analysis methods including calcultion of Modified Allan Deviation and Fast Fourier Transform. ## Data Collection Server ### Overview As part of my internship, I initiated and developed a data collection server hosted on an Orange Pi 3B. This server was designed to wirelessly control lab equipment, capture data, and perform data analysis. The project aimed to streamline the process of monitoring and analyzing experimental data by consolidating these functions into a single platform. ### Key Features - **GPIB Driver Integration**: Enabled control of various lab instruments using the NI-USB-HS GPIB dongle, facilitating seamless communication between the server and equipment. - **Data Collection**: Implemented features for capturing frequency ratio and time interval data, allowing for comprehensive experimental analysis. - **Advanced Data Analysis**: Included tools for generating Modified Allan Deviation and Fast Fourier Transform results, providing in-depth insights into the data. - **User Interface**: Developed a user-friendly interface with options for dark/light mode, real-time updates, and graphical data views. - **CSV Download**: Allowed users to download collected data in CSV format for further analysis and record-keeping. ### Technologies Used - **Hardware**: Orange Pi 3B, NI GPIB-USB-HS, Tang Nano 20k FPGA - **Software**: Linux, Python - **Libraries**: Pandas/Numpy, PyVisa, Dash - **Version Control**: Git/ Github ### Challenges Faced Developing this server involved overcoming several challenges: - **Hardware and Driver Issues**: The Orange Pi required specific open-source Linux GPIB drivers due to compatibility issues with the standard National Instruments setup. This process demanded significant trial and error and a deeper understanding of computer architecture. I have documented my solution here: [GPIB Driver Installation on Orange Pi](https://github.com/ryryry-3302/linux-gpib) - **Documentation and Community Support**: Limited documentation and community support for both the Orange Pi and the Tang Nano 20k made troubleshooting and integration more challenging. Gathering and interpreting scattered information from various datasheets was time-consuming. Despite these obstacles, the project was successful, thanks to the support and feedback from my supervisors. The experience significantly enhanced my skills in hardware-software integration and data analysis. Unfortunately, I am also unable to share the source code for this project as it is restricted under A*Star IP policy. However, I am happy to discuss the project in more detail and share my experience. ![](/orangepi-server.png) --- ### FPGA Frequency Synthesizer - URL: https://ryan-leong-portfolio.vercel.app/projects/fpga-synthesizer - Category: Hardware | Date: Wed Jul 31 2024 00:00:00 GMT+0000 (Coordinated Universal Time) - Repository: https://github.com/ryryry-3302/fpga_frequency_synthesizer - Summary: GOWIN Tang Nano 20K FPGA board that is capable of high precision time synchronisation of less than 10ns with external Caesium Atomic Clocks ## High-Precision Time Synchronization Using FPGA Devices Time synchronization is crucial across various fields and applications requiring precise timing to ensure accuracy, reliability, and coordination. In telecommunications, financial systems, power grids, and scientific research, precise timekeeping enables seamless data transfer, transaction accuracy, and synchronized operations. High-precision time synchronization is essential for maintaining system integrity, enhancing performance, and supporting innovations in these critical areas. ### Project Objective In this project, I explored the application and performance of FPGA devices in Pulse Per Second (PPS) synchronization. Under the supervision of Liaw Chin Yi, the goal was to develop a reliable and efficient solution for time synchronization, potentially reducing costs and expanding accessibility in high-precision applications. ### Work Plan and Tasks Performed #### May: Orientation, Literature Review, and Project Proposal In May, I focused on understanding the current state of the art and setting up my lab station. I reviewed several relevant research papers, including “Design Of A Cesium Atomic Clock 1PPS Signal Generation And Synchronization Module Based On FPGA,” which became the foundation for my project proposal. I familiarized myself with the GOWIN EDA and Tang Nano architecture, which were different from the FPGA board I had previously studied. My skills in Verilog and digital circuit planning were beneficial, and I also adjusted to new equipment like cesium atomic clocks, oscilloscopes, and CNT90 microwave counters. After drafting my project proposal, I discussed and resolved any doubts with my supervisors before moving on to module development. #### June: Development, Integration, and Testing June was intensive, involving iterative cycles of building modules, testing, reevaluating, and rebuilding. The challenges included debugging both software and hardware aspects, which required advanced troubleshooting methods and tools. I utilized simulation tools like edaplayground and found oscilloscopes particularly valuable for debugging. By the end of June, the design achieved synchronization precision of around 7-11 ns and demonstrated respectable frequency stability, as verified using tools like Stable32 for Allan deviation calculations. ### Conclusion This project aimed to harness FPGA devices for high-precision time synchronization, providing a cost-effective and accessible solution for critical applications. The experience significantly enhanced my skills in FPGA design and debugging, contributing to a deeper understanding of time synchronization technologies. ### Key Features & Achievements - **High Precision Synchronization**: Achieved 6.5–9.0 ns precision for 1PPS synchronization using Verilog and GOWIN IP cores. - **Hardware Implementation**: Engineered the solution on Tang Nano 20K FPGA architecture. - **Signal Processing**: Implemented 1PPS input synchronisation and output generation. - **Communication Interface**: Developed UART Communications for Phase modulation, Pulse width modulation, and System Reset. - **Validation**: Verified frequency stability using Allan deviation calculations with Stable32. ### Disclaimer As this project is done under A*Star IP policy, I am not able to disclose my project report or any other confidential information. However, I am able to share my experience and knowledge gained from this project. Feel free to reach out to me if you have any questions or would like to discuss further. --- ### QuickSheet - URL: https://ryan-leong-portfolio.vercel.app/projects/quicksheet - Category: Web | Date: 2024-06-01 - Repository: https://github.com/zackjh/quicksheet - Summary: A word processor designed with students and cheatsheets in mind. [![](https://raw.githubusercontent.com/zackjh/quicksheet/main/build/icons/png/icon.ico)](https://github.com/zackjh/quicksheet/releases/tag/v0.3.0) ### Introduction QuickSheet is a desktop application designed to address this need. It simplifies the process of creating effective cheat sheets, allowing students to focus on learning rather than formatting. With a user-friendly interface and powerful tools, QuickSheet helps students efficiently compile, organize, and format their study notes to maximize their exam preparation. ### Project Overview QuickSheet is a desktop application tailored for students who need to create cheat sheets efficiently and effectively. The application supports rich text editing, code blocks, mathematical equations, and more, all while ensuring that cheat sheets fit within the two-sided A4 format often required for exams. This project has been jointly developed by me and [Zachary Kang](https://github.com/zackjh) ![](/quicksheet.png) ### Key Features - **Rich Text Editing:** Format text with various styles, including alignment, color, and highlighting. - **Save As PDF:** Export cheat sheets as PDF files for easy sharing and printing. - **Import & Export to JSON:** Save and load documents in JSON format to preserve progress. - **Font Customization:** Adjust font types and sizes for better readability. - **Code Blocks:** Insert and format code snippets in various programming languages. - **Math Equations:** Add and format LaTeX mathematical equations. - **Images & Tables:** Include images and create tables for a well-organized cheat sheet. - **Page Formatting:** Adjust margins and layout to ensure content fits within the required format. - **Save & Autosave:** Save progress manually or automatically to prevent data loss. - **Dark Mode:** Option to reduce eye strain (pending implementation). ### Development Process #### Choice of Technology Stack - **Electron:** Enables cross-platform desktop application development using web technologies. - **React:** Provides a component-based architecture for a maintainable codebase. - **TypeScript:** Adds static type-checking for more robust and reliable code. - **Tiptap:** A modern rich-text editor for advanced text editing capabilities. - **Tailwind CSS:** Utility-first CSS framework for efficient styling. - **shadcn/ui:** Pre-built UI components that integrate seamlessly with Tailwind CSS. - **webdriverIO:** Testing framework for Electron applications. #### Software Engineering Principles - **DRY (Don’t Repeat Yourself):** Reusable React components and utility functions. - **KISS (Keep It Simple, Stupid):** Clean and straightforward UI and code. - **YAGNI (You Aren’t Gonna Need It):** Focus on core features before adding extras. - **Separation of Concerns:** Organize code by responsibility to reduce complexity. ### Notable Features - **Save As PDF:** Refactored to handle CSS styles from Tailwind CSS and Tiptap for accurate PDF output. - **Code Blocks:** Integrated syntax highlighting with lowlight and addressed version compatibility issues. - **Math Equations:** Added support for LaTeX using KaTeX, with careful management of package versions. - **Page Formatting:** Implemented static pagination to fit the two-sided A4 format, overcoming the complexities of dynamic pagination. ### Quality Assurance - **Code Review:** Regular peer reviews using GitHub Pull Requests to ensure code quality. - **User Testing:** Collected feedback to ensure intuitive UI/UX across different platforms. - **System Testing:** Extensive automated testing using webdriverIO to validate core features and edge cases. - **Manual Testing:** Validated file import/export and PDF generation functions. --- ### FPGA Street Fighter - URL: https://ryan-leong-portfolio.vercel.app/projects/fpga-streetfighter - Category: Hardware | Date: 2024-04-01 - Repository: https://github.com/ryryry-3302/FPGA_Street_Fighter - Summary: 2-player Audio Visual Street Fighter game developed using Xilinx Vivado for a Basys3 Development Board with OLED and Audio PMODs [![FPGA Street Fighter](https://raw.githubusercontent.com/ryryry-3302/FPGA_Street_Fighter/main/ee2026demogif.gif)](https://www.youtube.com/watch?v=3xtzSfwD2zg&feature=youtu.be) ## Description FPGA Street Fighter is a project developed to showcase advanced digital design skills and teamwork in creating a complex system. This project demonstrates the ability to build a complete game from scratch using Verilog and a Basys 3 FPGA board. ## Problems Addressed Showcasing advanced digital design skills and capabilities of FPGA boards. ## Technical Skills Displayed Built entirely in Verilog with various peripherals including an OLED Screen, Buzzer, and communication lines with another FPGA board. --- ### Remote Controlled Robot with Simultaneous Localisation and Mapping (SLAM) - URL: https://ryan-leong-portfolio.vercel.app/projects/remote-controlled-robot - Category: Robotics | Date: 2024-04-01 - Repository: https://github.com/ryryry-3302/CG2111A - Summary: Search-and-rescue robot with ROS, RPLIDAR mapping, four-direction motion control, and onboard sensing. ![Remote Controlled SLAM Robot](https://ryryry-3302.github.io/My-Portfolio/images/photo_6141190599601142092_y.jpg) ## Description Led a team in the design and development of a state-of-the-art remote-controlled search and rescue robot. ## Problems Addressed Addressing the need for advanced navigation and mapping capabilities in search and rescue missions, enhancing efficiency and safety. ## Technical Skills Displayed Built using C++, Arduino on Raspbian OS, ROS (Robot Operating System), and RPLIDAR. The robot includes functionalities like 4 Directional Movement, Custom Display Text on LCD, Color Identification, and Mapping using Lidar and RViz. --- ### Video Editing Script - URL: https://ryan-leong-portfolio.vercel.app/projects/video-editing-script - Category: Automation | Date: 2023-08-01 - Repository: https://github.com/ryryry-3302/Video-Intro-Outro-Script - Summary: Designed to help my gf automatically insert template intros and outros with labels [![](https://ryryry-3302.github.io/My-Portfolio/images/python-file_8422275.png)](https://github.com/ryryry-3302/Video-Intro-Outro-Script/tree/main) ## Description Developed a Python script to automate the tedious process of adding intros and outros to videos, streamlining video production workflows and saving significant time for content creators. ## Problems Addressed Addressing the need for efficient video production workflows for content creators and video editors. ## Technical Skills Displayed This project showcased skills in: - Python programming - Utilizing the MoviePy library for video editing - Automation of repetitive tasks --- ### RyNance - URL: https://ryan-leong-portfolio.vercel.app/projects/rynance - Category: Fintech | Date: 2022-03-01 - Repository: https://github.com/ryryry-3302/RyNance - Summary: A web-based application designed to improve financial literacy among Singaporean youth. [![](https://user-images.githubusercontent.com/80184478/161930347-8b24c149-05d0-46ba-9e69-def539e6881a.png)](https://www.youtube.com/watch?v=oRNyVDiBEtg&t=33s) ### Introduction RyNance is a responsive web-based application designed to improve financial literacy among Singaporean youth. It offers tools like a Retirement Calculator, Budget Planner, Undergraduate Salary Comparison tool, and a wiki page for additional resources. ### Tech Stack Built using Flask, Chart.js, HTML, CSS, Python, and SQLite BootStrap5. ### Features - **User Authentication**: Implemented user authentication to ensure data privacy and security. ![Auth image](https://user-images.githubusercontent.com/80184478/161922643-6317a9a8-c511-4533-842f-e77df1bd6a6a.png) - **Retirement Calculator**: A tool that calculates the amount of savings needed for retirement based on the [Trinity Study](https://en.wikipedia.org/wiki/Trinity_study). ![Retirement Calculator](https://user-images.githubusercontent.com/80184478/161925384-d65db675-9bf6-4788-b78e-583fc2e1a8a3.gif) - **Budget Planner**: A tool that helps users plan their monthly budget based on their income and expenses using Chart.js. ![Budget Planner](https://user-images.githubusercontent.com/80184478/161924929-c0e418ed-c4c7-405c-b5c1-2ab9ecfed0af.gif) - **Learn**: A wiki page that provides resources and information on financial literacy. ![Learn](https://user-images.githubusercontent.com/80184478/161925698-9c81da16-f406-44b7-bd08-89f2fb88c6c9.gif) - ** Compare**: A tool that compares the average salary of different undergraduate courses in Singapore using singstat api. ![Compare](https://user-images.githubusercontent.com/80184478/161926536-29e589e3-6acd-4352-9f9b-4cf170975b6f.gif) --- ### Electric Vehicle Project - URL: https://ryan-leong-portfolio.vercel.app/projects/sutd-vehicle-project - Category: Hardware | Date: 2018-01-01 - Summary: Designing an electric vehicle for the SST-SUTD Big Discovery Camp ![](https://ryryry-3302.github.io/My-Portfolio/images/sutd.gif) ## Description Led a team of 8 to design and build an electric vehicle from scratch, contributing to the advancement of sustainable transportation solutions. This project, part of the SST-SUTD Big Discovery Camp Program, addresses the growing need for eco-friendly alternatives in the automotive industry. ## Problems Addressed Addressing the need for eco-friendly alternatives in the automotive industry. ## Technical Skills Displayed - AutoCAD for chassis design - Electronics assembly and integration - Mechanical engineering principles - Collaborative project management - Prototyping and testing --- ### Arduino-Based Grey Water Recycling Project - URL: https://ryan-leong-portfolio.vercel.app/projects/grey-water-recycling - Category: Hardware | Date: 2017-08-01 - Summary: Using arduino to create a grey water recycling system that can be used to flush toilets ![](https://ryryry-3302.github.io/My-Portfolio/images/Screenshot%20from%202024-05-28%2022-00-57.png) ## Description Part of a team of 3 to tackle the pressing issue of water conservation in urban households. Our innovative grey water recycling system, designed for HDB flats, intelligently repurposes water from showers and sinks for non-potable uses, significantly reducing overall household water consumption. Our team won first place at the Chips@School competition earning $1000 and a student internship at Infineon technologies ## Problems Addressed This project supports sustainable living and addresses the critical need for efficient water management in densely populated areas. ## Technical Skills Displayed This project showcased expertise in Arduino programming, circuit design, and soldering. We integrated various sensors to monitor water levels accurately, ensuring optimal performance and reliability of the recycling system. ## Schematic ![](https://ryryry-3302.github.io/My-Portfolio/images/Screenshot%20from%202024-05-28%2021-52-19.png) ---