Cov txheej txheem:

ESP8266 WIFI AP Tswj Plaub Tus Neeg Hlau: 15 Kauj Ruam (nrog Duab)
ESP8266 WIFI AP Tswj Plaub Tus Neeg Hlau: 15 Kauj Ruam (nrog Duab)

Video: ESP8266 WIFI AP Tswj Plaub Tus Neeg Hlau: 15 Kauj Ruam (nrog Duab)

Video: ESP8266 WIFI AP Tswj Plaub Tus Neeg Hlau: 15 Kauj Ruam (nrog Duab)
Video: 03 ESP32 Wi-Fi and Web Server | Web Pages to Control LEDs over Wi-Fi in Access Point & Station Modes 2024, Kaum ib hlis
Anonim
Image
Image

Nov yog kev qhia ua 12 DOF lossis plaub ceg (plaub npaug) neeg hlau siv SG90 servo nrog servo tsav tsheb thiab nws tuaj yeem tswj tau siv WIFI Web server los ntawm lub browser browser

Tus nqi tag nrho rau txoj haujlwm no nyob ib puag ncig US $ 55 (Rau Cov Khoom Siv Hluav Taws Xob thiab Cov Khoom Siv Hlau Yas)

Kauj Ruam 1: Npaj Tus Qauv

Cov Hluav Taws Xob (Wemos D1 Mini)
Cov Hluav Taws Xob (Wemos D1 Mini)

Txhua yam khoom siv 3D tau rub tawm dawb @ www.myminifactory.com lossis www.thingiverse.com

Luam tawm nws siv cov khoom txhawb nqa rau qee feem xws li ko taw, Lub duav thiab pob tw

Cov npe ntawm cov ntawv luam tawm:

1x lub cev puag

1x Npog

1x Roj teeb tuav

4x Lub duav (hom A & B)

4x Thight (hom A & B)

4x Taw (hom A & B)

4x qab

12x Bushing + 12x 2mm ntsia hlau

Kauj Ruam 2: Sib dhos Cov Neeg Hlau

ua raws cov kauj ruam los ntawm kauj ruam yees duab saum toj no los sib dhos lub thav duab, cov ntsia hlau yog rau 2mm qhov loj

Kauj Ruam 3: Cov Khoom Siv Hluav Taws Xob (Wemos D1 Mini)

Image
Image

Muaj ntau qhov sib txawv ntawm NodeMCU hauv kev ua lag luam thiab ib txwm muaj cov haujlwm zoo ib yam, rau txoj haujlwm no kuv xaiv Wemos D1 Mini.

Qhov no yuav yog siv ua Lub Vev Xaib rau peb plaub npaug raws li Access Point.

Dab tsi koj xav tau tsuas yog txuas rau Quadruped AP thiab tswj hwm txhua qhov kev txav chaw ntawm koj tus neeg hlau, thiab tej zaum rau yav tom ntej txoj haujlwm nws yuav nthuav tawm txhua lub ntsuas hluav taws xob uas koj xav tau …

Qhov D1 mini no, yog lub rooj sib tham WIFI mini raws ESP-8266EX. thiab nws muaj 11 digital input/output pins, txhua tus pin tau cuam tshuam/pwm/I2C/ib-xaim txhawb (tshwj tsis yog D0) 1 analog input (3.3V max input) Micro USB txuas

Yuav pib li cas hauv:

  1. Nruab rau Arduino 1.6.7 los ntawm Arduino lub vev xaib.
  2. Pib rau Arduino thiab qhib Qhov Nyiam Qhov rai.
  3. rau hauv Ntxiv Tus Thawj Saib Xyuas Haujlwm URLs teb. Koj tuaj yeem ntxiv ntau qhov URL, cais lawv nrog tus lej.
  4. Qhib Cov Cuab Yeej → Pawg Thawj Coj: xxx Manager Tus Thawj Saib Xyuas Haujlwm thiab teeb tsa esp8266 los ntawm ESP8266 Zej Zos (thiab tsis txhob hnov qab xaiv koj li ESP8266 pawg thawj coj los ntawm Cov Cuab Yeej> Ntawv qhia zaub mov tom qab teeb tsa).

Yog xav paub ntau ntxiv koj tuaj yeem tshawb xyuas cov vis dis aus saum toj no

Nyem qhov no mus nrhiav hauv Aliexpress

Rau txoj haujlwm no txhua yam koj xav tau yog txuas tus Pin no:

  1. NodeMCU RX tus pin txuas rau Arduino Nano TX tus pin
  2. NodeMCU TX pin txuas rau Arduino Nano RX tus pin
  3. NodeMCU G tus pin txuas rau DC-DC mini 5v Stepdown (-) tus pin tso tawm
  4. NodeMCU5V tus pin txuas rau DC-DC mini 5v Stepdown (+) Tus pin tso tawm

PS: Rau Kev Ua Haujlwm ntawm lub rooj tsavxwm no koj yuav tsum txiav txhua tus pin txuas rau arduino thiab DC-DC nqis qis, txwv tsis pub koj yuav tau txais qhov yuam kev …

Kauj Ruam 4: Cov Khoom Siv Hluav Taws Xob (Arduino Nano)

Cov Khoom Siv Hluav Taws Xob (Arduino Nano)
Cov Khoom Siv Hluav Taws Xob (Arduino Nano)

Ib yam nrog NodeMCU, rau arduino board koj tuaj yeem siv txhua lub rooj tsavxwm uas haum rau koj zoo li Arduino Pro Mini, Arduino Nano lossis lwm yam.

Tab sis Rau txoj haujlwm no kuv xaiv Arduino Nano, vim tias tsis xav tau tus pin ntau kuv siv, nws me me thiab tsis xav tau FTDI rau program nws.

nyem qhov no mus tshawb hauv Aliexpress

Rau qhov haujlwm no kuv tsuas yog siv:

  1. Arduino nano RX tus pin txuas rau NodeMCU TX tus pin
  2. Arduino nano TX pin txuas rau NodeMCU RX tus pin
  3. Ardiono nano A4 tus pin txuas rau PCA9685 SDA tus pin
  4. Arduino nano A5 tus pin txuas rau PCA9685 SCL tus pin
  5. Arduino nano GND tus pin txuas rau DC-DC mini 5v Stepdown (-) Tus pin tso tawm
  6. Arduino nano 5V tus pin txuas rau DC-DC mini 5v Stepdown (+) Tus pin tso tawm

saib cov txheej txheem saum toj no kom paub meej ntxiv

PS: Rau Kev Ua Haujlwm ntawm pawg thawj coj no koj yuav tsum txiav txhua tus pin txuas rau NodeMCU thiab DC-DC nqis qis, txwv tsis pub koj yuav tau txais qhov yuam kev …

Kauj Ruam 5: Cov Khoom Siv Hluav Taws Xob (Ntauwd Pro 9g Micro Servo)

Cov Khoom Siv Hluav Taws Xob (Ntauwd Pro 9g Micro Servo)
Cov Khoom Siv Hluav Taws Xob (Ntauwd Pro 9g Micro Servo)

Qhov no yog qhov nrov tshaj plaws mini servo. Tsuas yog hnyav 9 grams thiab muab rau koj 1.5 kg/cm lub zog. Zoo nkauj muaj zog hais txog nws qhov loj me. Haum rau nqaj hom neeg hlau.

PS: Qhov kev pabcuam no tsuas tuaj yeem tig lub kaum sab xis 180 degree

Cov yam ntxwv tseem ceeb:

• Lub cev translucent

• Lub teeb yuag

• Tsawg suab nrov Specifications:

• Qhov ntev: 22.6 x 21.8 x 11.4 hli

• Cov xov hlau txuas ntev: 150 hli

• Kev ua haujlwm nrawm (4.8 V tsis muaj thauj khoom): 0.12 sec / 60 degrees

• Stall torque (4.8 V): 1.98 kg/cm

• Kub ntau: 30 txog 60 ° C (-22 txog 140 ℉)

• Tuag band dav: 4 usec

• Ua haujlwm voltage: 3.5 - 8.4 Volts

Nyem qhov no mus nrhiav SG90 servo hauv Aliexpress

Kauj Ruam 6: Cov Khoom Siv Hluav Taws Xob (16 -Channel 12 -ntsis PWM/Servo Driver - I2C Interface - PCA9685 rau Arduino)

Cov Khoom Siv Hluav Taws Xob (16 -Channel 12 -ntsis PWM/Servo Driver - I2C Interface - PCA9685 rau Arduino)
Cov Khoom Siv Hluav Taws Xob (16 -Channel 12 -ntsis PWM/Servo Driver - I2C Interface - PCA9685 rau Arduino)

Xav ua tus neeg hlau taug kev? tab sis siv tsuas yog microcontroller muaj tsawg tus lej PWM, thiab koj pom koj tus kheej khiav tawm! Tsis nrog Adafruit 16-Channel 12-ntsis PWM/Servo Driver-I2C interface. Nrog rau qhov pwm thiab servo tsav tsheb tawm, koj tuaj yeem tswj tau 16 qhov ua haujlwm PWM pub dawb nrog tsuas yog ob tus pin! Yuav tsum khiav ntau dua 16 PWM cov txiaj ntsig? Tsis muaj teeb meem. Ua ke ua ke txog 62 ntawm cov kev zoo nkauj no mus txog rau qhov ua tau zoo 992 PWM.

Lub rooj tsavxwm/nti siv I2C 7-chaw nyob nruab nrab ntawm 0x60-0x80, xaiv tau nrog jumpers Terminal block rau lub zog nkag (lossis koj tuaj yeem siv 0.1 "kev tawg ntawm sab) Rov qab tiv thaiv kev tiv thaiv ntawm lub dav hlau thaiv cov lus ntsuab Lub zog-zoo LED 3 tus pin txuas hauv pab pawg ntawm 4 yog li koj tuaj yeem ntsaws 16 servos ib zaug (Servo plugs tau me dua dav dua 0.1 "yog li koj tuaj yeem tsuas yog pawg 4 nyob ib sab ntawm ib leeg ntawm 0.1" header "Chain-tau" tsim Ib qho chaw rau qhov loj capacitor ntawm V+ kab (yog tias koj xav tau) 220 ohm series resistors ntawm txhua qhov kab tawm los tiv thaiv lawv, thiab ua kom tsav tsheb LEDs tsis tseem ceeb Solder jumpers rau 6 chaw nyob xaiv pins i2c-tswj PWM tsav tsheb nrog lub moos ua. Tsis zoo li TLC5940 tsev neeg, koj tsis tas yuav xa nws lub cim txuas rau koj lub microcontroller, nws ua haujlwm dawb kiag li! yog qhov zoo rau thaum koj xav tswj dawb lossis xiav L EDs nrog 3.4+ rau pem hauv ntej qhov hluav taws xob) 6 chaw nyob xaiv tus pin yog li koj tuaj yeem xaim mus txog 62 ntawm cov no ntawm ib lub tsheb npav i2c, tag nrho ntawm 992 tawm - uas yog ntau servos lossis LEDs Hloov kho zaus PWM txog li 1.6 KHz 12 -ntsis kev daws teeb meem rau txhua qhov tso tawm-rau servos, uas txhais tau hais tias txog 4us kev daws teeb meem ntawm 60Hz hloov tshiab tus nqi kho tau rub-rub lossis qhib-ntws tso zis tso zis tus pin kom sai sai tag nrho cov txiaj ntsig.

nyem qhov no mus tshawb hauv Aliexpress

Hauv txoj haujlwm no peb tsuas xav tau 12 CH rau txhua ceg (3CH ib ceg), txuas rau PCA9685 tus pin rau Arduino Nano:

  1. PCA9685 VCC mus rau DC-DC mini 5v Stepdown (+) Pin pin tawm
  2. PCA9685 GND rau DC-DC mini 5v Stepdown (-) tus pin tso tawm
  3. PCA9685 Servo (PWM) lub zog V+ rau UBEC (+) Tus pin tso tawm
  4. PCA9685 Servo (PWM) zog GND rau UBEC (-) Tus pin tso tawm
  5. PCA9685 SDA pinto rau arduino nano A4 tus pin
  6. PCA9685 SCL tus pin rau arduino nano A5 tus pin
  7. PCA9685 CH0 mus rau Sab Pem Hauv Ntej Txoj Cai, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  8. PCA9685 CH1 mus rau Pem Hauv Ntej Txoj Cai, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, liab, xim av/dub)
  9. PCA9685 CH2 mus rau Pem Hauv Ntej Txoj Cai, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  10. PCA9685 CH4 mus rau Sab Nraud Txoj Cai, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  11. PCA9685 CH5 mus rau Txoj Cai Ncaj Ncees Rov Qab, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  12. PCA9685 CH6 mus rau Sab Nrauv Sab Hauv Qab, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  13. PCA9685 CH8 rau Sab Pem Hauv Ntej Sab Nraud, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  14. PCA9685 CH9 mus rau Pem Hauv Ntej Sab laug, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  15. PCA9685 CH10 mus rau Pem Hauv Ntej Sab Hauv Qab, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  16. PCA9685 CH12 mus rau Sab Nrauv Sab Nrauv Sab Nraud, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  17. PCA9685 CH13 mus rau Sab Nrauv Sab Qab Teb, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)
  18. PCA9685 CH14 mus rau Sab Nrauv Sab Hauv Qab, thov sib phim cov xim cable rau PCA9685 lub qhov (xim daj, Liab, Xim av/Dub)

PS: Qee lub PCA9685 tsis muaj lub cim xim xim, yog li ua kom ntseeg tau tias Cov kab daj los ntawm SG90 servo mus rau PWM cov ntaub ntawv tus pin, Liab txuas mus rau V+ tus pin, thiab Dub/Xim av mus rau GND tus pin

Kauj Ruam 7: PWM rau Servo Pin Txuas

PWM to Servo Pin Connection
PWM to Servo Pin Connection
PWM to Servo Pin Connection
PWM to Servo Pin Connection

Nyem thiab nthuav daim duab saum toj no kom pom tus pin qhia ntawm PCA9685 thiab servos

PS: U tsuas yog siv 12CH los ntawm 16 CH rau txoj haujlwm no, yog li koj tseem muaj 4CH sab laug rau kev nthuav dav xws li tso radar servo lossis tso qee qhov nerf blaster riam phom rau nws … Tsuas yog tso cov lej ntxiv hauv arduino thiab NodeMCU

Kauj Ruam 8: Cov Khoom Siv Hluav Taws Xob (UBEC)

Cov Khoom Siv Hluav Taws Xob (UBEC)
Cov Khoom Siv Hluav Taws Xob (UBEC)

3A-UBEC yog tus hloov pauv DC-DC tus tswj hwm muab nrog 2-6 cell lithium roj teeb pob (lossis 5-18 cells NiMh /NiCd roj teeb) thiab nws tso tawm qhov hluav taws xob zoo ib yam rau koj tus txais, gyro thiab servos. Nws yog qhov tsim nyog rau RC qhov siab. Piv nrog rau hom kab UBEC, kev ua haujlwm tag nrho ntawm kev hloov pauv hom UBEC yog siab dua.

Hauv txoj haujlwm no peb siv nws los ua kom muaj zog rau txhua qhov kev pabcuam, nws tau lim dej kom nws thiaj li txo tau cov suab nrov uas tuaj yeem ua rau lub cev tsis zoo thiab nws muaj Amp siab uas txaus los txhawb nqa lub neeg hlau.

nyem qhov no mus tshawb hauv Aliexpress

Tus pin txuas:

  1. UBEC (+) RED Output pin tawm rau PCA9685 Servo (PWM) zog V+
  2. UBEC (-) BLACK Output pin tawm rau PCA9685 Servo (PWM) zog GND
  3. UBEC (+) RED Cov tswv yim rau lub roj teeb (+) tus pin
  4. UBEC (-) BLACK cov tswv yim rau tus pin hloov

Kauj Ruam 9: Cov Khoom Siv Hluav Taws Xob (DC-DC Mini Stepdown)

Cov Khoom Siv Hluav Taws Xob (DC-DC Mini Stepdown)
Cov Khoom Siv Hluav Taws Xob (DC-DC Mini Stepdown)
Cov Khoom Siv Hluav Taws Xob (DC-DC Mini Stepdown)
Cov Khoom Siv Hluav Taws Xob (DC-DC Mini Stepdown)

Nws yuav luag muaj qhov ua haujlwm zoo ib yam nrog UBEC, tab sis qhov no tsuas yog yooj yim DC-DC nqis nqis module. Nws muaj lub ntsuas ntsuas potensio uas peb tuaj yeem kho V (+) cov zis los ntawm 1V txog 17V thiab tsis muaj lim.

nyem qhov no mus tshawb nrhiav nws ntawm Aliexpress

PS: yog li nco ntsoov, ua ntej koj siv nws thov hloov V (+) tawm rau 5V tso tawm siv DC Volt meter

Tus pin txuas:

  1. Mini stepdown (+) IN rau (+) Roj teeb
  2. Mini stepdown (-) IN rau tus pin hloov
  3. Mini stepdown (+) OUT in parallel to the NodeMCU (5V), Arduino nano (5V) and PCA9685 (VCC) pin
  4. Mini stepdown (-) OUT in parallel to the NodeMCU (G), Arduino nano (GND) and PCA9685 (GND) pin

Kauj Ruam 10: Lwm Qhov Hauv Hauv

Lwm Cov Hluav Taws Xob
Lwm Cov Hluav Taws Xob
Lwm Cov Hluav Taws Xob
Lwm Cov Hluav Taws Xob
Lwm Cov Hluav Taws Xob
Lwm Cov Hluav Taws Xob

Dab tsi koj xav tau yog nyob ib puag ncig (20 cable lossis tsawg dua) poj niam rau poj niam jumper hlau (Aliexpress Jumper hlau tshawb nrhiav)

Xauv tus kheej laub hloov lossis koj tuaj yeem siv lwm hom kev hloov pauv (Aliexpress Tus kheej ntsuas qhov ntsuas hloov mus)

thiab ib khub JST txuas los ntawm roj teeb hloov thiab UBEC/DC-DC nqis nqis (Aliexpress JST Txuas Txuas txuas)

Kauj Ruam 11: Lub Hwj Huam Fais Fab

Hwj chim Source
Hwj chim Source
Hwj chim Source
Hwj chim Source

Muaj ntau lub zog siv uas koj tuaj yeem siv tau, rau kuv kuv nyiam siv cov roj teeb lipo 3S rov ua dua. Nws muaj 11, 1 Volt Tam sim no thiab 500mAh lossis muaj peev xwm ntau dua (tsis ntau heev yog li nws tuaj yeem sib zog).

Tab sis siv 3S lipo xav tau lub roj teeb thiab nws tsis pheej yig, yog li … koj tuaj yeem siv lwm lub zog siv xws li roj teeb AAA, koj tuaj yeem siv roj teeb 6 AAA yog li nws tuaj yeem tsim tau ib puag ncig 9V lub zog thiab kuv xav tias lub zog txaus rau tus neeg hlau no.

Nyem qhov no los tshawb nrhiav Lipo 3S roj teeb hauv Aliexpress

Nyem qhov no los tshawb nrhiav Lipo Charger

Nyem qhov no mus tshawb nrhiav 6xAAA lub roj teeb tuav hauv Aliexpress

Kauj Ruam 12: Daim Duab Hlau

Daim Duab Hlau
Daim Duab Hlau

Nyem thiab nthuav daim duab saum toj no kom pom txhua daim duab hlau rau qhov haujlwm no

PS: koj xav tau qee qhov soldering hauv qee qhov thiab muab lub taub hau roj hmab ntsaws rau muab nws txuas rau kev sib txuas ntawm lub zog hloov pauv, UBEC thiab DC-DC nqis qis.

Kauj Ruam 13: Coding thiab Thawj Pose

Coding thiab Thawj Pose
Coding thiab Thawj Pose

Txuas lub arduino nano siv mini USB rau USB chaw nres nkoj cable (tab sis tsis txhob hnov qab txuas txhua tus pin rau wemos D1 mini thiab DC-DC stepdown) thiab Qhib "kab laug sab_driver_open_v3_ESP8266_Rev280918.ino" thiab nyem nws mus rau Arduino nano, tab sis txhob ' t tsis txhob hnov qab xaiv lub arduino board rau Arduino nano thiab xaiv qhov chaw nres nkoj raug.

Tom ntej no txuas Wemos D1 mini rau lub khoos phis tawj siv micro USB rau USB (tseem tsis txhob hnov qab txiav txhua tus pin rau DC-DC stepdown thiab Arduino nano). Tshaj li qhib "QuadrupetV2_310319_fix_connection_issue.ino" thiab nyem nws rau hauv pawg thawj coj, tab sis ua ntej uas tsis xaiv lub rooj tsavxwm raug thiab nyiam qhov chaw nres nkoj raug (xav paub ntau ntxiv thov rov qab mus rau kauj ruam 3)

Tom qab txhua qhov ua tiav koj tuaj yeem rov txuas dua txhua tus pin rau ntawm arduino nano, wemos D1 mini thiab DC-DC stepdown thiab txhawb nqa tus neeg hlau los kho qhov pib ua raug.

QHOV TSEEB QHIA (Saib daim duab saum toj no) kho txhua ceg kom ze li sai tau rau daim duab saum toj no.

Tom qab koj ua lub zog rau neeg hlau, yog tias txoj haujlwm ceg tsis zoo ib yam nrog daim duab saum toj no txhua yam koj xav tau yog:

  1. unscrew Servo Horn thiab tshem tawm lub tshuab raj horn los ntawm servo.
  2. tig ob txhais ceg kom txog thaum ze txaus nrog thawj zaug ua
  3. rov txuas lub servo horn thiab tsim nws dua
  4. ua nws rau txhua qhov kev sib tw uas ploj lawm

PS:

  1. QuadrupetV2_310419_fix_connection_issue.ino twb tau kho qee qhov teeb meem zoo li nyuaj rau txuas (wifi) thiab lub vev xaib ua tsis tiav, rau leej twg nyem qhov haujlwm qub ua ntej 31-3-2019 thov rub nws dua
  2. muaj qee lub tsev qiv ntawv ntxiv xav tau los teeb tsa (luam nws mus rau lub tsev qiv ntawv nplaub tshev)

    • github.com/wimleers/flexitimer2
    • github.com/adafruit/Adafruit-PWM-Servo-Dri…
    • github.com/kroimon/Arduino-SerialCommand

Kauj Ruam 14: Tswj Tus Neeg Hlau

Tswj Cov Neeg Hlau
Tswj Cov Neeg Hlau

Vim tias tus neeg hlau no dhau los ua WIFI Access Point yog li txhua yam koj xav tau yog:

  1. Txhim kho tus neeg hlau
  2. Qhib wifi teeb tsa ntawm koj lub smartphone
  3. Txuas rau SpiderRobo Access Point nrog tus password yog "12345678"
  4. Qhib lub web browser ntawm koj lub smartphone thiab ntaus

Tam sim no koj tus Neeg Hlau tau npaj los ua koj cov lus txib …

Kauj Ruam 15: Rau Leej Twg Muaj Teeb Meem Nrog Qhib Lub Vev Xaib lossis Txuas Rau AP

Kuv Tau Kho Qhov Teeb Meem no Thov rub tawm nws dua ntawm KAUJ RUAM 13 Saum toj no (kho @ 31-4-2019)

qee qhov Wemos D1 mini clone muaj qhov tsis zoo lossis tsis zoo ESP, thiab nws ua rau:- Nyuaj txuas rau AP

- Ua tsis tau qhib nplooj ntawv

- Chaw thau khoom tsis tiav

Yog xav paub ntau ntxiv saib kuv cov vis dis aus saum toj no…

Pom zoo: