Cov txheej txheem:
- Kauj Ruam 1: Dab tsi rau pluas su? AKA Cov Cuab Yeej thiab Cov Khoom
- Kauj Ruam 2: Npaj Koj Pluas Hmo
- Kauj Ruam 3: Teeb LED
- Kauj Ruam 4: Kev Txuas Hluav Taws Xob
- Kauj Ruam 5: Npaj Raspberry Pi
- Kauj Ruam 6: Coding
- Kauj Ruam 7: X11 Xa mus rau Kev Tswj Chaw Taws Teeb
- Kauj ruam 8: Noj su
Video: Knight Rider Lunchbox Robot: 8 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Ok, nws tsis tham, nws tsis dub thiab tsis muaj AI. Tab sis nws muaj cov zoo nkauj liab LED nyob rau hauv pem hauv ntej.
Kuv tsim WiFi tswj cov neeg hlau uas suav nrog Raspberry Pi nrog WiFi adapter thiab Arduino Uno. Koj tuaj yeem SSH rau hauv Raspberry Pi thiab tswj Arduino nrog Python Tkinter tsab ntawv sau ua ntu zus. Ib sab ntawm kev tsav tsheb koj tseem tuaj yeem tswj lub teeb pem hauv ntej/tom qab, teeb liab sab laug/sab xis thiab tig rau cov Knight Knight Rider LED txias!
Kauj Ruam 1: Dab tsi rau pluas su? AKA Cov Cuab Yeej thiab Cov Khoom
Ntau ntawm cov khoom siv muaj nyob ntawm BangGood.com. Lawv pheej yig thiab lawv yuav luag txhua yam. Koj tuaj yeem pom tus so ntawm Ebay thiab qee qhov hauv koj lub khw muag khoom kho vajtse hauv ib cheeb tsam.
Cov ntaub ntawv:
-
Raspberry Pi 2/B+
- 8 GB (lossis ntau dua) micro SD daim npav
- micro USB cable
- WiFi adapter
- Case
- Arduino Ib
- 9v roj teeb nrog roj teeb clip rau Arduino
- Noj su txias
- 5v USB lub txhab nyiaj txhab nyiaj (12000mAh)
- Breadboard nrog cov xov hlau txaus (txiv neej rau txiv neej thiab poj niam rau txiv neej)
- 5mm LED's (4 Dawb, 8 Liab, 4 Txiv Kab ntxwv)
- 10 x 220ohm resistors
- 2x micro servo TowerPro 9g (hloov kho rau kev sib hloov tas mus li)
- 4x 42mm neeg hlau log
- 24mm Cov Caster
- Ob daim kab xev
Cov Cuab Yeej:
- Kub nplaum rab yaj phom
- Super kua nplaum
- Ntsia Hlau
Tseem ceeb: Kuv siv hloov kho servo rau lub log. Koj tseem tuaj yeem yuav lub cev muaj zog ib txwm tab sis tom qab ntawd koj yuav tsum hloov kho Arduino code.
Kauj Ruam 2: Npaj Koj Pluas Hmo
Yog li kuv yuav tsum pom qhov "log" cuav nyob qhov twg rau hauv lub thawv noj su.
Tom qab ntawd kuv ntxiv cov servo thiab lub log rau ntawm lub thawv noj su (kub glued lub log ntawm servo lub). Kuv siv cov popsicle sticks vim tias lawv zoo meej los so cov servo. Tom qab ntawd kuv ntxiv lub powerbank. Nyob rau sab saum toj ntawm lub txhab nyiaj kuv tau ntxiv 2 popsicle sticks nrog tus caster (super glued caster ntawm cov popsicles sticks). Nyob tom qab ntawm lub txhab nyiaj tau los Arduino Uno. Nyob rau sab saum toj ntawm lub txhab nyiaj tau los Raspberry Pi (hauv ib rooj plaub) thiab nyob rau sab saum toj ntawm lub khob cij. Kuv kho txhua yam nrog daim kab xev ob tog. Kawg kuv tau ntsia ntawm 2 lub log neeg hlau dag nyob rau sab xub ntiag.
Kauj Ruam 3: Teeb LED
Kuv drilled qhov ntawm 5mm txhua qhov chaw kuv xav tso LED's. Cov LED kuv tau siv muaj txoj kab uas hla ntawm 5mm yog li lawv haum zoo kawg nkaus! Kuv siv:
- 2 liab rau lub teeb tom
- 2 dawb rau lub teeb rov qab
- 6 liab rau Knight Rider LED's
- 2 dawb rau lub teeb pem hauv ntej
- 4 txiv kab ntxwv rau teeb liab teeb.
Kauj Ruam 4: Kev Txuas Hluav Taws Xob
Zoo qhov nyuaj tshaj plaws ntawm txoj haujlwm tau teeb tsa cov kab hluav taws xob sab hauv rau hauv lub thawv noj su. Nws muaj ntau cov xov hlau tshwj xeeb tshaj yog rau LED's. Rau LED's Kuv tau siv txiv neej rau poj niam lub khob cij nyob ntawm lub xov tooj, qhov ntawd koj tsis tas yuav siv dab tsi los xij. Rau qhov seem kuv siv txiv neej rau txiv neej.
Raspberry Pi thiab Arduino txuas nrog los ntawm USB. Kuv tau ua piv txwv Fritzing thiab ua kuv qhov zoo tshaj plaws los ua kom pom tseeb li sai tau.
Kauj Ruam 5: Npaj Raspberry Pi
Rau ib tus neeg uas paub me ntsis nrog Raspberry Pi thiab Linux qhov no yuav tsum yog kev thaj yeeb ntawm cov ncuav. Kuv siv Raspian los txhawb Pi. Nws muaj sej 3 nrog cov qauv tkinter thiab pyserial tau teeb tsa ua ntej (peb xav tau qhov no los tswj Arduino)
- Mus rau qhov chaw Raspberry Pi raug cai thiab rub tawm qhov tseeb Raspbian.
- Nyem qhov Raspbian kawg rau koj micro sd (muaj phau ntawv teeb tsa ntawm lub xaib rub tawm).
- Txuas rau hauv internet cable thiab WiFi adapter thiab lub zog ntawm Pi.
Tam sim no peb yuav tsum teeb tsa Pi mus pib txuas ntawm WiFi thaum nyob hauv hom tsis muaj hau.
-
Tshawb nrhiav tus IP chaw nyob ntawm koj tus Raspberry Pi nrog ib ntawm cov hauv qab no.
- Nmap, (qhov no ua haujlwm zoo tshaj plaws ntawm linux).
- Nkag mus rau koj lub router kom pom cov khoom siv sib txuas.
- Siv lub smartphone app zoo li "Fing" txhawm rau tshuaj xyuas koj lub network rau cov khoom siv sib txuas.
- Lwm txoj hauv kev: txuas koj Pi mus rau tus saib xyuas thiab keyboard thiab siv ifconfig hais kom ua qhia koj tus IP.
- Yog tias koj nyob ntawm Linux koj tuaj yeem siv lub davhlau ya nyob twg rau SSH rau hauv koj tus pi, yog tias koj ntawm lub qhov rais koj yuav tsum rub tawm putty.
- Thaum txuas nrog thiab nkag mus (username: pi password: raspberry). ntaus hauv qab no
sudo nano/etc/network/interfaces
Rho tawm cov kab uas twb muaj lawm thiab muab cov kab hauv qab no tso rau hauv cov ntawv (hloov SSID nrog koj tus kheej SSID thiab hloov tus lej zais nrog koj tus password WiFi, khaws cov lus hais!)
auto hlo
iface lo inet loopback iface eth0 inet dhcp tso cai-hotplug wlan0 pib wlan0 iface wlan0 inet dhcp wpa-ssid "SSID" wpa-psk "password"
Reboot Raspberry Pi thiab vam tias nws yuav txuas ncaj qha rau koj li Wi -nkaus network (nco ntsoov tias koj tus IP chaw nyob yuav hloov thaum koj txuas nrog WiFi tsis siv xov tooj)
Kauj Ruam 6: Coding
Koj tuaj yeem tau txais cov ntawv los ntawm kuv github:
github.com/InfiniteFor/KnightRiderRobot
Upload Wifi_BOT.ino cov ntaub ntawv rau koj Arduino
- txuas Arduino rau koj lub PC/laptop.
- qhib WiFi_BOT.ino cov ntaub ntawv nrog rau Arduino software raug cai thiab nyem rau upload.
Luam cov ntawv tswj.py rau koj li Raspberry Pi.
- Qhib lub control.py nrog cov ntawv sau.
- SSH rau koj pi thiab ntaus:
nano tswj.py
Yav dhau los cov cai los ntawm control.py rau hauv koj tsab ntawv tsim nab nab thiab txuag nws
Kauj Ruam 7: X11 Xa mus rau Kev Tswj Chaw Taws Teeb
Koj yuav tsum xa X11 rau tsab ntawv nab nab ua haujlwm los ntawm koj lub laptop/pc. Qhov no vim tias qhov kev sib tham SSH ib txwm tsis xa X11 los ntawm lub neej ntawd.
Thaum koj nyob ntawm Linux qhov no yooj yim heev. Tsuas yog siv -X lossis -Y (qhov twg los xij ua haujlwm) hauv koj kab lus hais kom ua. Piv txwv li:
ssh -X pi@
Thaum nyob ntawm windows koj yuav tsum ua tiav qhov pom lwm cov kauj ruam. Dhau li putty koj kuj yuav tsum rub tawm xming. Muaj cov lus qhia zoo heev txog kev siv xming nrog putty.
Kauj ruam 8: Noj su
- Fais fab ntawm koj Arduino (9v roj teeb) thiab Raspberry Pi (lub txhab nyiaj fais fab).
- Tos kom Raspberry Pi pib.
- SSH rau koj Raspberry Pi (tsis txhob hnov qab xa X11) thiab ntaus hauv:
sej 3 control.py
Txaus siab rau!
Dhau li ntawm cov nyees khawm koj tseem tuaj yeem nias tus yuam sij ntawm koj cov keyboard. Cov ntawd yuav xa tam sim rau koj Arduino.
Lub tswv yim yav tom ntej:
Kuv muaj kev tshoov siab ntau rau txoj haujlwm no tab sis tsis tuaj yeem ua txhua yam. Yog li ntawm no yog cov npe luv ntawm lwm yam uas koj tuaj yeem ua:
- Txuas lub koob yees duab mus rau Raspberry Pi thiab saib qhov pub los ntawm lub vev xaib.
- Hloov chaw ntawm kab ntawv nabqa tkinter koj tuaj yeem ua nplooj http uas koj tuaj yeem nkag mus tswj tus neeg hlau. Koj tseem tuaj yeem qhia lub koob yees duab pub rau hauv tib nplooj ntawv! (tsis muaj X11 xa mus ntxiv rau txoj hauv kev no)
- Nrog chaw nres nkoj-xa mus koj tuaj yeem tswj hwm koj tus neeg hlau los ntawm txhua qhov chaw hauv ntiaj teb!
- Hloov chaw ntawm kev txuas Pi rau koj lub network hauv tsev koj tuaj yeem tsim qhov hotspot ntawm Pi. Txoj kev ntawd koj tsis txwv rau koj lub network hauv tsev.
Thov qhia rau kuv paub yog tias koj nyiam txoj haujlwm no. Kuj zoo siab los nug cov lus nug koj muaj!
Khiav Tawm Hauv Kev Sib Tw Raspberry Pi 2016
Pom zoo:
Knight Rider Circuit 2: 5 Cov Kauj Ruam
Knight Rider Circuit 2: Nov yog kuv thawj zaug. sijhawm los tshaj tawm qhia, qhov no yog qhov haujlwm Arduino yooj yim heev. Koj tsuas yog qee qhov yooj yim, cov ntaub ntawv yooj yim los tsim txoj haujlwm no. Lub tswv yim ntawm txoj haujlwm no tau tshoov siab los ntawm https: //www.instructables.com/id/Knight-Rider-Circ โฆ Qhov no yog
Qhov sib txawv ntawm Knight Knight Rider: 3 Cov Kauj Ruam
Qhov Hloov Pauv Knight Knight Rider: Nov yog kuv thawj Phau Ntawv Qhia yog li thov nyiam nws! Nws tau tshoov siab los ntawm 1980s TV qhia hu ua Knight Rider, uas muaj lub tsheb hu ua KITT nrog lub tshuab luam ntawv LED uas tau rov qab los thiab zoo li qhov no. Yog li, cia peb pib ua nws
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
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
Knight Rider LED T Shirt: 3 Kauj Ruam
Knight Rider LED T Shirt: Nov yog T Tsho nrog xaws ntawm LEDs uas tau siv los ntawm LilyPad Arduino lub rooj tsav xwm tseem ceeb thiab LilyPad npib ntawm tes tuav lub roj teeb uas tuaj yeem muab tau txog li 9v roj teeb, txuas nrog los ntawm cov xov hluav taws xob