Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Cia Muab Qhov Togheter, Pib Nrog Raspberry Pi
- Kauj Ruam 2: Sijhawm Kho Vajtse
- Kauj Ruam 3: Txuas Qee Cov Hluav Taws Xob
- Kauj ruam 4: Txhim Kho Txoj Cai
- Kauj ruam 5: Pib Pib Backend
Video: IHover: 5 Kauj ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Tej zaum koj yuav nug koj tus kheej, dab tsi hauv ntuj raug txim yog cov nqaij grinder no ?? Zoo, cia kuv qhia koj rau kuv li hovercraft. Puas yog lub hovercraft tsis yog qee yam los ntawm yeeb yaj kiab si-fi uas koj yuav nug? Tsis yog tiag tiag, lub dav hlau tiag tiag siv qis qis tso siab ntseeg tias nws ntxiab hauv ib lub hnab ntim hauv qab nws. Thaum muaj qhov txaus txaus cua tso rau hauv yuav thawb lub hovercraft nce kom nws tuaj yeem khiav tawm ntawm lub qhov hauv qab lub hnab. Nws ua tau zoo tsim huab cua npuas qhov twg nws hovers. Yog li lub npe hovercraft.
Lub tshuab muaj zog no tuaj yeem nqa qhov hnyav ntau thiab tuaj yeem ya hla txhua qhov av uas koj xav tau. Thiab yog tias koj tuaj yeem ya nws deb txaus kom koj tsis tuaj yeem hnov nws ntxiv, zoo siab nrog koj tab sis tsis txhob txhawj, nws tau nruab nrog gps yog li koj tuaj yeem pom nws rov qab thaum teeb tsa cov ntaub ntawv ceev tshiab.
Khoom siv
- Raspberry Pi
-Powerful drone motors: SUNNYSKY A2212 KV980
-4 ESC's nrog qhov tsawg kawg tam sim no ntawm 15A: LittleBee 20A-S ESC BLHeli_S OPTO
-Tus neeg xa khoom 10 x 4.5
-High zog drone roj teeb nrog qhov tsawg kawg tam sim no ntawm 60A thiab 3S voltage: VGEBY1 LiPo-Accu, 3S 11, 1 V
-RC digital tshuav nyiaj them rau lub roj teeb lithium
-Led sawb
-2 HC-sr04 ultrasonic sensors
-LDR sensor
-FlySky FS-i6 RC Transmitter nrog FS-iA6B Txais
-GPS 6MV2 module
-5V powerbank
-Servo (min 3kg ntawm lub zog)
-Transitor yam tsawg kawg 12V zoo li TIP120
-MCP3008 analog rau digital hloov pauv
-9V rau 5v thiab 3.3V hloov pauv
-Battery tuav (6.5 rau 12V)
-Resistor teeb
-Jumper xov hlau
-Txoj teeb meem zoo li ntoo thiab nas cais
Kauj Ruam 1: Cia Muab Qhov Togheter, Pib Nrog Raspberry Pi
Txhim kho Raspbian
Txhua qhov khoom siv zoo nkauj no yog tswj los ntawm raspberry pi. Txhawm rau ua neej nyob yooj yim, teeb tsa raspbian ntawm SD daim npav thiab ua raws cov theem no. Tom qab flashing OS thiab ua ntej khau raj thawj zaug: Sau ip = 169.254.10.1 kawg ntawm cmdline.txt cov ntaub ntawv koj tuaj yeem pom hauv cov npe khau raj ntawm koj daim npav SD tshiab. Txuag cov ntawv no thiab tawm mus. Koj nyuam qhuav teeb tsa tus IP zoo li qub hauv koj Pi.
Txhawm rau ua kom yooj yim ssh txuas rau koj thawj khau raj, tsim hauv tib lub npe khau raj cov ntaub ntawv hu ua ssh yam tsis muaj kev txuas ntxiv xws li.txt txuas rau nws. Tso cov ntawv no tseg.
Boot koj Pi Txuas koj Pi ntawm ethernet thiab qhib kev sib txuas ssh nrog cov haujlwm zoo li putty. Tus IP chaw nyob txuas yog tus IP chaw nyob uas koj nkag rau hauv cmdline.txt cov ntaub ntawv: 169.254.10.1
Rasbian teeb tsa
Hom
sudo raspi-teeb tsa
kom qhib qhov chaw rasbian.
Ua ntej tshaj plaws mus rau cuam tshuam hauv cov ntawv qhia zaub mov thiab pab kom muaj kev sib txuas lus thiab SPI npav. Rov pib dua.
Tu siab uas ua kom muaj kev sib txuas lus tsis yog ib qho yooj yim. Koj kuj tseem yuav tsum ua cov lus txib no yog tias koj muaj Pi 3 lossis 4.
sudo systemctl nres [email protected]
sudo systemctl lov tes taw [email protected]
Tom ntej no rov mus rau /boot/cmdline.txt cov npe nrog
sudo nano /boot /cmdline.txt
thiab rho tawm cov ntawv nyeem console = serial0, 115200. Thaum kawg qhib cov ntawv /boot/config.txt
sudo nano /boot /config.txt
thiab sau qhov no rau hauv qab:
enable_uart = 1
dtoverlay = miniuart-bt
Qhov no yuav hloov rx thiab txp tus pin ntawm koj tus pi mus rau qhov kho vajtse tiag uart tsheb npav ntawm koj tus pi thiab muab bluetooth qhov cuav thiab phem dua.
Wifi
Wifi tsis yog khoom kim heev yog tias koj xav teeb tsa qee qhov software tshiab hauv kab, zoo li peb yuav tsum tau ua.
Ua qhov no nrog cov lus txib hauv qab no thiab hloov SSID thiab tus lej zais nrog koj tus router SSID thiab tus lej zais raws.
wpa_passphrase "SSID" "Password" >> /etc/wpa_supplicant/wpa_supplicant.conf
Rov pib dua koj Pi kom cia qhov kev hloov pauv siv tau. Txheeb xyuas koj qhov kev sib txuas nrog
pib ping www.google.com
hais kom ua thiab txuas ntxiv yog tias mus rau qib tom ntej yog tias koj tau txais lus teb.
Nruab ib co software
Ua ntej tshaj, nkag mus:
sudo apt-tau hloov tshiab
sudo apt-tau hloov tshiab
thiab muab sijhawm rau koj Pi rau nruab qhov hloov tshiab.
Tom qab ntawd peb yuav tsum teeb tsa lub database khaws tag nrho cov ntaub ntawv qhov chaw peb yuav khaws.
sudo apt nruab mariadb-server
mysql_secure_installation
Ua raws li tus txheej txheem teeb tsa. Txhawm rau tuaj yeem khiav lub vev xaib los ntawm pi, nruab apache web server.
sudo apt nruab apache2 -y
Thaum kawg peb tseem yuav tsum tau teeb tsa qee cov pob sej
Lub hwj
Flask_cors Flask_socketio Python-mysql-connector sudo apt-tau nruab python3-spidiv
Kauj Ruam 2: Sijhawm Kho Vajtse
Lub hauv paus
Tau qhov no deb ?? Al software yuav tsum ua tiav yog li cia peb pib nrog txhua yam khoom lom zem, kho vajtse.
Lub hauv paus ntawm lub hovercraft muaj los ntawm ntoo thiab nas cais.
- Cov khoom ntawm thawj rau koj yuav tsum ua ob zaug. Tus nas cais tawm yog txiav nrog lub saw pom nrog cov ntoo ntoo ua ke nyob saum nws. Qhov chaw nruab nrab ntawm tus nas cais yuav tsum loj txaus yog li tus kiv cua haum ntawm nws. Tom ntej no koj ntswj ob lub tshuab drone nyob nruab nrab ntawm cov plank thiab nce cov kiv cua saum toj.
- Tom ntej no peb yuav tsum ua 2 lub cav ntau ntxiv uas peb yuav tso rau hauv nruab nrab ntawm cov khoom siv tes ua (daim duab 2).
- Txiav tawm hauv qab ntawm lub hovercraft los ntawm cov nas cais tuab. Tom qab ntawd rov ua lub hnab airtight ncig nws (daim duab 3).
- Tam sim no peb yuav tsum ua lub vaj huam sib luag sab saum toj. Qhov no yuav tsum muaj qhov ntev tib yam nkaus li hauv qab peb tau ua hauv cov kauj ruam dhau los. Ua 2 qhov me me ntawm cov kab uas hla ntawm lub tog raj kheej nruab nrab thiab lo rau 4 lub cev muaj zog sib txuas ua ke peb ua hauv qib 1 thiab 2 nyob rau saum nws. Tom qab ntawd peb lo rau sab hauv qab ntawm theem 3 hauv qab.
- Peb txuas ntxiv los ntawm kev ua lub fins peb xav tau rau kev taw qhia. Ua ob lub fins zoo li ntawm daim duab 5 ntawm ntsia hlau rau saum koj lub lawj. Yuav kom txav tau lawv ua cov qauv zoo sib xws hauv daim duab 9. (Duab 5 - 9)
- Tam sim no ua kom tiav nrog qee lub thawv ntxiv nyob ib ncig ntawm lub qhov cua kom muaj huab cua zoo dua (daim duab 10).
Kauj Ruam 3: Txuas Qee Cov Hluav Taws Xob
Hauv cov ntaub ntawv hauv qab no koj yuav pom qhov xwm txheej zoo ib yam ob zaug, ib zaug hauv daim ntawv teev npe thiab lwm lub sijhawm hauv daim ntawv qhia zaub mov. Xav hloov qee yam ntxiv yog tias koj tsis tuaj yeem pom tsob ntoo hla hav zoov ntxiv lawm.
TSWV YIM: Nco ntsoov xaim ib qho nqes mus thiab rov qab tua lub cav rov qab, pom hauv daim phiaj qhia zaub mov. Qhov no yuav ua rau lub cav tig rov qab.
Kauj ruam 4: Txhim Kho Txoj Cai
Txhua tus lej kuv tau sau yog muaj pub dawb ntawm github.
Txhawm rau clone lub backend nkag
git clone
thiab clone lub ntsej muag
github.com/BaertTorre/www
Cov backend koj tuaj yeem txuag qhov twg koj xav tau tab sis lub ntsej muag yuav tsum tau muab tso rau hauv / var / directory thiab hloov qhov uas twb muaj lawm hauv daim ntawv qhia www.
Yog ua tiav qhov raug koj tuaj yeem nthwv mus rau 169.254.10.1 nrog koj tus broser thiab pom lub vev xaib tom ntej.
Kauj ruam 5: Pib Pib Backend
Txais tos rau cov kauj ruam kawg. Vam tias koj tau ua qhov no mus deb yam tsis muaj trubble. Kuv feem ntau tsis tau:).
Cov kauj ruam no npog yuav ua li cas thiaj ua rau lub backend software tau pib thaum pib ntawm Pi.
Tsim cov ntaub ntawv nrog cov lus txib no:
sudo nano /etc/systemd/system/iHover.service
Yav dhau los cov hauv qab no hauv cov ntawv no:
[Chav] Nqe lus piav qhia = iHover Tom qab = network.target mariadb.service [Kev pabcuam] Hom = tus neeg siv yooj yim = hauv paus ExecStart =/bin/sh /Path/To/Repo_with_launcher.sh [Install] WantedBy = multi-user.target
Ntawm kab ExecStart, muab txoj hauv kev raug rau lub launcher.sh suav nrog hauv nraub qaum.
Thaum kawg cia qhov kev hloov pauv siv nrog:
sudo systemctl daemon-reload
sudo systemctl pab kom iHover.service
Thiab koj ua tiav !!
Muaj kev lom zem nrog koj cov khoom ua si tshiab.
Pom zoo:
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom - Cov Kauj Ruam ntawm Kauj Ruam: 4 Kauj Ruam
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom | Cov kauj ruam ib kauj ruam: Hauv txoj haujlwm no, kuv yuav tsim qhov yooj yim Arduino Tsheb Rov Qab Tsheb Nres Tsheb Nres Sensor Siv Arduino UNO thiab HC-SR04 Ultrasonic Sensor. Qhov no Arduino raws Lub Tsheb Rov Qab ceeb toom tuaj yeem siv rau Kev Tshawb Fawb Txog Tus Kheej, Robot Ranging thiab lwm yam
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
RC Taug Qab Neeg Hlau Siv Arduino - Kauj Ruam Ib kauj ruam: 3 Kauj Ruam
RC Tracked Robot Siv Arduino - Kauj Ruam Ib Nrab: Hav guys, Kuv rov qab los nrog lwm tus neeg hlau txias chassis los ntawm BangGood. Vam tias koj tau dhau los ntawm peb cov phiaj xwm yav dhau los - Spinel Crux V1 - Tus Cwj Pwm Tswj Tus Neeg Hlau, Spinel Crux L2 - Arduino Xaiv thiab Muab Neeg Hlau nrog Robotic caj npab thiab Badland Braw
Kawm Yuav Ua Li Cas Kos Tus Tswm Ciab - Kauj Ruam Ib Kauj Ruam: 6 Kauj Ruam
Kawm Yuav Ua Li Cas Thiaj Li Tswmciab - Kauj Ruam Ib kauj ruam: Cov tswm ciab no siv sijhawm 10 feeb los kos yog tias koj ua raws kuv cov kauj ruam ua tib zoo
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: 9 Kauj Ruam
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: Cov ntawv qhia no yog qhia koj yuav tsim lub Caj Npab Caj Npab ntawm koj tus kheej li cas