Cov txheej txheem:

Txhua Tus Neeg Xav Tau Automation Nrog Zaub Loj!: 16 Cov Kauj Ruam
Txhua Tus Neeg Xav Tau Automation Nrog Zaub Loj!: 16 Cov Kauj Ruam

Video: Txhua Tus Neeg Xav Tau Automation Nrog Zaub Loj!: 16 Cov Kauj Ruam

Video: Txhua Tus Neeg Xav Tau Automation Nrog Zaub Loj!: 16 Cov Kauj Ruam
Video: Maiv Thoj - Nco Txhua Tus Tau Hlub - Mv 2023 -(18+) 2024, Lub Xya hli ntuj
Anonim
Image
Image

Yog lawm, lwm qhov vis dis aus hais txog DISPLAYS, ib qho kuv nyiam heev! Koj puas paub vim li cas?

Vim tias nrog nws, nws muaj peev xwm txhim kho tus neeg siv interface.

Cov neeg siv khoom siv xav tau qhov pom tau zoo. Yog li kuv coj tuaj rau koj, piv txwv nrog 7 nti zaub, nrog lub peev xwm kov thiab Raspberry Pi nrog QT Creator (tsev qiv ntawv duab).

Kauj Ruam 1: Txhua tus Neeg Xav Tau Automation Nrog Zaub Loj

Cov peev txheej siv
Cov peev txheej siv

Hauv kab ntawv no, Kuv yuav nthuav qhia QT Tsim Kev Tsim Kho Kom Zoo, siv cov khoom siv tshiab thiab piv txwv ntawm kev ua kom lub zog ua haujlwm, siv PWM tawm ntawm Raspberry Pi. Peb tseem yuav siv 4-relay module hauv peb qhov kev siv tshuab.

Kauj Ruam 2: Cov Khoom Siv

· Raspberry Pi 3 qauv B+

· 2x Servos Towerpro MG996R

· 4-relay module

· 2x teeb

· Extension Qhov (Socket)

· Fonte 5 V.

· Arduino Power Adapter

· Cov neeg dhia

· Protoboard

· Zaub 7inch HDMI LCD 7 '' (Kov Screen)

· Ntxuam

Kauj Ruam 3: Pinout Raspberry Pi 3 Qauv B

Pinout Raspberry Pi 3 Qauv B
Pinout Raspberry Pi 3 Qauv B

Kauj ruam 4: Mounting

Mounting
Mounting
Mounting
Mounting

Kauj Ruam 5: Raspberry Pi 3 Qauv B PMW Pins

Raspberry Pi 3 Qauv B PMW Pins
Raspberry Pi 3 Qauv B PMW Pins
Raspberry Pi 3 Qauv B PMW Pins
Raspberry Pi 3 Qauv B PMW Pins

PWM pins hauv Raspberry Pi 3 tau qhia hauv daim duab saum toj no. Peb siv cov channel 0 rau ib qho servo-motor thiab channel 1 rau lwm yam. Peb yuav tsum tau them nyiaj mloog hauv GPIO siv los ntawm Wiring Pi (duab ntawm sab xis), yog li peb yuav siv GPIO1 thiab GPIO24 thiab tsis yog BCM pins (Broadcom SOC channel) GPIO10 e GPIO19.

www.electronicwings.com/raspberry-pi/raspberry-pi-pwm-generation-using-python-and-c

Kauj Ruam 6: QT Project Interface

QT Project Interface
QT Project Interface
QT Project Interface
QT Project Interface

PS. Lub laub khawm tivthaiv tsis txhawb nqa giff, yog li peb yuav siv daim ntawv lo (lblFan) los tsim cov giff. Tsis tas li, peb yuav siv lub khawm pom tsis tau hu ua imgFan, tso rau ntawm daim ntawv lo, txoj hauv kev no peb tuaj yeem ua haujlwm nrog nyem qhov xwm txheej.

Muaj lwm txoj hauv kev los ua kom nws ua haujlwm, tsim chav kawm uas nyem tau, tab sis peb tau xaiv kom yooj yim cov cai, yog li peb yuav tsis siv txoj hauv kev no.

Kauj Ruam 7: Txoj Cai: Tshaj Tawm thiab Hloov Pauv

Code: Kev tshaj tawm thiab Kev Hloov
Code: Kev tshaj tawm thiab Kev Hloov

Kauj Ruam 8: Tus Kws Tsim Kho thiab Tus Ua Haujlwm

Constructor thiab Destructor
Constructor thiab Destructor

Kauj ruam 9: Code: SetPins

Code: SetPins
Code: SetPins

Kauj ruam 10: Code: UpdateStatus

Code: UpdateStatus
Code: UpdateStatus

Kauj Ruam 11: Cov Txheej Txheem Txheej Txheem

Txheej xwm txheej Slider
Txheej xwm txheej Slider

Kauj Ruam 12: Teeb Teeb Lub Teeb

Teeb Teeb Txheej Txheem
Teeb Teeb Txheej Txheem

Kauj ruam 13: ChangeImageButton

ChangeImageButton
ChangeImageButton

Kauj Ruam 14: Khawm Khawm Txheej Txheem

Khawm Khawm Txheej Txheem
Khawm Khawm Txheej Txheem

Kauj Ruam 15: Txheeb Xyuas Qhov Xwm Txheej uas Qhia lossis Hide Tus nas Cursor

Txheeb xyuas qhov xwm txheej uas qhia lossis zais tus nas Cursor
Txheeb xyuas qhov xwm txheej uas qhia lossis zais tus nas Cursor

Kauj ruam 16: Rub tawm Cov Ntaub Ntawv

PDF

INO

Pom zoo: