Cov txheej txheem:
- Kauj Ruam 1: Kev Npaj Kho Vajtse
- Kauj ruam 2: Kev sib txuas
- Kauj Ruam 3: Teeb Raspberry Pi
- Kauj ruam 4: Kev ua tiav
- Kauj Ruam 5: Txog Thaum Kawg
Video: Maze Game los Tswj Nrog Smartphone: 5 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Maze game los tswj nrog lub xov tooj ntse
Lub maze txav raws qhov nqes hav ntawm lub xov tooj ntawm tes.
Ua ntej tshaj plaws, thov saib daim vis dis aus.
Tsab ntawv tsa suab
1. Raspberry Pi yog Websocket server.
2. Lub xov tooj smartphone yog Websocket tus thov kev pab.
3. Lub xov tooj smartphone xa cov ntaub ntawv qaij mus rau Raspberry Pi.
4. Raspberry Pi tswj cov servo raws li cov ntaub ntawv inclination.
Kauj Ruam 1: Kev Npaj Kho Vajtse
- Servo thiab servo folderServo siv Tower-pro SG90. Thov xa mus rau qhov URL kom paub meej. Cov ntaub ntawv 3D kuj tseem tuaj yeem rub tawm.https://www.thingiverse.com/thing: 746116
- Maze game (khoom siv lub teeb, ua nrog pawg thawj coj styrene)
- Pob (Teeb khoom.)
- Raspberry Pi (siv Raspberry Pi 3B)
- Smartphones (Npaj browser tshiab kom ntau li ntau tau. Safari Chrome Firefox)
Kauj ruam 2: Kev sib txuas
1. Txuas kab sab saud mus rau GPIO 12 (32 PIN).
2. Txuas kab qis rau GPIO 18 (12 PIN).
3. Teem cov kev taw qhia ntawm servo.
Kauj Ruam 3: Teeb Raspberry Pi
1. PIB
Kev sib tham tau ua tiav nrog Rpi. GPIO teeb tsa hauv tus qauv, yog li ntawd, kuv yuav teeb tsa pi-gpiod. Qhov no yog vim tias PWM cov zis tau ruaj khov.
Txoj kev teeb tsa
sudo apt-tau nruab pigpio python-pigpio python3-pigpiohttps://abyz.me.uk/rpi/pigpio/index.html
Pib daemon.
sudo pigpiod
2. Node-RED
Nruab ib lub tsev qiv ntawv rau pi-gpiod.https://flows.nodered.org/node/node-red-node-pi-gpiod
Nruab lub tsev qiv ntawv dashboard rau debugging.https://flows.nodered.org/node/node-red-dashboard
3. Tsim kev ntws
Thov import (Luam & Muab tshuaj txhuam) cov ntawv hauv qab no rau Node-RED. Tso rau thaum koj tuaj yeem luam tau ib txwm.
Kauj ruam 4: Kev ua tiav
1. Txuas nrog lub xov tooj smartphone
Thov txuas koj lub smartphone rau WIFI ntawm tib ntu. Qhib lub vev xaib thiab nkag mus rau IP chaw nyob ntawm Raspberry Pi.
siv.
2. Tsiv lub maze raws txoj kab nqes hav ntawm lub smartphone. Cia peb ua kom qeeb.
Kauj Ruam 5: Txog Thaum Kawg
Raws li nws cuam tshuam txog kev txav ntawm lub xov tooj ntawm tes, thov kho qhov program thiab txo qis kev nkag siab.
Hauv qhov xwm txheej ntawd thov hloov kho qhov ua haujlwm ntawm Node-RED.
Zoo siab qhia
Pom zoo:
Iav Pob Zeb LED Tube (WiFi Tswj Los Ntawm Smartphone App): 6 Cov Kauj Ruam (nrog Duab)
Iav Pob Zeb LED Tube (WiFi Tswj Tau Los ntawm Smartphone App): Nyob zoo cov phooj ywg ua! Hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas thiaj tsim tau WiFi-tswj LED raj uas tau ntim nrog iav pob zeb kom muaj txiaj ntsig zoo kis. Cov LEDs yog tus tuaj yeem hais qhia tus kheej thiab yog li ntawd qee qhov cuam tshuam zoo tuaj yeem ua tau hauv
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: 4 Cov Kauj Ruam (nrog Duab)
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: Tsis ntev los no kuv tau siv sijhawm qee lub sijhawm siv khoom hauv thiab ib puag ncig kuv lub tsev. Kuv tab tom siv Domoticz ua kuv daim ntawv thov Tsev Automation, saib www.domoticz.com kom paub meej. Hauv kuv tshawb nrhiav daim ntawv thov daim ntawv qhia uas qhia tag nrho Domoticz cov ntaub ntawv tog
ESP8266 RGB LED Sawb WIFI Tswj - NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi - RGB LED Sawb Smartphone Tswj: 4 Cov Kauj Ruam
ESP8266 RGB LED Sawb WIFI Tswj | NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi | RGB LED Sawb Smartphone Tswj: Nyob zoo cov neeg hauv qhov kev qhia no peb yuav kawm paub siv nodemcu lossis esp8266 li IR chaw taws teeb los tswj RGB LED sawb thiab Nodemcu yuav raug tswj los ntawm smartphone dhau wifi. Yog li hauv paus koj tuaj yeem tswj RGB LED Sawb nrog koj lub xov tooj
Arduino Pocket Game Console + A -Maze - Maze Game: 6 Cov Kauj Ruam (nrog Duab)
Arduino Pocket Game Console + A -Maze - Maze Game: Zoo siab txais tos rau kuv thawj qhov kev qhia! Txoj haujlwm kuv xav qhia rau koj hnub no yog Arduino tshawb nrhiav game, uas dhau los ua lub hnab ntim khoom muaj peev xwm zoo li Arduboy thiab zoo ib yam li Arduino raws cov khoom siv. Nws tuaj yeem ua rau pom nrog kuv (lossis koj) kev ua si yav tom ntej ua tsaug rau nthuav tawm
Begging Neeg Hlau Nrog Saib Xyuas Lub Ntsej Muag thiab Tswj los ntawm Xbox Tus Tswj - Arduino: 9 Cov Kauj Ruam (nrog Duab)
Begging Robot Nrog Lub ntsej muag taug qab thiab Tswj los ntawm Xbox Controller - Arduino: Peb tab tom yuav ua tus thov neeg hlau. Tus neeg hlau no yuav sim ua rau khaus lossis ua rau pom kev dhau ntawm tib neeg. Nws yuav ntes lawv lub ntsej muag thiab sim tua lasers ntawm lawv. Yog tias koj muab tus neeg hlau ib npib, nws yuav hu nkauj thiab seev cev. Tus neeg hlau yuav xav tau