Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Daim duab txuas
- Kauj ruam 2: Kho Blynk ntawm Txawb
- Kauj Ruam 3: Txoj Cai.
- Kauj Ruam 4: Video Prototype Functionality
Video: NEMA 17 - WeMos Mini - Blynk: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Stepper motors xws li NEMA 17 muaj ntau yam siv thiab cov qauv no yuav pab cov nyeem nkag siab txog txoj hauv kev los tswj NEMA 17 los ntawm Blynk App.
Nov yog kev sim ua IoT uas yuav pab peb nkag mus thiab tswj NEMA 17 los ntawm txhua qhov chaw thiab txhua lub sijhawm.
Muaj ntau qhov kev siv-xwm txheej uas siv Stepper lub cev muaj zog (tshwj xeeb tshaj yog thaum koj xav tau qhov tseeb hauv kev tswj tus lej ntawm tig ntawm txoj cai).
Khoom siv
- WeMos D1 Mini
- L298N Stepper lub cev muaj zog tsav
- NEMA 17 Stepper Tsav
- Micro USB cable rau lub zog WeMos D1 Mini thiab hloov cov cai.
- 12V 1A Adapter rau lub zog NEMA 17 Stepper Motor
- Jumper Wires Txiv neej rau Txiv neej & Txiv neej rau Poj Niam
- Poj niam DC Power Jack Adapter
- Capacitor - 100 μF
- Cov qhob cij.
Kauj ruam 1: Daim duab txuas
Cov duab rub tawm yog piav qhia tus kheej thiab tsuas yog qhov hloov pauv loj yog tias kuv tau siv 12V 1A DC Adapter txuas rau L298N tus tsav tsheb. Koj tseem yuav tsis pom ib daim ntawv qhia zaub mov.
- D8 ntawm WeMos D1 Mini> IN1 ntawm L298N
- D7 ntawm WeMos D1 Mini> IN2 ntawm L298N
- D6 ntawm WeMos D1 Mini> IN3 ntawm L298N
- D5 ntawm WeMos D1 Mini> IN4 ntawm L298N
- 5V ntawm WeMos D1 Mini> 5V ntawm L298N
- GND ntawm WeMos D1 Mini> GND ntawm L298N> GND ntawm 12V 1A DC Fais fab mov
Nco tseg: NEMA17 stepper lub cev muaj zog uas kuv tau txais tus pin uas muaj xim-xim liab, Ntsuab, Xiav, thiab Dub. Txhawm rau txheeb xyuas qhov xaus ntawm ob coils tsuas yog txoj hauv kev zoo tshaj yog kov ob qho kawg thiab tig lub stepper ncej. Stepper lub cev muaj zog txav tau zoo yog tias cov xov hlau txuas tsis yog rau tib lub kauj, lub taub hau tsis tig txav yog tias lawv koom nrog ib lub kauj.
Hauv kuv qhov xwm txheej, Kuv tau txuas cov xov hlau raws li hauv qab no:
- Liab ntawm NEMA 17> Tawm 1 ntawm L298N
- Ntsuab ntawm NEMA 17> Tawm 2 ntawm L298N
- Xiav ntawm NEMA 17> Tawm 3 ntawm L298N
- Dub ntawm NEMA 17> Tawm 4 ntawm L298N
Kauj ruam 2: Kho Blynk ntawm Txawb
Cov ntawv tshuaj ntsuam txuas nrog yuav tsum muab cov nyeem ntawm kab lus no ib qib zuj zus txheej txheem txhawm rau teeb tsa ob lub khawm uas yuav pab tus neeg siv tig lub NEMA 17 Stepper Motor clockwise (lossis) rov qab mus. Yog tias ib tus neeg tsis tuaj yeem ua raws cov duab ntxig thiab ua tiav kev teeb tsa Blynk, lawv kuj tseem yuav nyeem tau los ntawm cov lus qhia hauv qab no:
- Qhib "Blynk" app ntawm koj lub xov tooj thiab xaiv "New Project".
- Sau Npe Lub Npe: "NEMA 17 Tswj" (Hauv qhov no), xaiv "WeMos D1mini" los ntawm cov npe "Ntaus". Tam sim no xaiv "Tsim" txhawm rau ua nrog cov kauj ruam tom ntej.
- Txheeb xyuas Email teeb tsa hauv "Blynk" app txhawm rau nrhiav "Kev Tso Cai Token" (Qhov no yuav muaj txiaj ntsig zoo thaum sau npe).
- Lub dashboard tshwm, tso cai rau peb mus txuas ntxiv cov kauj ruam tom ntej thiab peb lub hom phiaj tseem ceeb yuav yog ntxiv ob lub khawm.
- Kho cov nyees khawm kom haum rau qhov xav tau tsim (Kauj ruam yog nyob ntawm yeem). Hauv kuv qhov xwm txheej, kuv nthuav cov nyees khawm kom haum rau qhov dav ntawm lub dashboard.
- Teeb tsa thawj lub pob nrog cov ntawv "Qhib Sab laug" nrog "V0" ua tus pin tiag.
- Kho lub pob thib ob nrog cov ntawv "Qhib Txoj Cai" nrog "V1" ua tus pin tiag.
- Nkag mus rau cov ntawv qhia zaub mov tseem ceeb thiab nyem rau ntawm "Ua Si" khawm txhawm rau txheeb xyuas kev ua haujlwm ntawm daim ntawv thov thiab tswj hwm NEMA 17 lub cev muaj zog.
- NEMA 17 lub cev muaj zog tau ua haujlwm kom tig 10 zaug ntawm kev xaiv lub pob. Nws yuav tsis qhib thiab tua lub sijhawm koj thawb ib qho ntawm cov nyees khawm rau "Turn Right" (lossis) "Turn Left". Thov tso cai qee lub sijhawm rau NEMA17 kom nres thiab tom qab ntawv mus xyuas qhov ua haujlwm ntawm khawm thib ob.
Kauj Ruam 3: Txoj Cai.
Ua ntej rub tawm cov cai hauv qab no, nco ntsoov muab cov hauv qab no:
- Tso Cai Ntsiab Cai los ntawm Blynk
- SSID
- Passkey tso cai "WeMos Mini" nkag mus rau Wireless network & txuas nrog Internet
Kuj xaiv cov hauv qab no los ntawm Arduino IDE ntawv qhia zaub mov: Cov Cuab Yeej> Pawg Thawj Coj> ESP8266 Boards> LOLIN (WEMOS) D1 R2 & mini.
>> Pib ntawm Txoj Cai Snippet <<<
#suav nrog Stepper.h
#suav nrog ESP8266WiFi.h
#suav nrog BlynkSimpleEsp8266.h
#define BLYNK_PRINT Serial
Stepper kuv_Stepper (200, D8, D7, D6, D5);
bool Txoj cai = tsis tseeb;
bool Left = tsis tseeb;
char auth = "******************************************** ** "yog;
char ssid = "****************";
char pass = "****************************";
void teeb tsa () {
Serial.begin (9600);
Blynk.begin (auth, ssid, dhau);
my_Stepper.setSpeed (70);
}
BLYNK_WRITE (V1) {
Txoj cai = param.asInt ();
}
BLYNK_WRITE (V0) {
Sab laug = param.asInt ();
}
void Stepper1 (kev taw qhia, kev sib hloov) {
rau (int kuv = 0; kuv <Kev sib hloov; kuv ++) {
my_Stepper.step (Qhia * 200);
Blynk.run ();
}
}
void lub voj ()
{
Blynk.run ();
yog (Yog lawm) {
Stepper1 (1,10);
Serial.println ("Txoj cai tig");
}
ncua (20);
yog (Sab laug) {
Stepper1 (-1, 10);
Serial.println ("Sab laug tig");
}
ncua (20);
}
>> Qhov kawg ntawm Txoj Cai Snippet <<<
Nco tseg: Hauv cov cai saum toj no, thov tsis txhob nkag mus "" (ntau dua) hauv kab lus "suav nrog". Yog tias muaj teeb meem ntxiv nrog cov cai, koj kuj tseem tuaj yeem xa mus rau lub vijtsam uas suav nrog hauv kab lus no.
Kauj Ruam 4: Video Prototype Functionality
Txuas nrog yog cov vis dis aus uas yuav pab cov nyeem luv luv nkag siab tias daim ntawv ua haujlwm zoo li cas.
Pom zoo:
Yuav Ua Li Cas 4G LTE Ob Chav BiQuade Kav hlau txais xov Cov kauj ruam yooj yim: 3 kauj ruam
Yuav Ua Li Cas 4G LTE Ob Chav BiQuade Kav hlau txais xov Cov kauj ruam yooj yim: Feem ntau ntawm lub sijhawm kuv tau ntsib, Kuv tsis muaj lub teeb liab zoo rau kuv li kev ua haujlwm niaj hnub. Yog li Kuv tshawb nrhiav thiab sim ntau hom kav hlau txais xov tab sis tsis ua haujlwm. Tom qab nkim sijhawm kuv pom tus kav hlau txais xov uas kuv cia siab tias yuav ua thiab ntsuas, Vim tias nws yog lub hauv paus ntsiab lus tsis
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
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