Kompleks pengeboran semi-otomatis untuk papan sirkuit pada Arduino dan Python

KDPV


Kata Pengantar


, «» , , . . , , . .



, , . , , - . , .


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



. . , , , .



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


gambar


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


gambar


, . .. , () () . .



1

schema_2


2

schema_2


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


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


gambar


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.


gambar




Direncanakan untuk menambahkan modul pengenalan titik otomatis untuk pengeboran dalam aplikasi klien. Dalam hal ini, setelah membandingkan koordinat, aplikasi akan secara otomatis menemukan titik pada gambar, pengguna hanya perlu menghapus yang salah dan menambahkan yang tidak dikenal.


Tautan Repositori

Source: https://habr.com/ru/post/id395297/


All Articles