Cov txheej txheem:
- Kauj Ruam 1: TB6612FNG Dual H Choj
- Kauj ruam 2: GPIO Pins
- Kauj ruam 3: Vin
- Kauj Ruam 4: HC-SR04 Sonar Sensors
- Kauj Ruam 5: Tri-Xim LED
- Kauj Ruam 6: I2C Breakout
- Kauj Ruam 7: Cov Nqi Khoom
- Kauj Ruam 8: Sau Txhua Qhov
Video: ESP32 Dual H Choj Breakout Board: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Txoj haujlwm no yog rau ESP32 Breakout board uas tau tsim los ua lub hlwb ntawm koj cov neeg hlau tom ntej. Cov yam ntxwv ntawm pawg thawj coj no yog;
- Muaj peev xwm haum rau ib qho khoom siv ESP32 dev uas muaj ob kab ntawm txog nees nkaum tus pin ntawm ib lub chaw nruab nrab.
- Ib qho chaw rau teeb tsa TB6612FNG dual H choj DC lub cev muaj zog tswj tus ntxhais lub rooj tsavxwm.
- Ob lub ntsia hlau dav hlau thaiv rau txhua lub cav txuas.
- Ob lub ntsia hlau davhlau ya nyob twg thaiv thiab teeb ntawm tsib lub taub hau rau Vin & Gnd
- Ob kab ntawm nees nkaum GPIO breakout pins.
- Lub taub hau rau ob HC-SR04 Sonar sensors, nrog qhov faib hluav taws xob ntawm Echo tso tawm.
- Lub taub hau rau txuas rau xim peb xim, ib qho anode, LED nrog txwv kev tiv thaiv.
- Ntawm lub rooj tsavxwm 5V, 1A tus tswj hluav taws xob nrog tsib lub taub hau rau 5V & Gnd.
- Plaub teeb ntawm lub taub hau rau I2C txuas nrog 3.3V & Gnd rau txhua qhov txuas.
- Tag nrho cov khoom sib txuas ntawm ib sab ntawm lub rooj tsav xwm hauv Circuit Court.
Lub cev loj ntawm lub rooj tsavxwm yog 90mm x 56mm, ob sab. Qhov no tso nws zoo nyob rau hauv 100mm x 100mm qhov txwv me me rau feem ntau pawg thawj coj saib xyuas tus nqi qis.
Txhua cov ntaub ntawv xav tau los ua ib qho ntawm cov laug cam no tuaj yeem pom ntawm github ntawm no.
Lub rooj tsavxwm tau tsim nyob ib puag ncig DOIT ESP32 DEVKIT V1 uas muaj ob kab ntawm kaum kaum tus pin txhua. Yooj yim txiav cov kab ntawm sab nraum qab ntawm lub rooj tsav xwm tso cai rau koj cais qhov tshwj xeeb 5V, Gnd thiab 3.3V tus pin los ntawm lawv cov tsheb npav. Tom qab ntawd koj tuaj yeem siv tus pin hauv cov chaw no ua GPIO thiab siv cov dhia, txuas 5V, Gnd thiab 3.3V cov npav mus rau tus pin tsim nyog ntawm ESP32 dev cov khoom siv uas koj siv.
Ob kab ntawm nees nkaum qhov tau muab rau kev teeb tsa ESP dev cov khoom siv. Kuv pom zoo tias koj yuav poj niam lub qhov (socket) strips thiab muab lawv tso rau hauv lub qhov. Txoj kev no koj tuaj yeem tshem ESP32 dev cov khoom siv thiab hloov nws nrog lwm lub sijhawm. Tsis tas li, siv cov kab hluav taws xob ntsaws muab ntau qhov kev tshem tawm rau cov khoom siv hauv qab cov khoom siv dev. Kuv nyiam yuav plaub caug tus pin header thiab cov hlua ntsaws thiab tom qab ntawd txiav lawv kom loj me. Qhov no pab txo tus nqi. Koj tsis tuaj yeem txiav cov poj niam lub qhov (socket) ntawm ob lub qhov, koj yuav tsum 'hlawv' lub qhov (socket) kom txiav lawv. Hauv lwm lo lus, plaub caug tus pin poj niam lub qhov (socket) tsis tuaj yeem txiav ua ob daim nees nkaum kab. Plaub caug tus pin poj niam lub qhov (socket) tuaj yeem raug txiav rau hauv nees nkaum tus lej thiab ib tus lej kaum cuaj tus lej.
Kauj Ruam 1: TB6612FNG Dual H Choj
TB6612FNG yog ob tus choj H, tus tswj lub cev muaj peev xwm uas tuaj yeem tsav ib lub cav lossis ob lub zog DC nyiam ua haujlwm (tsis yog lub cav tsis txhuam). Nws yog qhov zoo rau kev tsav tsheb me me, pheej yig, lub cev muaj zog uas npaj tau yooj yim. Pawg neeg tawg rog muaj qhov chaw rau teeb tsa tus ntxhais uas muaj TB6612FNG. Lub rooj tsav xwm TB6612FNG uas kuv xaiv los siv muaj los ntawm ntau qhov chaw; Sparkfun (p/n ROB-14451, Mouser thiab Digikey kuj muag Sparkfun board), Pololu (p/n 713), EBay, Aliexpress thiab Gearbest. Cov nqi sib txawv los ntawm kwv yees li ib duas las txog tsib daus las.
Txhua tus tsav tsheb DC siv peb tus GPIO tus pin. Ob tus GPIO pins txiav txim siab lub cev muaj zog; pem hauv ntej, thim rov qab, ntug dej hiav txwv thiab nres. Qhov thib peb GPIO tus pin yog PWM los tswj lub cav kom nrawm. Xya tus GPIO tus pin tsav tus STBY tus pin. Cov teeb liab tswj hwm rau TB6612FNG yog cov xaim hluav taws xob rau ESP32 GPIO breakout pins. Cov GPIO pins twg tau siv yog txiav txim siab los ntawm qhov tsw ntawm ESP32 Dev Kit uas koj siv. Cov xaim xaim xaim tau ua tib zoo xaiv kom lawv yuav tsum ua ke nrog GPIO PWM thiab Cov ntawv tso tawm ntawm feem ntau ESP32 Dev Cov Khoom.
Cov motors tau txuas nrog siv ob, ob tus pin ntsia hlau dav hlau thaiv cov ntawv cim Motor A thiab Motor B. Ib ntawm txhua sab ntawm pawg thawj coj tawg. Lub zog rau lub cav tau nqa los ntawm ob tus pin ntsia hlau dav hlau thaiv lossis txheej ntawm txiv neej lub taub hau ntawm ib kawg ntawm pawg thawj coj tawg, sau tias Vin. Vin tuaj yeem yog DC qhov hluav taws xob los ntawm 6V txog 12V. 5V, 1A tus tswj hluav taws xob hloov pauv Vin voltage rau 5V txhawm rau siv lub zog Sonar.
DOIT Dev KIT los ntawm ob qhov loj me, 30 tus pin (15 ntawm ib sab) thiab 36 tus pin (18 ntawm ib sab). Kuv tau teev cov kev sib txuas rau ob qho khoom siv dev hauv qab no.
30 tus pin dev cov khoom siv - 36 tus pin dev cov khoom siv
AIN1 - 25 - 14 - kev taw qhia tswj rau lub cav A.
AIN2 - 26 - 12 - kev taw qhia tswj rau lub cav A.
PWMA - 27 - 13 - kev tswj nrawm rau lub cev A.
STBY - 33 - 27 - nres ob lub cav
BIN1 - 16 - 15 - kev taw qhia tswj rau lub cav B
BIN2 - 17 - 2 - kev taw qhia tswj rau lub cav B
PWMB - 5 - 4 - kev tswj ceev rau lub cav B.
Kauj ruam 2: GPIO Pins
Lub rooj tsavxwm muaj ob pawg ntawm nees nkaum tus pin headers rau GPIO breakout. Txhua txheej ntawm GPIO lub taub hau suav nrog nees nkaum tus pin rau 3.3V thiab nees nkaum tus pin rau Gnd. 3.3V tus pin nyob nruab nrab ntawm GPIO pins thiab Gnd pins. Qhov teeb tsa no txo qhov ua tau tias qee yam tshuab tuaj yog tias nws tau ntsaws rov qab. Yuav luag txhua yam uas koj xav txuas rau GPIO tus pin yuav tsum yog 3.3V lossis Gnd txuas lossis ob qho tib si. Kev teeb tsa peb kab txhais tau tias koj ib txwm muaj lub zog thiab Gnd tus pin rau txhua qhov txuas.
Yog tias koj siv ESP32 dev cov khoom siv dua li DOIT Dev Kit nws yuav muaj Vin, 3.3V thiab Gnd pins hauv qhov chaw sib txawv ntawm DOIT Dev Kit. Lub rooj tsav xwm tawg tau yooj yim txiav cov kab ntawm sab nraub qaum uas tuaj yeem txiav kom cais cov Vin, 3.3V thiab Gnd pins los ntawm cov tsheb npav. Koj tuaj yeem siv cov xov txuas txuas txuas Vin, 3.3V thiab Gnd pins ntawm koj li ESP32 Dev Kit rau cov tsheb npav kom raug. 3.3V tus pin tuaj yeem txuas nrog siv tus qauv ob tus pin luv ntsaws. Txog Gnd tus pin txuas, Kuv tau tsim ob peb tus neeg dhia siv peb tus pin DuPont lub plhaub, ob tus poj niam ntswj tus pin thiab cov xov luv. Tom qab crimping tus poj niam tus pin rau txhua qhov kawg ntawm xaim, Kuv tso lawv rau hauv qhov kawg ntawm peb lub plhaub tus pin.
Yog tias koj puas xav rov txuas qhov xwm txheej uas koj tau txiav, txhua tus muaj txheej los ntawm qhov. Koj tuaj yeem tuaj yeem txuas tus U zoo li tus jumper hlau hauv lub qhov lossis ntxiv ob tus pin lub taub hau thiab siv tus qauv ob tus pin luv ntsaws txhawm rau tshem tawm jumper.
Ib lo lus ceeb toom. Tus tswj hwm 3.3V ntawm ESP32 dev cov khoom siv tau siv los muab 3.3V rau ESP32 thiab lwm yam khoom siv uas koj txuas rau 3.3V npav. Tus tswj hwm muaj qhov txwv 1A. Qhov siab dua Vin qhov hluav taws xob thiab qhov tam sim no ntau dua koj kos yuav ua rau tus tswj hwm kom sov. Nco ntsoov qhov no thaum sim tsav cov cuab yeej siv siab tam sim no zoo li cov kab hluav taws xob LED lossis servo motors nrog 3.3V. Ob peb lub cuab yeej I2C zoo li gyros, nrawm thiab hloov pauv ADC yuav tsum tsis muaj teeb meem.
Kauj ruam 3: Vin
Vin yog qhov hluav taws xob nkag rau lub cav thiab tus tswj hwm 5V. Vin tuaj yeem yog qhov hluav taws xob los ntawm 5V txog 12V. Yog tias koj siv 5V rau Vin qhov hluav taws xob tso tawm ntawm lub rooj tsav xwm 5V tus tswj hwm yuav tsis yog 5V. Qhov no yog vim 5V tus tswj hwm yuav tsum muaj qhov hluav taws xob siab dua 5V los tswj hwm rau 5V.
Lub Vin kuj tseem siv ua qhov hluav taws xob nkag mus rau 3.3V tus tswj hwm ntawm ESP32 dev cov khoom siv.
ESP dev cov khoom siv tsim qauv muaj lub diode cais cov USB qhov hluav taws xob los ntawm qhov hluav taws xob ntawm Vin tus pin ntawm cov khoom siv dev. Lub diode ua kom ntseeg tau tias Vin qhov hluav taws xob tsis sim tsav lub USB voltage thiab tias USB-rau-Serial choj nti ntawm ESP32 dev cov khoom siv tsuas yog siv los ntawm USB qhov hluav taws xob. Qhov no txhais tau tias koj muaj kev nyab xeeb los txuas lub zog hluav taws xob siab dua 5V rau Vin ntawm pawg thawj coj tawg thiab siv USB txuas tib lub sijhawm, yam tsis ntshai kev puas tsuaj. Tus tswj hwm qhov hluav taws xob ntawm ESP32 dev cov khoom siv yog nyob hauv tib tsev neeg zoo ib yam li cov ntsuas hluav taws xob siv ntawm pawg tswj hwm pawg. Qhov no txhais tau tias lawv tuaj yeem ua haujlwm zoo ib yam ntawm cov khoom siv hluav taws xob.
Txuas lub roj teeb pob uas tsav lub cav mus rau Vin lub davhlau ya nyob twg thiab nws tseem yuav ua kom lub zog ESP32 thiab lwm yam khoom siv uas koj tau txuas nrog.
Kauj Ruam 4: HC-SR04 Sonar Sensors
Ob plaub tus pin headers tau muab rau kev txuas ntawm qhov nrov HC-SR04 Sonar sensor. Lub taub hau yog nyob ntawm ob sab sab nraud ntawm pawg thawj coj tawg, nyob ze ntawm lub cav ntsia hlau dav hlau thaiv. Lub taub hau tau teeb tsa rau ib-rau-ib qhov txuas nrog HC-SR04.
HC-SR04 yog 5V ntaus ntawv. Nws tau siv los ntawm 5V thiab nws cov zis (Echo) teeb liab nyob ntawm 5V qib. ESP32 muaj 3.3V GPIO thiab tsis yog 5V ntau dua. Yog li koj xav tau qee yam ntawm qhov ntsuas hluav taws xob hloov pauv kom coj 5V cov zis ntawm HC-SR04 nqis mus rau 3.3V qib ntawm ESP32. Lub rooj sibtham tawm muaj qhov faib hluav taws xob yooj yim rau txhua qhov ntawm HC-SR04 Echo teeb liab kom ua tiav kev hloov pauv. Tsis muaj kev hloov pauv qib yuav tsum tau ua rau tus ESP32 GPIO tus pin txhawm rau tsav Trig teeb liab ntawm HC-SR04.
Plaub tus pin header rau HC-SR04 muab 5V thiab Gnd txuas rau lub ntsuas. 5V yog muab los ntawm 5V tus tswj hwm ntawm pawg thawj coj saib xyuas.
Thaum plaub tus pin header tau muab txuas rau HC-SRO4, ob tus pin header tau muab los txuas Echo thiab Trig cov cim ntawm HC-SR04 rau ESP32. Txoj kev no koj tuaj yeem xaiv qhov GPIO pins siv. Siv cov poj niam-rau-poj niam jumper xov hlau los sib txuas. T yog Trig input thiab E yog qib hluav taws xob hloov pauv Echo cov teeb liab tso tawm.
Nws yuav tsum muaj peev xwm siv HC-SR04 lub taub hau txuas rau qee qhov 5V sensor. Txuas qhov tso tawm ntawm 5V lub ntsuas hluav taws xob mus rau Echo input thiab siv qhov faib hluav taws xob los hloov nws mus rau 3.3V teeb liab. Tus faib hluav taws xob yuav tswj cov cim uas muaj kev hloov pauv qeeb. Rau kev hloov pauv nrawm koj yuav tsum siv tus ntsuas hluav taws xob nquag hloov pauv. Yog tias koj txuas lub teeb liab sib piv rau qhov faib hluav taws xob thiab tom qab ntawd mus rau cov lus qhia sib piv ntawm ESP32, koj yuav tsum coj mus rau hauv tus account tias qhov viav vias hluav taws xob yuav xoom rau 3.3V, tsis xoom rau 5V thaum suav cov volts-ib-suav.
Piv txwv li, koj tuaj yeem xaim Vishay TSOP34838 IR sensor mus rau 5V, Gnd thiab Echo pins ntawm HC-SR04 header (Echo tau xaim rau tus pin tso tawm ntawm lub sensor). Tom qab ntawd koj yuav tsum tuaj yeem tau txais IR cov lus txib los ntawm ib qho IR chaw taws teeb uas siv 38KHz tus nqa khoom.
Kauj Ruam 5: Tri-Xim LED
Tri-xim LED yog 5 hli, ib qho anode, los ntawm qhov, RGB LED. Tam sim no txwv cov resistors tau muab thiab cov anode sib txuas yog txuas rau 3.3V npav. Peb tus pin header sau ua RGB tau muab rau siv LED. Lub teeb liab qib qis ntawm ib qho ntawm RGB pins yuav teeb lub LED nrog cov xim ntawd. Tsav ntau RGB cov tswv yim nyob rau tib lub sijhawm yuav ua rau ntau lub teeb pom kev zoo nrog cov xim sib xyaw ua ke. Koj tuaj yeem siv poj niam-rau-poj niam dhia kom txuas RGB header pins rau GPIO pins ntawm koj xaiv. Yog tias koj xaim lub LED mus rau GPIO tus pin uas muaj PWM muaj peev xwm ces koj tuaj yeem hloov qhov ci ntawm LED los ntawm kev sib txawv PWM lub sijhawm tsawg. Kuv nyiam siv cov LEDs los pab kuv debug tus lej kuv tab tom ua haujlwm.
Kauj Ruam 6: I2C Breakout
Lub rooj sibtham tawg tawm muaj plaub kab ntawm kab taub hau rau I2C interface. Ob ntawm kab yog plaub tus pin thiab yog 3.3V thiab Gnd. Lwm ob kab yog tsib tus pin txhua tus thiab yog rau SDA thiab SCL. Tus pin ntxiv hauv txhua kab no yog li koj tuaj yeem siv ob tus poj niam-rau-poj niam jumper cables txuas cov kab mus rau GPIO pins ntawm koj xaiv. ESP32 tuaj yeem muaj SDA thiab SCL cov cim ntawm ob peb ntawm GPIO pins. Mus txog plaub 3.3V, I2C cov cuab yeej tuaj yeem txuas nrog thiab siv tau yam tsis siv lub tshuab daisy txuas txuas. Tsis muaj cov rub tawm ntawm SDA thiab SCL cov cim ntawm pawg thawj coj tawm. Cov neeg tawm tsam rub tawm yuav tsum yog ntawm cov cuab yeej uas koj txuas rau I2C npav.
Nco tseg: Rau cov neeg uas tsis tau paub dua nrog I2C, rub tawm cov neeg tawm tsam yuav tsum tau ua vim SDA thiab SCL pins tau qhib qhov dej ntws, peb-lub xeev, ob txoj kab taw qhia. Tus nqi ntawm cov neeg tawm tsam rub cuam tshuam rau tus nqi tua thiab nrov ntawm lub npav.
Kauj Ruam 7: Cov Nqi Khoom
Txhua tus tiv thaiv yog SMT 1206.
Txhua lub capacitors yog SMT, rooj A, EIA 3216.
Txhua lub taub hau thiab cov hlua ntsawb yog 0.1 nti (2.54mm) suab.
6 - nees nkaum tus txiv neej lub taub hau
6 - tsib tus pin txiv neej lub taub hau
4 - plaub tus pin txiv neej lub taub hau
1 - peb tus pin txiv neej lub taub hau
2 - ob tus pin txiv neej lub taub hau
2 - nees nkaum tus pin poj niam lub qhov (socket)
1 - TB6612FNG pawg thawj coj, los nrog ob, yim tus pin txiv neej lub taub hau
3 - 10uf Tantalum capacitors
1 - 10K resistor
2 - 2.2K resistors
5 - 1K resistors
1 - AMS1117, 5V
1 - 5mm, ib qho anode RGB LED
3 - 3 hli suab, ob tus pin, cov ntsia hlau txuas
Yeem yeem
3 - ob tus pin txiv neej lub taub hau - rau txuas txuas txiav Vin, 3.3V thiab Gnd cov cim
Kauj Ruam 8: Sau Txhua Qhov
Qhov no yog qhov muaj txiaj ntsig zoo heev ESP32 pawg thawj coj tawm nrog rau cov yam ntxwv zoo tshaj plaws xav tau los ntawm cov neeg hlau yooj yim ua rau hauv pawg thawj coj tawg.
Lub rooj sib tsoo tawg tsis txwv rau ESP32 dev cov khoom siv. Ib lub rooj tswj hwm microcontroller uas muaj ob kab ntawm txog nees nkaum tus pin ntawm ib nti nrug tuaj yeem siv tau. ESP8266 lossis LPC1768 pawg thawj coj yuav haum. Koj tuaj yeem sib dhos lub rooj tsavxwm yam tsis muaj TB6612FNG tus ntxhais lub rooj tsavxwm thiab siv los rhuav tshem tsuas yog GPIO. Pawg thawj coj muab kev xaiv ntau rau koj tias yuav siv nws li cas.
Yog tias koj muaj qee cov laug cam no ua, tsis txhob tshem 'Macedon Engineering' lub npe los ntawm cov laug cam. Koj tuaj yeem siv cov laug cam no dawb rau ib daim ntawv thov uas tsis yog lag luam. Yog tias koj ua thiab siv lub rooj tsavxwm Kuv yuav txaus siab rau qhov qw tawm ntawm qhov koj tau siv rau. Kuv vam tias koj pom lub rooj tsavxwm muaj txiaj ntsig.
Pom zoo:
KaKu Choj (Klik-aan Klik-uit): 4 Kauj Ruam
KaKu Choj (Klik-aan Klik-uit): Qhov KakuBridge no yog qhov pheej yig heev (& $ 8) thiab yooj yim heev los tsim domotica system rau Klik-aan Klik-uit li, (CoCo). Koj tuaj yeem tswj tau txog 9 lub cuab yeej ntawm kev tswj chaw taws teeb ntawm lub vev xaib. Ntxiv mus nrog KakuBridge koj tuaj yeem teem sijhawm txhua lub cuab yeej
LM3886 Lub Hwj Huam Amplifier, Dual lossis Choj (txhim kho): 11 Kauj Ruam (nrog Duab)
LM3886 Lub Hwj Chim Amplifier, Dual lossis Choj (txhim kho): Lub zog me me (lossis choj) lub tshuab hluav taws xob tau yooj yim los tsim yog tias koj muaj qee qhov kev paub siv hluav taws xob. Tsuas yog ob peb ntu xwb. Tau kawg nws tseem yooj yim dua los tsim lub mono amp. Cov teeb meem tseem ceeb yog lub hwj chim thiab cua txias. Nrog cov com
Breadboard Friendly Breakout Board rau ESP8266-01 Nrog Voltage Regulator: 6 Cov Kauj Ruam (nrog Duab)
Breadboard Friendly Breakout Board rau ESP8266-01 Nrog Voltage Regulator: Nyob zoo txhua tus! vam tias koj nyob zoo. Hauv qhov kev qhia no kuv yuav qhia kuv yuav ua li cas kuv ua qhov kev hloov pauv khoom noj khoom haus no haum rau ESP8266-01 tus qauv nrog kev tswj hwm qhov hluav taws xob kom raug thiab cov yam ntxwv uas ua rau lub teeb nyem ntawm ESP.Kuv tau ua qhov mod no
E32-433T LoRa Module Tutorial - DIY Breakout Board rau E32 Module: 6 Kauj Ruam
E32-433T LoRa Module Tutorial | DIY Breakout Board rau E32 Module: Hav, yog dab tsi, Men! Akarsh ntawm no los ntawm CETech Qhov phiaj xwm no ntawm kuv yog kev kawm nkhaus kom nkag siab txog kev ua haujlwm ntawm E32 LoRa module los ntawm eByte uas yog lub zog loj 1-watt transceiver module. Thaum peb nkag siab txog kev ua haujlwm, Kuv tau tsim
Qhib Source Breadboard-Friendly Modular Neopixel Breakout Board: 4 Cov Kauj Ruam (nrog Duab)
Open Source Breadboard-Friendly Modular Neopixel Breakout Board: Cov lus qhia no yog hais txog ib qho me me (8mm x 10mm) breadboard-friendly breakout board rau Neopixel LEDs uas tuaj yeem muab sib dhos thiab sib dhos rau ib leeg, nws tseem muab ntau yam txheej txheem nruj dua li nyias LED sawb hauv daim ntawv me dua qhov tseeb