Cov txheej txheem:

Servo Tswj Nrog NodeMCU thiab Blynk - hauv IOT Platform: 3 Kauj Ruam
Servo Tswj Nrog NodeMCU thiab Blynk - hauv IOT Platform: 3 Kauj Ruam

Video: Servo Tswj Nrog NodeMCU thiab Blynk - hauv IOT Platform: 3 Kauj Ruam

Video: Servo Tswj Nrog NodeMCU thiab Blynk - hauv IOT Platform: 3 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Servo Tswj Nrog NodeMCU thiab Blynk | hauv IOT Platform
Servo Tswj Nrog NodeMCU thiab Blynk | hauv IOT Platform

Hauv qhov kev qhia no koj tuaj yeem tswj hwm koj lub servo siv Blynk app hauv IOT Platform

Kauj ruam 1:

Duab
Duab

Hauv qhov kev qhia no koj tuaj yeem tswj hwm koj lub servo siv Blynk app hauv IOT Platform

Hauv qhov haujlwm no koj yuav tsum tau kho vajtse

1. Nodemcu

2. Servo

3.connection ware

Software

1. Ardunio

2. Blynk App

Qhov kev qhia no kuv faib ua 4 Tshooj

Ntu 1: NodeMCU rwb thaiv tsev nrog lub npe wifi thiab tus password

char ssid = "Koj lub npe WIFI";

char pass = "Password";

Piav qhia: suav nrog Lub tsev qiv ntawv Wifi thiab lub npe wifi thiab tus password uas koj tau siv los siv internet

Ntu 2: Blynk App Xaiv

#suav nrog

#define BLYNK_PRINT Serial

char auth = "yourAuthkey";

Piav qhia: suav nrog blynk app lub tsev qiv ntawv thiab rov ua dua koj tus lej tseem ceeb los ntawm koj gmail

Ntu 3: Kev ua haujlwm servo

#suav nrog servo.h

Servo tsav 1;

#define servo1Pin D2

Piav qhia: suav nrog lub tsev qiv ntawv servo thiab Tsim Servo thiab npe nws "servo1" thiab Txheeb NodeMCU tus pin txhawm rau txuas Servo

servo1.attach (servo1Pin);

Piav: NodeMCU (A0) los ntawm 0 txog 3.3V. Sab hauv, 10 khoom ADC (Analog-Digital converter) yuav tsim tus lej digital (txij 0 txog 1023),

servo1Angle = daim ntawv qhia (PotReading, 0, 1023, 0, 180);

Piav qhia: Peb yuav tsum "daim ntawv qhia" tus lej digital no, txhawm rau kom Pulse Width Modulated (PWM) digital output ntawm tus pin D2, yuav txawv ntawm 0 txog 180 (servo1Angle). thiab Nrog lub teeb liab no, servo yuav tig los ntawm 0 txog 180 degree, siv cov lus hais hauv qab no.

Kauj Ruam 2: Ntu 4: Tsim Blynk App los Tswj Cov Duab Ua Haujlwm

Ntu 4: Tsim Blynk App los Tswj Cov Duab Ua Haujlwm
Ntu 4: Tsim Blynk App los Tswj Cov Duab Ua Haujlwm
Ntu 4: Tsim Blynk App los Tswj Cov Duab Ua Haujlwm
Ntu 4: Tsim Blynk App los Tswj Cov Duab Ua Haujlwm
Ntu 4: Tsim Blynk App los Tswj Cov Duab Ua Haujlwm
Ntu 4: Tsim Blynk App los Tswj Cov Duab Ua Haujlwm

Downlode Code Nyem qhov no

1. Intoduction rau nodemcu8266 & Cov Kauj Ruam rau Ntshuam ESP Pawg Tsev Qiv Ntawv 2. NodeMCU8266 Basic Project-Blink a LED

3. NodeMCU8266 Digital Nyeem (Push Button)

4. Analog Cov ntaub ntawv nyeem siv NodeMcu8266

5. NodeMcu LED tswj Siv hauv Blynk app hauv IOT platform

6. NodeMcu rau DHT Interface hauv Blynk app | Ntawm IOT Platform

7. Txoj Kev Zoo Tshaj Plaws rau nodemcu gps tracker blynk app | hauv IOT platform

8. NodeMCU RGB LED | Rau cov pib tshiab

Pom zoo: