用于arduino和python的电路板半自动钻孔系统

KDPV


前言


, «» , , . . , , . .



, , . , , - . , .


, ( ), Y . , Arduino. Arduino , .



. . , , , .



Y – . 1 , 1 . , 48 , Z 0,02 . , - . , , , .. , ( ; , ). Y, , DIN-. .


图片


Z . – . .. , , , . , , , , . , , . .


图片


, . .. , () () . .



1

schema_2


2

schema_2


Arduino USB . 5 Arduino .
75 (19 ; 3,9 ).


(D2, D3) . D1 Arduino . . R9 … R11. 3 , D3, .


图片


1 6 24 . VT1 , .


SB2 … SB7 , / 32 . Y . , SB1 5, .



Arduino, Python GNU/Linux.



. : <method>: [arg1 [arg2 [...]]]\n. . 0 1 (False True).


:


connect:2 . res: 1. , COM . , ready: 1. |res: 1 + ready: 1 ;res: 1 + error: 1
touch:.res: 1 ; res: 0
move: x yres: 1 ; res: 0 ( ; )
drill: x yres: 1 ; res: 0 ( move; )
coords:res: x y

:


error: 0
error: 1


, , . :


  • connect , ( )
  • X Y
  • error: 1, , ,
  • , , 0 (False)


, OpenCV, , . , , , , . :


  • ( )
  • 2
  • . , . , .

pyserial. (/dev/ttyACM*). connect. res: 1, .


GUI PyQt5.


图片




计划添加一个自动点识别模块,以便在客户端应用程序中进行钻取。在这种情况下,在比较坐标之后,应用程序将自动在图形中找到点,用户只需删除错误的点并添加无法识别的点。


资料库链接

Source: https://habr.com/ru/post/zh-CN395297/


All Articles