Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Npaj Koj Cov Chaw Taws Teeb
- Kauj Ruam 2: Npaj Koj D1 Mini: Flashing Micropython
- Kauj ruam 3: Thauj cov Remote.py Script
- Kauj Ruam 4: Kuaj Koj Lub Rooj Tswjhwm Saib
- Kauj ruam 5: Soldering daim ntaub thaiv
- Kauj Ruam 6: Tsim Koj Lub Tsheb
Video: Santa's Car: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Nov yog qhov haujlwm lom zem me me uas kuv tau ua thaum Xmas hnub so. Nws yog qhov yooj yim thiab yooj yim los tsim, nws tau tswj hwm los ntawm WiFi-txuas thiab Android xov tooj lossis ntsiav tshuaj. Lub microcontroller yog ESP8266 ntawm Wemos D1-mini board, nws muaj MicroPython teeb tsa thiab sau tsab ntawv me me hu ua remote.py. Nws muaj daim ntaub thaiv sab saum toj (diy) nrog 3 lub transistors, ob peb tus tiv thaiv thiab tus tswj hluav taws xob (lub zog siv yog qub 2S 850mAh Lipo).
Cov chaw taws teeb yog Android Xov Tooj lossis Tablet nrog qhov zoo heev RoboRemo app teeb tsa:
Mus rau RoboRemo
Cov app no tuaj yeem txuas ntawm Bluetooth, TCP, thiab UDP. Vim tias peb D1 muaj WiFi ntawm lub nkoj peb tuaj yeem hla lub khoos phis tawj bluetooth thiab ua kom yooj yim hauv Circuit. Peb teeb tsa peb D1 ua qhov chaw nkag, txuas rau peb lub xov tooj lossis ntsiav tshuaj thiab xa lus txib ntawm UDP.
YouTube yeeb yaj duab
Khoom siv
1 Wemos D1 mini nrog qhov tseeb Micropython teeb tsa. Ahmed Nouira ua qhov qhia tau zoo txog yuav ua li cas nyem koj D1 mini: pom nws ntawm no
1 Diy ntaub thaiv npog rau koj D1 mini (Banggood)
3 transistors BC 517 (overkill me ntsis tab sis kuv tsis muaj lwm tus muaj)
3 resistors 39kOhms 0, 25 Watt rau lub hauv paus polarization
1 Voltage regulator 5V (7805 lossis zoo sib xws, Kuv siv LM2940-5 NROG CAPACITOR)
Led's, 2 lossis 4 yog tias koj nyiam taillights ntawm koj lub tsheb.
220Ohm resistors, 1 rau txhua tus coj.
2 lub zog tsav nrog lub log zoo li ntawm Banggood kab tom qab neeg hlau.
Ntoo, ntawv yas lossis lwm yam los ua lub tsheb lub cev.
Ib lub ntsiav tshuaj lossis xov tooj, ANDROID, nrog RoboRemo app teeb tsa.
Kauj Ruam 1: Npaj Koj Cov Chaw Taws Teeb
Ua ntej peb yuav tsum teeb tsa peb lub xov tooj lossis ntsiav tshuaj ua lub chaw taws teeb tswj. Nruab RoboRemo app thiab txheeb xyuas lawv lub vev xaib: RoboRemo site.
Ntawm no koj yuav pom txhua yam khoom thiab kev qhia uas koj xav tau. Rub tawm daim ntawv pdf-phau ntawv thiab nyeem nws.
Ib zaug ntsia tsuas yog sim nws, nws yooj yim heev! Peb cov chaw taws teeb muaj 4 khawm raws li pom hauv daim duab: pib, nres, sab laug thiab sab xis.
Thaum nias txhua lub pob yuav xa kab ntawv ua raws kab ntawv tshiab (backslash n char). Kho koj cov nyees khawm, nco cov kab ntawv rau txhua khawm. Koj tsab ntawv yuav tshawb nrhiav cov hlua no kom coj Santa lub tsheb:-)
Kauj Ruam 2: Npaj Koj D1 Mini: Flashing Micropython
Ahmed Nouira tau ua txoj haujlwm zoo, ntawm no yog txhua yam koj xav tau los npaj koj li Wemos D1:
Flashing MicroPython
Txawm li cas los xij, rau D1 cov lus txib esptool hauv qab no yuav tsum siv:
esptool.py --port /dev /ttyUSB0-write_flash --flash_mode dio 0 esp8266-20190529-v1.11.bin
(Qhov no yog rau lub tshuab Linux, Macs thiab Windows yuav txawv, thiab.bin cov ntaub ntawv yuav txawv). Qhov tseem ceeb tshaj plaws yog --flash_mode dio rau Wemos D1.
Yog tias koj ntaus ntawv esptool.py hauv lub davhlau ya nyob twg nws qhia tag nrho cov kev xaiv.
Yog tias koj muaj teeb meem flashing MicroPython ntawm no yog ob peb qhov kev pab txuas:
Pib nrog MicroPython
Random Nerd Tutorials
MicroPython Forum
Thiab Google yog koj tus phooj ywg, tsuas yog ntaus "Flashing micropython ntawm Wemos D1".
Kauj ruam 3: Thauj cov Remote.py Script
Thaum koj D1 muaj Micropython teeb tsa nws yog lub sijhawm los rub cov ntawv Remote.py.
Xav tias dawb los hloov/qhia tawm/theej/xijpeem:-). Tsuas yog ua kom shure koj RoboRemo hais kom ua cov hlua
(xa txhua lub sijhawm koj thawb lub pob ntawm koj lub xov tooj/ntsiav tshuaj) phim cov ntawv.
Hloov lub APname thiab tus lej zais hauv tsab ntawv raws li koj nyiam.
Kuv siv Thonny IDE los sau thiab xa cov ntawv sau. Yog tias koj siv lwm txoj hauv kev kom ntseeg tau tias koj cov ntawv sau tsis hloov pauv cov ntawv sau lossis Micropython yuav yws.
Kate cov ntawv sau (Linux) tuaj yeem teeb tsa rau Python cov ntawv thiab yuav saib xyuas qhov qhia kom raug. Ampy tuaj yeem nyem tsab ntawv rau koj pawg thawj coj saib. Ampy.
Saib Random Nerd Tutorials site rau txhua qhov muaj peev xwm: Txuas
Nkag mus rau hauv seem Prerequisites
Thonny tso cai rau koj txhawm rau sau ib tsab ntawv thaum hloov nws, Remote.py yuav tsum tau hloov npe boot.py ua ntej yuav ntsais rau hauv koj lub rooj tsavxwm.
Kauj Ruam 4: Kuaj Koj Lub Rooj Tswjhwm Saib
Tom qab hloov kho koj li APname thiab tus password thiab thauj cov ntawv nws yog lub sijhawm rau kev sim yooj yim:
- Tua koj lub Xov Tooj/Tablet thiab PC
- Txuas D1mini mus rau USB chaw nres nkoj thiab tos me ntsis, D1 yuav tsum pib ua Access point
-Txuas koj Lub Xov Tooj/Ntsiav Tshuaj mus rau Access point hauv teeb tsa/Wifi ntu
-txuas Roboremo app mus rau qhov chaw nkag: ntawv qhia zaub mov/txuas/Internet (UDP)/txuas rau ip: chaw nres nkoj
-nkag 192.168.4.1:5000
-Qhov PuTTy lossis lwm qhov emulator
-nkag mus rau qhov chaw nres nkoj (/dev/ttyUSB0 hauv kuv rooj plaub) thiab teeb tsa tus nqi rau 115200, koj yuav tsis pom REPL tab sis tsis txhob txhawj:-)
- ntaus cov lus txib khawm ntawm koj lub xov tooj Android/ntsiav tshuaj thiab soj ntsuam qhov tso tawm mus rau PuTTy davhlau ya nyob twg: saib video
-Yog tsis muaj qhov yuam kev tshwm sim: kauj ruam tom ntej: tua koj cov cuab yeej soldering:-)
Kauj ruam 5: Soldering daim ntaub thaiv
Pib los ntawm kev siv lub roj teeb txuas thiab tus tswj hluav taws xob (thiab lub tshuab hluav taws xob yog siv LM2940-5). Ntsuas qhov hluav taws xob tso tawm (5V). Yog hais tias OK siv lub 5Voutput thiab GND rau ntawm daim ntaub thaiv npog, saib cov cim ntawm daim ntaub thaiv. Solder cov ntaub thaiv npog txuas.
Tam sim no xaim lub npav 5V thiab GND, txuas lwm qhov raws li pom ntawm cov txheej txheem. Txuas cov motors thiab coj thiab koj ua tiav!
TSEEM CEEB! Txheeb xyuas thiab txheeb xyuas koj li haujlwm ob zaug ua ntej txhim kho daim thaiv npog rau D1mini. Kev ua yuam kev tuaj yeem rhuav tshem koj lub rooj tsavxwm…
Kauj Ruam 6: Tsim Koj Lub Tsheb
Qhov no kuj yog qhov yooj yim heev: kuv yog ua los ntawm cov xim ntoo sib xyaw ua ke nrog ua ke nrog cyano aka superglue. Lub cav tau tsau nrog daim kab xev ob tog thiab ib txoj kab sib dhos tau siv ua "lub log lub qhov ntswg". Kuv sim lwm qhov teeb tsa tab sis qhov no tau muab qhov txiaj ntsig zoo tshaj plaws, teeb tsa zoo ib yam li Banggood kab hauv qab. Lub cev ua los ntawm balsa (Kuv tau ua ntau lub dav hlau khawb av yog li kuv tseem muaj cov khoom lag luam):-)
Tam sim no muab cov xov hlau txuas thiab cov hlua coj mus kuaj, xyuas seb ob lub log khiav mus rau tom ntej yog tias "pib" raug nias.
Qhov no yog theem kawg, tam sim no nws yog lub sijhawm los khiav koj lub tsheb thiab muaj kev lom zem ntau:-)
Pom zoo:
Santa Claus PCB Arduino Module: 5 Kauj Ruam
Santa Claus PCB Arduino Module: Christmas nyob ntawm no thiab Silícios Lab zoo siab muab koj qhov zoo tshaj plaws. Xyoo Christmas 2019 no peb tab tom muab Santa Claus tus qauv rau Arduino.Txhua tus qauv no, koj yuav tuaj yeem tswj koj li Santa Claus tes, qhov muag, thiab koj lub kaus mom. Ib qho ntxiv, koj c
Santa's Sorting Hat: 10 Kauj Ruam (nrog Duab)
Santa's Sorting Hat: Peb tau ua haujlwm ze nrog Santa's Rhiav kom coj koj qhov kev hloov pauv tshiab no hauv qhov tsis zoo lossis cov npe zoo sib txuas lus. Tam sim no, koj tuaj yeem tshawb xyuas lub sijhawm tiag tiag yog tias koj qhov kev ua zoo thiab phem tau cuam tshuam rau koj sawv ntawm Santa's Naughty lossis Nice list! Ib qhov kev lom zem
RC Santa Sleigh: 10 Kauj Ruam (nrog Duab)
RC Santa Sleigh: Nyob zoo txhua tus. Hnub no kuv yuav qhia koj yuav ua li cas ua npuas dej ua npuas ncauj RC Santa Sleigh.Kuv muaj cov khoom siv hluav taws xob tshuav los ntawm lub dav hlau uas tsis ua haujlwm, thiab lub tswv yim tau nyob hauv qab ntawm kuv lub siab rau ib pliag. Kuv muaj ib hnub dawb, thiab vim tias nws yog lub sijhawm Christmas kuv
CAR yooj yim CAR Arduino IR Tswj: 5 Kauj Ruam
CAR yooj yim CAR Arduino IR Tswj: Hauv qhov haujlwm no kuv yuav qhia koj yuav ua li cas kom lub tsheb tswj los ntawm TV tswj chaw taws teeb. rau qhov no peb yuav siv lub tshuab txais infrared. Nws yuav qhia koj yuav ua li cas thiaj tau txais thiab txiav txim siab lub pob khawm tau txais
CAR yooj yim CAR Arduino Bluetooth Tswj: 6 Cov Kauj Ruam
CAR yooj yim CAR Arduino Bluetooth Tswj: Hauv qhov haujlwm no kuv yuav qhia koj li cas siv Bluetooth module los tswj lub tsheb los ntawm cov lus txib los ntawm lub xov tooj smartphone.List element: Bluetooth HC-06 Arduino uno L293D lub cev tiv thaiv Plexi 17cm x 10cm 4x TT gear Motor 4x log 4x Roj teeb AA Roj Teeb