Cov txheej txheem:
- Kauj Ruam 1: Qhov Yuav Tsum Tau
- Kauj Ruam 2: Teeb Lub Raspberry Lub Koob Yees Duab
- Kauj ruam 3: Nruab V4l2rtspserver
- Kauj Ruam 4: Teeb Raspberry Raws Li WiFi Access Point: Ntu 1 - Hostapd
- Kauj Ruam 5: Teeb Raspberry Raws Li WiFi Access Point: Ntu 2 - Dnsmasq
- Kauj Ruam 6: Txheeb Xyuas Software
- Kauj Ruam 7: Ua Lub Hwj Huam Fais Fab
- Kauj Ruam 8: Tsim Lub Thawv Rau Lub Koob Yees Duab
- Kauj Ruam 9: Ua Tus Tuav Tus Xov Tooj
- Kauj Ruam 10: Sib sau txhua yam thiab sim nws
Video: Rear View Camera for a Electric Wheelchair: 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Kuv tus nus siv Invacare TDX lub rooj zaum hluav taws xob, uas yooj yim rau kev tswj hwm hauv txhua qhov kev qhia, tab sis vim muaj qhov pom kev rau sab nraub qaum nws nyuaj rau tsav rov qab hauv qhov chaw tsawg. Lub hom phiaj ntawm txoj haujlwm yog txhawm rau tsim lub koob yees duab saib tom qab siv IP kwj mus rau lub xov tooj ntawm tes, uas tau teeb tsa ze rau nws lub ntsej muag saib.
Cov khoom xav tau:
- fais fab mov thiab kev faib khoom siv lub rooj zaum muaj log muaj hwj chim
- rear saib lub koob yees duab thiab video streamer
- tus tuav lub xov tooj ntawm tes rau lub ncoo ncoo.
Lub hwj chim tau muab los ntawm lub rooj zaum muaj log nws tus kheej, uas siv 24V cov roj teeb txhuas. Lub chaw nres nkoj them nyiaj tau siv tsis raug los ntsaws lub hwj chim hloov pauv rau USB, uas ua rau Raspberry lub luag haujlwm rau kev tshaj tawm thiab tseem ua lub xov tooj ntawm tes yog xav tau.
Kev ua tiav yog ua los ntawm Raspberry Pi Zero W, uas ua haujlwm ua lub wireless nkag mus thiab tso cov vis dis aus rau txhua lub cuab yeej txuas nrog lub wireless network.
Lub xov tooj ntawm tes los tso saib daim duab tau teeb nrog lub tshuab luam ntawv 3d luam tawm rau lub rooj tswj lub rooj zaum.
Txhawm rau ua raws txoj haujlwm no koj yuav xav tau qee qhov kev paub yooj yim ntawm Debian/Linux, raws li kev teeb tsa xav tau qee yam haujlwm ua haujlwm. Txawm li cas los xij nws tsis nyuaj heev, yog li muab nws txhaj - yog tias koj tsis paub tseeb tias muaj ntau pua ntawm kev qhia ntawm Linux uas tuaj yeem pab koj.
Kauj Ruam 1: Qhov Yuav Tsum Tau
Raspberry Pi Zero W: Lub hauv paus tseem ceeb rau kev tshaj tawm video
SainSmart Wide Angle Fish-Eye Camera Lenses rau Raspberry Pi: Arduino Lub Koob Yees Duab tau txais lub koob yees duab dav (170 ° FOV)
2 × Cov tsev yas: Ib lub tsev me me rau cov txiv pos thiab lub koob yees duab, ib lub tsev loj dua rau kev faib hluav taws xob
XLR Plug: Txhawm rau txuas rau lub chaw nres nkoj them nyiaj ntawm lub rooj zaum muaj log
Tsheb USB Port (piv txwv li TurnRaise 12-24V 3.1A): 24V rau USB hloov pauv hauv lub tsev me me rau siv tsheb thiab maus taus. Yuav yog txhua yam uas siv 24V cov tswv yim thiab muab USB tso tawm.
Ntau Cov Cables:
- Lub zog fais fab mus rau txoj kev los ntawm XLR chaw nres nkoj mus rau tom qab ntawm lub rooj zaum muaj log,
- USB cable los muab Raspberry
3D luam ntawv hloov pauv rau Xov Tooj A 3d luam ntawv txuas rau lub rooj zaum tswj lub rooj zaum uas ua lub hauv paus rau tus qauv tsheb lub xov tooj tuav:
Tus tuav lub xov tooj ntawm lub tsheb: Tus tuav lub xov tooj ntawm tes uas tuaj yeem txuas rau lub tiaj tiaj (piv txwv li tus tuav lub xov tooj ntawm tes). Kuv siv ib qho los ntawm Hama, tus tsim khoom lag luam German.
Kauj Ruam 2: Teeb Lub Raspberry Lub Koob Yees Duab
Nruab Raspbian los ntawm https://www.raspberrypi.org/downloads/raspbian/ ua raws cov lus qhia los ntawm
Txhim kho txhua qhov hloov tshiab los ntawm kev ua raws ob kab lus hauv qab no los ntawm lub davhlau ya nyob twg:
sudo apt-tau hloov tshiab
sudo apt-tau nruab dist-upgrade
Kaw, txuas lub koob yees duab. Pib raspberry dua.
Hauv Raspberry Teeb vaj huam sib luag pab lub koob yees duab thiab pab kom SSH nkag mus rau raspberry. Lub koob yees duab sainsmart ua haujlwm zoo li lub koob yees duab Pi, koj tuaj yeem ua raws cov lus qhia pom ntawm no: https://www.raspberrypi.org/learning/addons-guide… Hmoov tsis koj tseem tsis tau ua tiav. Peb xav tau tus tsav tsheb v4l rau raspi-cam, uas tsis tau qhib tawm ntawm lub thawv. Ua ntej koj yuav tsum ua qhov hloov kho tshiab ntawm koj li raspberry kom tau txais qhov tseeb firmware thiab kernel tsav tsheb - khiav cov hauv qab no hauv lub davhlau ya nyob twg:
sudo raspi-hloov tshiab
Koj yuav tsum thauj lub v4l kernel tsav tsheb tam sim no los ntawm kev ntaus rau hauv lub davhlau ya nyob twg:
sudo modprobe bcm2835-v4l2
Yog tias qhov no ua haujlwm yam tsis muaj lus yuam kev, tam sim no koj yuav tsum muaj lub cuab yeej /dev /video0, kos nrog
ls - l /dev /vid*
Yog tias qhov no ua haujlwm, ntxiv bcm2835-v4l2 rau /etc /modules kom pab tau tus qauv ntawm txhua qhov pib.
Koj tuaj yeem tshawb xyuas tias lub koob yees duab ua haujlwm nrog cov lus txib:
raspistill -o cam.jpg
Kauj ruam 3: Nruab V4l2rtspserver
Ua ntej, koj yuav tsum teeb tsa cmake, raws li peb yuav suav sau cov vis dis aus tso tawm peb tus kheej:
sudo apt-tau nruab cmake
Rau kev tshaj tawm peb siv v4l2rtspserver raws li nws pom qis qis qis tshaj plaws hauv peb qhov kev sim siab. Koj tuaj yeem tau txais txoj cai los ntawm
Nruab nws nrog:
git clone
cd h264v4l2rtspserver
cmak ua.
ua nruab
Txhua yam yuav tsum ua tiav yam tsis muaj qhov yuam kev thiab koj tuaj yeem sim nws tam sim no los ntawm kev pib streaming server los ntawm lub davhlau ya nyob twg:
v4l2rtspserver -W 352 -H 288 -F 10 /dev /video0
Txuas nrog VLC ntawm lub khoos phis tawj hauv tib lub network rau raspberry: rtsp: //: 8554/unicast txhawm rau txheeb xyuas yog tias cov kwj tawm ua haujlwm.
Tsim ib tsab ntawv hu ua launcher.sh hauv koj phau ntawv qhia tsev siv koj tus kws kho nyiam (uas yuav tsum yog vi):
!#/bin/bashsleep 20 v4l2rtspserver -W 352 -H 288 -F 10/dev/video0
Kev pw tsaug zog yog xav tau los tso cai rau tus tsav tsheb video kom npaj tau. Tej zaum nws tuaj yeem teeb tsa tsawg dua 20 vib nas this….
Ntxiv cov ntawv no rau koj crontab nrog "crontab -e" thiab ntxiv:
@reboot sh /home/pi/bbt/launcher.sh>/tsev/pi/cav/cronlog 2> & 1
Qhov no yuav tsum pib tshaj tawm ntawm txhua qhov pib txiav.
Lwm txoj hauv kev rau streaming:
Muaj ob peb txoj hauv kev los siv rau kev tshaj tawm cov vis dis aus, Kuv tau sim cov lus tsa suab thiab vlc. Tsab ntawv tsa suab yog lub webcam cov cuab yeej uas tshawb pom cov lus tsa suab, yog li nws ua qhov kev tshuaj xyuas cov duab ntxiv ntawm cov duab thiab tej zaum yuav qeeb me ntsis dua li tsuas yog tso tawm.
VLC ua haujlwm tawm ntawm lub thawv yam tsis muaj kev suav sau ntxiv:
cvlc v4l2: /// dev/video0 --v4l2-width 320 --v4l2-height 200 --v4l2-chroma h264 --sout '#standard {access = http, mux = ts, dst = 0.0.0.0: 12345} '
Qhov kev hais kom ua no h264 sau cov vis dis aus ntawm http ntawm chaw nres nkoj 12345. Latency yog me ntsis li 2 vib nas this hauv peb qhov kev teeb tsa kev xeem.
Kauj Ruam 4: Teeb Raspberry Raws Li WiFi Access Point: Ntu 1 - Hostapd
Cov kauj ruam no teeb tsa koj li Raspberry ua qhov Access Point. Tom qab qhov no, koj tsis txuas nrog koj lub network lawm tab sis Raspberry qhib nws tus kheej WiFi Network. Yog tias ua yuam kev, koj yuav tsum tau nkag mus rau Raspberry nrog cov keyboard thiab zaub, yog li ua qhov no ua ntej koj faus cov txiv pos nphuab hauv vaj tsev nyob qhov chaw …
Kuv ua raws txoj hauv kev piav qhia ntawm no:
Nruab hostapd thiab dnsmasq:
sudo apt-tau nruab dnsmasq hostapd
Lov tes taw dhcp ntawm tus interface wlan0 los ntawm kev ntxiv kab hauv qab no rau /etc/dhcpd.conf (nyiam dua rau saum)
tsis lees paub qhov chaw wlan0
Kho tus IP zoo li qub rau wlan0 interface los ntawm kev kho/etc/network/interfaces kom suav nrog cov hauv qab no:
pub-hotplug wlan0 iface wlan0 inet zoo li qub chaw nyob 172.24.1.1 netmask 255.255.255.0 network 172.24.1.0 tshaj tawm 172.24.1.255
Rov pib dua lub dhcp daemon nrog sudo kev pabcuam dhcpcd rov pib dua thiab tom qab ntawd rov qhib wlan0 teeb tsa nrog
sudo ifdown wlan0; sudo ifup wlan0
Txuag qhov txuas hostapd.conf hauv qab /etc/hostapd/hostapd.conf (tom qab koj tau txheeb xyuas cov ntsiab lus thiab hloov kho nws raws li koj nyiam - koj yuav tsum tsawg kawg hloov SSID thiab kab lus txuas mus rau qee yam muaj kev nyab xeeb dua).
Tam sim no koj tuaj yeem tshawb xyuas yog tias nws ua haujlwm los ntawm kev khiav:
sudo/usr/sbin/hostapd /etc/hostapd/hostapd.conf
Koj yuav tsum muaj peev xwm txuas mus rau lub network tshiab, tab sis koj yuav tsis tau txais tus IP chaw nyob tseem. Nres hostapd los tsoo CTRL-C. Pab kom tsis siv neeg pib ntawm hostapd los ntawm kev kho/etc/default/hostapd thiab ntxiv qhov teeb tsa cov ntaub ntawv qhov chaw los ntawm kev hloov kab sib xws rau
DAEMON_CONF = "/etc/hostapd/hostapd.conf"
Kauj Ruam 5: Teeb Raspberry Raws Li WiFi Access Point: Ntu 2 - Dnsmasq
Tsiv qhov muab dnsmasq teeb tsa rau cov ntaub ntawv thaub qab (raws li nws muaj ntau cov lus pom, koj tseem tuaj yeem siv nws rau kev siv):
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
Tom qab ntawd tsim qhov /etc/dnsmasq.conf tshiab nrog cov ntsiab lus hauv qab no:
server = 8.8.8.8 # Forward DNS thov mus rau Google DNS domain-xav tau # Tsis txhob xa cov npe luv bogus-priv # Tsis txhob xa cov chaw nyob hauv qhov chaw tsis nyob. dhcp-range = 172.24.1.50, 172.24.1.150, 12h # Muab IP chaw nyob nruab nrab ntawm 172.24.1.50 txog 172.24.1.150 nrog rau 12 teev sijhawm
Txhim kho qhov kev pabcuam dnsmasq rau qhov chaw nyob tshwj xeeb ua rau qee qhov teeb meem hauv peb kev teeb tsa, yog li peb tsuas yog cia nws khiav ntawm txhua qhov cuam tshuam. Raws li raspberry Pi Zero W tsuas muaj WiFi qhov no tsis muaj teeb meem tshwj tsis yog tias koj txuas USB Ethernet interface ….
Koj tsis tas yuav ua ib qib ntxiv los khiav dnsmasq thaum pib, nws pib pib. Txawm li cas los xij koj yuav tsum ntsuas txhua yam ua ntej koj rov pib dua los ntawm kev pib ua haujlwm ob qho tib si thiab txheeb xyuas tias koj tuaj yeem txuas rau WiFi thiab tau txais IP chaw nyob (koj tseem tuaj yeem qhia koj lub xov tooj ntawm tes tias WiFi no tsis muaj internet thiab qhov no zoo):
sudo kev pabcuam hostapd pib sudo kev pabcuam dnsmasq pib
Kauj Ruam 6: Txheeb Xyuas Software
Tam sim no koj tau teeb tsa txhua yam nws yog lub sijhawm los tshuaj xyuas luv (ua ntej txhua qhov nyuaj nkag mus tau yooj yim dua). Reboot lub raspberry.
Txuas rau WiFi yog tias raspberry nrog koj lub xov tooj ntawm tes. Txuas cov vis dis aus vis dis aus (piv txwv li VLC uas muaj nyob rau txhua lub tshuab ua haujlwm) rau kwj ntawm raspberry los ntawm kev xaiv "Network kwj" thiab txuas rau rtsp: //: 8554/unicast (yog IP ntawm koj lub cuab yeej, yog tias koj tsis ua hloov nws nws yog 172.24.1.1).
Koj yuav tsum pom qee qhov vis dis aus los ntawm lub koob yees duab tam sim no…
Kauj Ruam 7: Ua Lub Hwj Huam Fais Fab
Kev tswj hwm tus neeg saib xyuas siv dab tsi zoo li yog tus qauv rau cov rooj zaum muaj log. Qhov txuas yog tus qauv XLR txuas raws li siv rau microphones. Pin 1 yog qhov zoo, Pin 2 tsis zoo. Invacare muaj ob tus lej ntxiv rau kev sib txuas lus, tab sis peb yuav tsis cuam tshuam nrog cov no …
Txuas tus XLR txuas mus rau USB lub zog hloov pauv thiab haum txhua yam hauv ib lub thawv. Txhawm rau pub cov kab txuas rau lub thawv, kev nkag mus yog lub tswv yim zoo. Nco ntsoov tias txoj hlua ntev txaus kom tau khiav los ntawm lub rooj zaum tswj lub rooj zaum mus rau sab nraub qaum uas koj yuav muab lub thawv xa hluav taws xob. Koj tuaj yeem xa cov kab txuas tom qab cov kab hluav taws xob ntawm cov qauv tswj kom ntseeg tau tias lawv tsis raug ntes nyob txhua qhov chaw hauv kev txav chaw.
Kauj Ruam 8: Tsim Lub Thawv Rau Lub Koob Yees Duab
Tsim lub thawv uas haum rau raspberry pi thiab lub koob yees duab. Lub npov xav tau lub qhov nyob ntawm sab txhawm rau txhawm rau txuas lub USB fais fab cable hla thiab lub qhov rau lub koob yees duab uas loj txaus kom tsis txhob cuam tshuam qhov pom. Kuv tau teeb tsa lub koob yees duab ntawm kwv yees li 45 ° lub kaum sab xis kom nws taw tes qis kom tuaj yeem pom lub nraub qaum ntawm lub rooj zaum muaj log. Kuv siv lub thawv yas txheem rau hauv uas kuv txiav qee qhov, tab sis koj kuj tuaj yeem 3D luam tawm cov ntawv ntxig (tej zaum rau Version 2)
Kauj Ruam 9: Ua Tus Tuav Tus Xov Tooj
Txhawm rau txuas lub xov tooj ntawm tes mus rau lub rooj zaum muaj log Kuv 3d-luam tawm daim ntawv hloov pauv uas tuaj yeem pom ntawm no: https://www.thingiverse.com/thing:2742683 (cov ntawv STL kuj tau txuas). Nws tau txuas nrog chav tswj lub rooj zaum muaj log. Ntawm daim phaj no koj tuaj yeem lo txhua lub xov tooj ntawm lub tsheb, uas koj tuaj yeem tau txais rau qhov pheej yig ib qho twg.
Kauj Ruam 10: Sib sau txhua yam thiab sim nws
Tam sim no nws yog lub sijhawm los sau txhua yam:
Txuas lub koob yees duab-lub thawv qhov chaw nyob tom qab ntawm lub rooj zaum muaj log uas qhov pom tsis muaj kev cuam tshuam thiab lub koob yees duab tau taw qhia rov qab. Txuas lub thawv fais fab qhov chaw nyob tom qab qhov uas nws tsis nyob hauv txoj kev. Txuas lub USB cable los ntawm Raspberry mus rau lub thawv fais fab. Txuas lub thawv fais fab nrog XLR ntsaws rau lub chaw them nqi ntawm lub rooj zaum tswj lub rooj zaum. Txhua yam yuav tsum pib tam sim no.
Nruab VLC ntawm koj lub xov tooj ntawm tes (yog tias koj tseem tsis tau ua tiav …) thiab txuas rau Raspberry ntawm rtsp: //: 8554/unicast
Tam sim no koj yuav tsum pom lub koob yees duab duab ntawm koj lub xov tooj ntawm tes:-)
Muab tus tuav lub xov tooj ntawm tes tso rau ntawm lub rooj zaum tswj lub rooj zaum thiab ua kom lub xov tooj ruaj ntseg. Thiab qhov no yog nws, koj ua tiav!
Qhov khoom plig thib ob hauv Raspberry Pi Contest 2017
Pom zoo:
Joystick Controlled Wheelchair Aided With Obstacle Tracker: 3 Kauj Ruam (nrog Duab)
Joystick Controlled Wheelchair Aided With Obstacle Tracker: Txhawm rau pab txhawb cov neeg xiam oob qhab lub cev nrog kev nyab xeeb caij lub ntsuas hluav taws xob ultrasonic tau siv los taug qab cov teeb meem tam sim no ntawm txoj kev. Raws li kev txav ntawm joystick lub cav yuav tsav lub rooj zaum muaj log nyob rau hauv plaub qhov lus qhia thiab nrawm ntawm txhua qhov
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
FerretMobile DIY Ferret Wheelchair: 9 Kauj Ruam (nrog Duab)
FerretMobile DIY Ferret Wheelchair: Tom qab muaj mob tsis ntev los no txwv tsis pub siv ib qho ntawm peb cov ferret tus ncej qab, Kuv txiav txim siab nws tsis ncaj ncees rau nws kom tau pw ib puag ncig thaum lwm tus ferrets tau tawm mus ua si. Nws tsis tuaj yeem nyob ib puag ncig thiab txaus siab rau nws tus kheej. Kuv txiav txim siab yuav khoom hi