Cov txheej txheem:

Yuav Ua Li Cas Txuas RC Tsheb thiab Raspberry Pi rau Remo.tv: 4 Cov Kauj Ruam
Yuav Ua Li Cas Txuas RC Tsheb thiab Raspberry Pi rau Remo.tv: 4 Cov Kauj Ruam

Video: Yuav Ua Li Cas Txuas RC Tsheb thiab Raspberry Pi rau Remo.tv: 4 Cov Kauj Ruam

Video: Yuav Ua Li Cas Txuas RC Tsheb thiab Raspberry Pi rau Remo.tv: 4 Cov Kauj Ruam
Video: G-Shock Watches Under $250 - Top 15 Best Casio G Shock Watches Under $250 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Txuas RC Tsheb thiab Raspberry Pi rau Remo.tv
Yuav Ua Li Cas Txuas RC Tsheb thiab Raspberry Pi rau Remo.tv

Ua raws li cov lus qhia ntawm koj qhov kev pheej hmoo ntawm tus kheej, Kuv tsis yog lub luag haujlwm rau ib qho kev puas tsuaj lossis kev raug cai raug cai. Tsis txhob ua qhov no yog tias koj nyob ze lub tshav dav hlau, Chaw Naj Npawb Xov Tooj Cua, lossis KEV PAB CUAB QHIA. Yog tias ib qho ntawm koj cov cim cuam tshuam nrog kev tswj hwm huab cua, kev pabcuam xwm txheej ceev (tub ceev xwm, tsheb thauj neeg mob), thiab lwm yam lawv yuav tuaj nrhiav koj lub teeb liab thiab thaum kawg koj !!

Yog tias qhov no cuam tshuam nrog lub dav hlau, FAA (Asmeskas) yuav los nrog DF thiab pom koj thiab koj tuaj yeem raug them nyiaj. Siv nrog ceev faj

Khoom siv

• Raspberry Pi (3B thiab Up Kuv ntseeg)

• Lub Tsheb RC (YUAV TSUM MUAJ NEEG SAWV DAWS 27MHz, Txhua yam saum 30MHz yuav tsis ua haujlwm, nco ntsoov lub tsheb tsis yog 2.4GHz)

• USB Webcam

• Powerbank (Txhawm rau fais fab raspberry pi, txhua lub txhab nyiaj lub zog yuav ua ntev npaum li nws muaj chaw nres nkoj usb)

• Roj teeb Rechargeable (Rau RC Tsheb, yog tias lub tsheb los nrog lub roj teeb rov los tau ua hauv ces koj tsis tas yuav tau qhov no)

• Daim kab xev thiab kua nplaum kub

• tus poj niam dupont xaim (txuas rau tus pi ua 'kav hlau txais xov')

Kauj Ruam 1: Xyuas kom tseeb tias lub tsheb sib haum nrog Raspberry Pi

Xyuas kom tseeb tias lub tsheb tau sib xws nrog Raspberry Pi
Xyuas kom tseeb tias lub tsheb tau sib xws nrog Raspberry Pi

Yog li ua ntej koj pib tearing cov khoom sib nrug koj yuav tsum pom yog tias lub tsheb tseem yuav ua haujlwm nrog raspberry pi, rau xa cov cim rau lub tsheb nws tus kheej Kuv siv pi-rc ua ke nrog siv lub qhov (socket) txuas rau tus nab npawb nab npawb.

Muab lub xaim xaim dupont tso rau ntawm GPIO 4/tus pin 7 (Raws li pom hauv daim duab saum toj no; TSIS TXHOB txhuam tus PINS !!!)

Thiab tom qab ntawd clone git repo ntawm pi-rc rau raspberry pi nrog cov lus txib no:

$ git clone

Tom qab ua qhov ntawd, ua raws cov lus qhia ntawm no kom tau txais kev teeb tsa kom raug thiab sim nws.

Yog tias nws ua haujlwm, txuag param.json rau tom qab.

Kauj Ruam 2: Tso Ua Ke RC Tsheb

Tso Ua Ke RC Tsheb
Tso Ua Ke RC Tsheb

Ua kom ntseeg tau tias muaj chaw nyob rau tus neeg tsav tsheb sab hauv lub tsheb (tom qab rub lub cev), teeb lub koob yees duab rau sab pem hauv ntej thiab teeb lub txhab nyiaj fais fab rau lwm qhov ntawm nws, (yog tias lub rooj tsav xwm liab liab ntawm lub tsheb RC tau qhia tom qab ntawd muab ib yam dab tsi uas tsis ua rau nruab nrab ntawm nws thiab muab tus pi tso rau sab saum toj ntawm qhov uas tsis yog tus coj ua, tom qab ntawd kaw kab ntawv pi rau saum nws

Kauj Ruam 3: Teeb tsa Tus Tswj Remo

Teeb tsa tus tswj hwm Remo
Teeb tsa tus tswj hwm Remo

Txhawm rau teeb tsa tus tswj hwm remo, teeb tsa nws ib txwm - cov lus qhia ntawm no, tom qab ntawd mus rau "kho vajtse" phau ntawv teev npe thiab tshem tag nrho cov cai los ntawm cov ntaub ntawv 'none.py' thiab hloov nws nrog cov cai ntawm no, koj yuav tau kho nws qee qhov txawm li cas los xij, hloov kab 19-43 kom phim rau dab tsi hauv qhov ntawd.json cov ntawv koj tau khaws tseg ua ntej. Tsis txhob hloov qhov TUAG FREQUENCIES LOSSIS CODE RIGHT AFTER THE 'TIME. SLEEP'S !!!

Tom qab ntawd, teeb tsa qhov chaw remo.tv tswj raws li

- 'f' = mus tom ntej

- 'b' = rov qab

- 'l' = sab laug

- 'r' = yog lawm

- 'bl' = rov qab sab laug

- 'br' = sab xis

Kauj ruam 4: Khiav Bot

Qhib 2 ssh terminals rau hauv pi, thiab pib pi-rc tsab ntawv los ntawm kev nkag mus rau hauv daim nplaub tshev pi-rc code nyob hauv thiab khiav 'sudo./pi_pcm -v', tom qab ntawd khiav tus tswj.py hauv remo.tv nplaub tshev ntawm tus kheej los ntawm kev nkag mus rau daim nplaub tshev tswj hwm remo thiab khiav nab hab sej controller.py

Pom zoo: