I am working on a project to create a system where an AI model has control of the Lowrider 3 cnc and using cameras and chat to gcode can create the gcode for an object that the user ask for. This is early stages and I am working on what needs to be in the system below is a list of the features that i play on building. I have already successfully gotten GPT 04 from OpenAI to control the cnc machine it is able to home the axis, if in the chat you ask for a 10mm by 10mm square it can create the gcode and cut the square. I am using Windsurf AI on a Linux machine connected to the skr-pro board eventually this will be replaced with a raspberry pi.
here is the list of items i will be working on
Ai driven cnc machine
AI-Driven CNC Machine Features & Roadmap
This document outlines the capabilities and workflow for our AI-assisted CNC system, detailing hardware and software components, feature roadmap, and user interactions.
Table of Contents
1. Input Interfaces
-
Enable image/SVG upload → AI-generated G-code.
-
Enable natural-language chat/CLI prompts → AI-generated G-code.
-
(Optional) Push-to-talk voice commands → generate/send G-code.
2. Vision
-
Dual-camera setup for overhead (XY) and side (Z) views.
-
Calibrate cameras into machining coordinate frame.
-
Real-time marker detection for drift and alignment.
3. Calibration & Setup
-
Automatic bed/spoilboard leveling routines via probe.
-
Squareness and axis-orthogonality checks.
-
Camera calibration scripts (chessboard/ArUco).
-
Measure table dimensions using vision and coordinate probing to establish workspace limits.
-
Map surface topography by probing a grid of points (bit + camera) to detect dips/high spots.
-
Generate dynamic height map for real-time Z-offset compensation in G-code based on surface variations.
4. Adaptive Control
-
Automatically adjust work offsets based on vision feedback.
-
Dynamically tweak feed/speed parameters via AI suggestions.
-
Spindle speed control (set/query RPM via M3/M4/M5).
-
Auto-probe and set Z-height to material surface.
5. Point-and-Click Jogging
-
User clicks/taps on camera view → machine moves to that XY location.
-
Support interactive jog controls in UI.
6. Verification & Simulation
-
Execute a first-pass dry-run at clearance height above material.
-
Render 2D/3D preview of AI-generated G-code in the UI.
-
Estimate total cut time and material removal.
-
Sanity checks before each rapid move and tool change.
7. Safety & Workflow
-
Spindle/router interlock: AI requests user confirmation before M3/M4.
-
Detect foreign objects in cut path: pause job, raise router, prompt user to clear path.
-
Detect user proximity to cutting area: pause job to avoid injury.
-
Manual tool change assistance: AI prompts user, then resumes.
-
Router power control: AI can power off/on router for safe shutdowns and starts.
8. Error Handling & Resilience
-
Uninterruptible Power Supply (UPS) support for the Pi and CNC controller to handle power outages.
-
Checkpointing of G-code execution state (current line, position, offsets).
-
Automatic resume from last checkpoint after restart or emergency stop.
-
Offline operation with local LLM fallback when internet is unavailable.
-
Queued and cached AI prompts/responses; retry on connectivity restore.
-
Manual-run mode: full G-code playback without AI assistance.
9. Interactive Rewind & Correction
-
Chat-driven rewind: revert to a previous checkpoint, raise router, reposition, adjust G-code, then resume.
-
Vision-triggered pause & rewind on detected mistakes.
-
Visualize executed and pending toolpaths with checkpoint overlays for review.
10. Object-to-G-code & Nesting
-
Accept 3D model input (STL, OBJ) → AI prompts for sheet dimensions and thickness.
-
Automatically flatten models into 2D part outlines and nest onto sheet.
-
Collaborative layout refinement: user can chat/annotate the visualization to adjust nesting.
-
Visualize nested layout in the UI (SVG/WebGL preview).
-
Generate optimized G-code with nesting order and toolpath sequencing.
11. Logging, Analytics & Notifications
-
Continuously log machine state (positions, spindle load, corrections).
-
Post-job analytics: feed/speed efficiency, correction frequency, error rates.
-
Remote notifications (email/SMS/push) on faults or job completion.
12. Advanced Monitoring
-
Tool-wear monitoring: image analysis and usage metrics to predict bit life.
-
Environmental sensors (dust, temperature, humidity) for quality and safety.
-
Predictive maintenance: vibration/spindle load analysis.
13. Access Control
-
User roles and authentication.
-
Audit logs of commands and AI interactions.
-
Permission-based feature access.
14. Model Context Protocol (MCP) Integration
-
SketchUp MCP Integration:
-
SketchUpMCP extension (.rbz) + Python MCP server enables AI to inspect scenes, manipulate components, apply materials, and export.
-
Repo: GitHub - mhyrr/sketchup-mcp: Sketchup Model Context Protocol | PyPI: sketchup-mcp
-
Autodesk 360 MCP (via Forge APIs):
-
Scaffold a custom add-in using Autodesk Forge SDK (Model Derivative, Design Automation, Data Management).
-
Add-in exposes a local MCP TCP endpoint; Forge APIs provide model context and accept command callbacks.