Cov txheej txheem:
- Kauj Ruam 1: Hloov Cov Zaub
- Kauj Ruam 2: Vim Li Cas Touchscreen Xav Tau Kev Sib Hloov
- Kauj Ruam 3: Tig lub Touchscreen
- Kauj ruam 4: Nws yog
Video: Tig Raspberry Pi Zaub thiab Touchscreen: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Nov yog qhov qhia qhia yooj yim los qhia koj yuav ua li cas tig cov zaub thiab kov lub vijtsam nkag rau ib qho Raspberry Pi uas siv Buster Raspbian kev ua haujlwm, tab sis kuv tau siv txoj hauv kev no txij li Jessie. Cov duab siv hauv qhov no yog los ntawm Raspberry Pi 3 B+ khiav Raspbian Buster nrog 3.5 TFT LCD touchscreen.
Lub touchscreen siv yog qhov zoo heev, yog tias koj xav tau ib qho koj tuaj yeem pom nws ntawm qhov txuas no los ntawm amazon:
www.amazon.com/Raspberry-320x480-Monitor-Raspbian-RetroPie/dp/B07N38B86S/ref=asc_df_B07N38B86S/? = c & hvdvcmdl = & hvlocint = & hvlocphy = 9027898 & hvtargid = pla-667157280173 & psc = 1
Kauj Ruam 1: Hloov Cov Zaub
Raspberry pi zaub yog qhov yooj yim heev rau tig vim tias muaj qhov kev xaiv koj tuaj yeem tso rau /boot/config.txt uas tso cai rau koj tig lub vijtsam nrog ib kab.
Txhawm rau tig yooj yim qhib koj lub davhlau ya nyob twg (ctrl + alt + t) thiab tom qab ntawd ntaus "sudo nano /boot/config.txt"
Mus rau hauv qab ntawm cov ntawv thiab ntaus yam uas koj xav tau tig koj lub vijtsam raws li koj xav tau:
# Kev taw qhia tsis raug
display_rotate = 0
# Tig 90 ° Clockwise
display_rotate = 3
# Tig 180 °
display_rotate = 2
# Tig 270 ° Clockwise
display_rotate = 1
Kauj Ruam 2: Vim Li Cas Touchscreen Xav Tau Kev Sib Hloov
Lub vijtsam kov me ntsis nyuab dua, nws tso siab rau cov lej kom coj cov tswv yim thiab qhia lawv mus rau txoj haujlwm tshiab. Qhov no tau ua tiav nrog 3 qhov kev hloov pauv hauv qhov sib piv uas muaj ntau heev hauv cov neeg hlau thiab qhov chaw ntawm lub cev los piav qhia qhov txav ntawm qhov khoom hauv qhov chaw 3D. Koj yuav xav tias vim li cas kuv tus 2D cursor xav tau 3D matrix? Tab sis koj tus cursor yeej muaj qhov thib peb qhov uas tsis siv. Saib cov lej hauv qab no:
Los ntawm lub neej ntawd lub matrix tau teeb tsa thiab cim tus lej, lub ntsiab lus ntawm ib-rau-ib daim duab qhia chaw: (Cov dots yog qhov chaw tso los pab kab khoom, xav tias lawv tsis nyob ntawd, Cov ntaub ntawv tshem tawm qhov chaw)
……| 1 0 0 |
Ib = | 0 1 0 |
……| 0 0 1 |
Thaum qhov sib piv no tau sib tw los ntawm cov ntsiab lus vector muab los ntawm koj lub vijtsam kov qhov no yog qhov tshwm sim:
| 1 0 0 |….| 300 |…..| 300 |
| 0 1 0 | * | 200 | = | 200 |
| 0 0 1 |…….| 1 |……….| 1 |
Raws li koj pom saum toj no, tus lej cim tus kheej tsis cuam tshuam rau cov zis. Tam sim no lub hom phiaj ntawm cov lus qhia no tsis yog qhia koj cov lej sib npaug, tab sis yog tias koj txaus siab muaj ntau yam kev qhia online. Kuv yuav qhia tus lej lej ntawm qhov no tsuas yog koj tuaj yeem pom cov pov thawj ntawm yuav ua li cas thiab vim li cas qhov no tshwm sim.
Yog tias peb xav tau tig lub touschscreen 90 ° (clockwise) ces peb yuav siv tus lej no:
| 0 -1 1 |…| 300 |….|-200 |
| 1 0 0 | * | 200 | = | 300 |
| 0 0 1 |……..| 1 |………| 1 |
Yog li koj pom tus lej x thiab y tam sim no tau hloov pauv tab sis tus nqi x tshiab kuj tsis zoo. Nws nyuaj me ntsis kom pom kev, yog li saib kuv qhov piv txwv hauv cov duab. Ib txoj kab yog taug los ntawm nruab nrab mus rau sab xis, tam sim no thaum nws tau tig 90 ° (raws lub moos), koj pom kab ntawv taug mus los ntawm nruab nrab -> sab xis (+x) mus rau qhov nruab nrab -> nqis (-y) thiab qhov no yog vim li cas input vector xav tau hloov pauv xws li. Tus so ntawm kev sib hloov ua ntu zus tau teev tseg hauv cov kauj ruam tom ntej tab sis tam sim no koj paub me ntsis ntxiv txog dab tsi tshwm sim!
Kauj Ruam 3: Tig lub Touchscreen
Mus rau koj lub davhlau ya nyob twg dua thiab ntaus hauv "cd /usr/share/X11/xorg.conf.d/", yog tias koj lub vijtsam kov yam tsawg kawg pom qhov kov ces cov ntawv teeb tsa yuav tsum nyob ntawm no.
Ntaus "ls" txhawm rau sau cov ntaub ntawv tam sim no, koj cov ntaub ntawv ntsuas yuav tsum nyob ntawd, yog tias koj tsis paub qhov twg yog koj li qhib txhua tus (Siv "nano your_file_name") thiab nrhiav ib qho uas muaj ntu uas muaj "Tus cim … touchscreen catchall ". Feem ntau nws yuav yog ib qho uas muaj "evdev" lossis "libinput" hauv lub npe. Thaum koj pom nws ua "sudo nano your_file_name" kom tau txais kev nkag nkag thiab kho cov ntaub ntawv.
Mus rau koj ntu thiab ntxiv qhov raug "Kev Xaiv" hauv qab ntawm "Tshooj".
Txhua tus yog nrog lub zeem muag pom kev:
90 ° = Kev xaiv "TransformationMatrix" "0 -1 11 1 0 0 0 0 0 1"
180 ° = Kev xaiv "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"
270 ° = Kev xaiv "TransformationMatrix" "0 1 0 -1 0 1 0 0 0 1"
Kauj ruam 4: Nws yog
Vam tias qhov no yuav pab tau ntau pib Raspberry Pi cov neeg txhawb nqa! Kuv pom cov neeg tawm tsam nrog qhov teeb meem no tas li yog tias koj tshwm sim los hla ib tus neeg hauv lub rooj sab laj uas xav tau kev pab tsuas yog xa lawv qhov txuas rau ntawm no. Zoo siab tsim kuv cov phooj ywg!
Pom zoo:
Smart Motorcycle HUD Prototype (tig-los-tig Kev Taw Qhia thiab Ntau Ntxiv Ntxiv): 9 Cov Kauj Ruam
Smart Motorcycle HUD Prototype (tig-los-tig Kev Taw Qhia thiab Ntau Ntxiv Ntxiv): Nyob Zoo! Cov lus qhia no yog zaj dab neeg ntawm qhov kuv tau tsim thiab tsim HUD (Heads-Up Display) platform tsim los teeb tsa ntawm lub kaus mom hlau. Nws tau sau nyob rau hauv cov ntsiab lus ntawm "maps" kev sib tw. Hmoov tsis zoo, Kuv tsis tuaj yeem ua kom tiav
Loj hlob Zaub Zaub Ntxiv Hauv Qhov Chaw Tsawg Los Yog Loj hlob Zaub Zaub Hauv Chaw, (Ntau lossis Tsawg): 10 Kauj Ruam
Loj Hlob Ntau Cov Zaub Zaub Hauv Tsawg Chaw lossis … Loj hlob Zaub Zaub Hauv Chaw, (Ntau lossis Tsawg).: Qhov no yog kev tshaj lij tshaj lij rau Kev Loj Hlob Tshaj Ntiaj Teb, Kev Tsim Khoom Sib Tw, xa los ntawm Cov Lus Qhia. Kuv tsis tuaj yeem muaj kev zoo siab dua los tsim rau thaj chaw cog qoob loo thiab tshaj tawm kuv thawj Cov Lus Qhia. Yuav pib, kev sib tw nug peb kom
Chaw Zaub Zaub Zaub Qhia Tau Zoo- Airline High School Robotics: 8 Kauj Ruam
Space Lettuce Chamber Instructable- Airline High School Robotics: Nov yog Kev Qhia Ua los ntawm peb tus tub ntxhais kawm theem siab cuv npe hauv chav kawm neeg hlau. Peb yuav tsim chav rau cog cov zaub xas lav hauv qhov chaw rau Kev Loj Hlob Tshaj Ntiaj Teb Kev Sib Tw los ntawm NASA. Peb tab tom yuav qhia koj yuav tsim lub thawv li cas. Cia peb
Yuav Ua Li Cas Lub Sijhawm Teev Sijhawm Siv Arduino thiab TFT Zaub - Arduino Mega RTC Nrog 3.5 Ntiag TFT Zaub: 4 Kauj Ruam
Yuav Ua Li Cas Lub Sijhawm Teev Sijhawm Siv Arduino thiab TFT Zaub | Arduino Mega RTC Nrog 3.5 Ntiag TFT Zaub: Mus Saib Kuv Youtube Channel.Introduction:- Hauv kab ntawv no kuv yuav ua "Sijhawm Sijhawm" siv 3.5 nti TFT kov LCD, Arduino Mega 2560 thiab DS3231 RTC module…. Ua ntej pib… tshawb xyuas cov vis dis aus los ntawm kuv tus YouTube channel..Ntau:- Yog tias koj siv Arduin
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: 13 Kauj Ruam (nrog Duab)
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: Intro: Qhov no yog Txoj Haujlwm uas siv Arduino board, Sensor (DHT11), lub khoos phis tawj Windows thiab Kev Ua Haujlwm (rub tawm dawb) program los tso saib Kub, Cov ntaub ntawv vaum hauv digital thiab bar kab ntawv, tso tawm lub sijhawm thiab hnub tim thiab suav lub sijhawm suav