Cov txheej txheem:
- Kauj ruam 1: Cov cuab yeej thiab Software
- Kauj Ruam 2: Kev Sib Txuas rau NMEA 0183
- Kauj Ruam 3: DIP Hloov Chaw
- Kauj Ruam 4: Pub Dawb Ua Ntej Kab thiab Pab UART ntawm Raspberry Pi
- Kauj ruam 5: Firmware
- Kauj Ruam 6: Xeem Khiav
Video: Yuav Siv NMEA-0183 Nrog Raspberry Pi: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
NMEA-0183 Yog tus qauv hluav taws xob txhawm rau txuas GPS, SONAR, lub ntsuas pa, lub ntsuas ntsuas pib thiab lwm yam hauv nkoj thiab nkoj. Hauv qhov sib txawv rau NMEA 2000 tus qauv tshiab (raws li CAN) NMEA 0183 yog ua raws EIA RS422 (qee qhov qub thiab/lossis cov kab ke yooj yim siv RS-232, lossis ib leeg hlau).
Kuv xav qhia koj yuav ua li cas txuas Raspberry Pi 3B rau ib qho khoom siv NMEA-0183 nrog cov zis sib txawv. Txawm hais tias tus qauv hu rau cais tawm tswv yim thiab tso tawm nws muaj txiaj ntsig los siv RS422 / RS485 HAT nrog kev sib cais sib cais.
Kauj ruam 1: Cov cuab yeej thiab Software
Cov ntaub ntawv:
Raspberry Pi
RS422 / RS485 HAS
ib qho khoom siv NMEA0183
Software:
Raspbian Stretch
NMEA simulators
Kauj Ruam 2: Kev Sib Txuas rau NMEA 0183
Hauv daim duab saum toj no koj tuaj yeem pom cov cuab yeej NMEA raug nrog cov txiaj ntsig sib txawv. Lub davhlau ya nyob twg yog NMEA OUT+ thiab NMEA OUT- lossis TX+ lossis TX-. NMEA IN+ thiab NMEA IN-xov hlau yog nyob ntawm yeem.
yog tias koj muaj ib txoj kab xa xov los ntawm koj lub cuab yeej (feem ntau yuav sau tias TX lossis NMEA OUT lossis qee yam zoo li ntawd), tom qab ntawd koj lub cuab yeej siv RS-232 raws tu qauv. Hauv qhov no koj yuav xav tau qhov hloov pauv RS232 yooj yim.
Kauj Ruam 3: DIP Hloov Chaw
Kauj Ruam 4: Pub Dawb Ua Ntej Kab thiab Pab UART ntawm Raspberry Pi
Txoj hauv kev yooj yim tshaj plaws yog siv cov cuab yeej raspi-teeb tsa txhawm rau hloov UART mus rau GPIO14/15 pins.take tus duab Raspbian tshiab
sudo raspi-teeb tsa
tau txais '5 Kev Xaiv Ua Haujlwm'
tau txais 'P6 Serial'
'Koj puas xav kom lub plhaub nkag mus kom nkag mus tau ntau dua?' TSIS YOG
'Koj puas xav kom lub khoos phis tawj serial chaw nres nkoj kom qhib?' YOG
Ua tiav raspi-config
reboot Raspberry Pi
Tam sim no koj tuaj yeem nkag mus rau UART ntawm /dev /serial0
Kauj ruam 5: Firmware
Koj tuaj yeem pom ntau qhov sib txawv NMEA-0183 software Python sib tsoo rau Raspberry Pi Kev daws yooj yim heev yog NMEA lub tsev qiv ntawv los ntawm Nick Sweeting:
github.com/nsweeting/NMEA0183
Thov nco tseg: pyserial xav tau rau kev sib txuas txuas:
github.com/nsweeting/NMEA0183
Kauj Ruam 6: Xeem Khiav
Txoj haujlwm Python yuav txiav txim siab cov txheej txheem NMEA tuaj. Yog tias koj tsis muaj NMEA lub cuab yeej nyob hauv tsev, koj tseem tuaj yeem siv Simulator ntawm koj lub PC thiab USB yooj yim rau RS485 adapter hloov chaw ntawm lub cuab yeej tiag tiag.
Pom zoo:
Txawb Xov Tooj Siv Yooj Yim Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: 14 Cov Kauj Ruam (nrog Duab)
Kev Siv Xov Tooj Ntawm Lub Xov Tooj Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: Koj puas tau xav tsim qhov kev ua kom txias txias? Yog tias yog, ua li cas txog kev tsim ib qho ntawm cov neeg nyiam tshaj plaws thiab txhua tus nyiam cov khoom siv xws li Lub Xov Tooj Txawb !!!. Hauv Cov Lus Qhia no, Kuv yuav qhia koj yuav tsim lub xov tooj txawb yooj yim siv STM li cas
Yuav Ua Li Cas Kom Muaj Kev Nyab Xeeb Desolder Cov Khoom Siv Hluav Taws Xob rau Kev Siv Rov Los: 9 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Kom Muaj Kev Nyab Xeeb Desolder Cov Khoom Siv Hluav Taws Xob rau Rov Rov Los: Nyob zoo! Kuv yog cov khoom siv hluav taws xob nerd, yog li kuv nyiam ua si nrog cov khoom siv hluav taws xob sib txawv hauv kuv cov phiaj xwm. Txawm li cas los xij, Kuv yuav tsis tas li muaj cov khoom kuv xav tau kom ua tiav kuv txoj haujlwm. Qee zaum nws yooj yim dua los rub cov khoom kuv xav tau los ntawm cov khoom siv hluav taws xob qub
Kev teeb tsa Matrix LED hauv Cov Khoom Siv Hluav Taws Xob qub - Yuav Tsum Tau Cov Khoom Siv: 3 Cov Kauj Ruam (nrog Duab)
Kev teeb tsa Matrix LED hauv Cov Khoom Siv Hluav Taws Xob qub - Yuav Tsum Tau Siv Cov Khoom Siv: Lub teeb pom kev zoo los ntawm lub Windows PC dhau Bluetooth thiab LED cov txheej txheem nthuav tawm Ib co piv txwv ntawm pixel kos duab thiab cov duab ua haujlwm khiav ntawm LED Cov Ntsiab Lus ntawm PIXEL Guts Kit Hauv Cov Lus Qhia no, peb ' yuav
Yuav Ua Li Cas Tswj Cov Khoom Siv Hauv Tsev Nrog TV Chaw Taws Teeb Nrog Timer Ua Haujlwm: 7 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Tswj Cov Khoom Siv Hauv Tsev Nrog TV Chaw Taws Teeb Nrog Lub Sijhawm Ua Haujlwm: Txawm tias tom qab 25 xyoo ntawm nws qhov kev qhia rau cov neeg siv khoom lag luam, kev sib txuas lus infrared tseem muaj feem cuam tshuam nyob rau hnub tsis ntev los no. Txawm hais tias nws yog koj li 55 nti 4K TV lossis koj lub suab lub tsheb, txhua yam xav tau IR chaw taws teeb tswj los teb rau peb
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw