How thomabir/nicecontrol works
Main Components
a. Hardware Components:
• Piezo Controllers
• MCL NanoDrive
• PI E727 Controller
• PI E754 Controller
• nF EBD Controller
• Analog Discovery 2 (debugging interface)
• Teensy microcontroller (for ADC activation)
b. Software Components:
• Main Control Interface (NICEcontrol.cpp)
• Control Systems
• MIMO Control Loop
• SISO Control Loop
• Null Lockin System
• Data Management
• Circular Buffers
• Scrolling Buffers
• Sensor Data Handling
• Filter Systems
• FIR Filter
• Control Loop Characterization
Specific Elements
a. Data Flow Indicators:
• Sensor data flow from hardware through buffers to UI
• Control signals from UI through controllers to hardware
• Feedback loops in the control systems
b. Component Relationships:
• Control signals (e.g., red)
• Sensor data (e.g., blue)
• User interface elements (e.g., green)
• Hardware components (e.g., gray)
Implementation Details
[User Interface Layer]
• ImGui/ImPlot visualization
• Control parameters input
• Real-time monitoring
[Control Layer]
• MIMO/SISO Control Loops
• PI Controllers
• Null Detection System
• FIR Filters
[Data Management Layer]
• Circular Buffers
• Scrolling Buffers
• Sensor Data Processing
[Hardware Interface Layer]
• MCL NanoDrive Interface
• PI Controller Interfaces
• nF EBD Controller Interface
• Teensy Interface
Technical Details to Note
• External dependencies (FFTW3, Boost, IIR1)
• Relationship between the control loops and hardware
• Where the FIR filters are applied in the signal chain