基于EC5-1719CLDNA(嵌入之星)的單目視覺反饋運動平衡系統研究
—— ——2008年英特爾杯大學生電子設計競賽嵌入式系統專題邀請賽作品簡介
視覺反饋平面坐標運動平衡系統是一個典型的多變量、非線性控制系統,是桿球系統的二維擴展。其控制對象是具有2個相互垂直的旋轉軸的板,目的是讓一個自由滾動的球能夠平衡在板上的特定位置,或使其沿著特定軌跡運動。本作品的硬件設計包括電源的放置,數字攝像頭的架設,基于1394總線的圖像采集卡,基于PCI總線的交流伺服電機控制卡以及物理模型與“嵌入之星”工業控制板間的電路連接,機械部分的三維設計及加工等;軟件設計主要是開發了系統控制軟件,包括圖像實時處理及目標識別,電機控制驅動設計,以及友好的用戶接口界面等。模型算法分析主要建立了小球在平板上的動力學模型,以及基于灰度二值化的小球質心計算模型,同時利用經典PID控制算法對小球位置進行控制,并在此基礎上探索了PID控制算法與模糊控制算法相結合的控制模式,通過MATLAB仿真工具SIMULINK的仿真,表現出了較好的動態和靜態特性。本系統的工作過程為:數字攝像頭將采集到的圖像存入計算機內存,通過程序讀取內存中小球與平板的圖像數據,分析獲取小球位置偏差和偏差變化率,并傳送給PID控制器,驅動電機使小球在平板上滾動。本作品在理論仿真的基礎上,借助“嵌入之星”工業控制板強大的數據處理能力對實際物理系統進行了調試開發,并且實現了小球的定點控制、直線運動以及走矩形軌跡等。
The visual feedback plate coordinate movement balance system is a typical multi-variable, non-linear control system. It is the two-dimensional expansion of the ball and beam system. Its control object is a plate with two mutually perpendicular shafts, and its purpose is to balance a freely rolling ball in a specific location or to make it move following the specific trajectory on the plate. The hardware designs include power placement, digital video camera installation, image acquisition card based on the 1394 bus, AC servo motor control cards based on the PCI bus, the circuit board connection between physical model and Embedding Star control board, and the 3-D mechanical design and processing. The software developments include real-time image processing and target identification, motor control drive program, and user-friendly interface. Model algorithm analysis mainly establishes a dynamic model of the small ball moving on the plate, and a ball of heart model(小球質心計算模型) based on the value of the gray. The classic PID algorithm is used to control the position of ball, and on this basis the combining control model of PID control algorithm with fuzzy control algorithm is explored. By using the MATLAB software simulation tool SIMULINK, it shows a good dynamic and static characteristic. The system processes as follows: The images collected by a digital video camera are stored into computer's memory; The program reads the data of the ball and the plate images, and analyzes the ball position deviation and deviations rate; Then the information is sent to PID controller, it drive the motors to make the ball rolling on the plate. Finally, the actual physical system based on the simulation in theory by using the powerful data processing capability of the industrial control board (Embedded Star) is debugged and developed, and it achieves the stability control of the ball.
linux操作系統文章專題:linux操作系統詳解(linux不再難懂)
伺服電機相關文章:伺服電機工作原理
pid控制器相關文章:pid控制器原理
評論