Cov txheej txheem:

Smart Outlet: 6 Kauj Ruam
Smart Outlet: 6 Kauj Ruam

Video: Smart Outlet: 6 Kauj Ruam

Video: Smart Outlet: 6 Kauj Ruam
Video: Best Smart Plugs 2023 [don’t buy one before watching this] 2024, Hlis ntuj nqeg
Anonim
Ntse Qhov Hluav Taws Xob
Ntse Qhov Hluav Taws Xob
Ntse Qhov Hluav Taws Xob
Ntse Qhov Hluav Taws Xob

Fusion 360 Cov Haujlwm »

Kev tsis lees paub: Txoj haujlwm no yog npaj los qhia seb koj tuaj yeem tsim qauv nrog SV2 PCB tshuab luam ntawv li cas. Nws tsis yog cov khoom lag luam uas koj yuav tsum siv ua cov khoom niaj hnub. Nws tsis yog tsim los tsis raug tshuaj ntsuam kom ua raws li cov qauv kev nyab xeeb tsim nyog. Koj yuav lav ris rau ib qho kev pheej hmoo uas koj ua thaum siv cov qauv no

Lub qhov hluav taws xob ntse yog IOT lub cuab yeej uas tso cai tswj hwm ib qho khoom siv txuas nrog siv lub web server los ntawm txhua lub browser. Lub vev xaib server peb ua haujlwm ntawm no tso cai rau peb txiav txim siab tias cov khoom siv sib txuas twg yuav qhib thiab tawm, qhov tseem ceeb tso cai "ntsaws" thiab "tshem tawm" ntawm kev nias lub pob ntawm lub xov tooj lossis nyem rau ntawm lub khoos phis tawj.

Khoom siv

Cov Cheeb Tsam Loj: Quantity x Item (Digikey Part Number)

  • 1 x NEMA5-15P Txiv neej Plug thiab Txuas (Q108-ND)
  • 3 x Poj Niam Txais Tos NEMA5-15R (Q227-ND)
  • 1 x Wifi Module ESP32-WROOM-32D (1904-1023-1-ND)
  • 3 x Kev Xaj Xeev Relay (255-3922-1-ND)
  • 1 x Voltage Regulator 3.3V (AZ1117EH-3.3TRG1DIDKR-ND)
  • 3 x NFET (DMN2056U-7DICT-ND)
  • 9 x Resistor 100 ohm (311-100LRCT-ND)
  • 4 x Resistor 10k ohm (311-10KGRCT-ND)
  • 2 x Capacitor 1uF (399-4873-1-ND)
  • 1 x Capacitor 10uF (399-4925-1-ND)
  • 2 x Capacitor 0.1uF (399-1043-1-ND)
  • 3 x LEDs (C503B-BCS-CV0Z0461-ND)
  • 1 x Ntug Txuas (S3306-ND)
  • 1 x 5V 1A AC-DC Converter (945-3181-ND)

Lwm Yam Khoom/Khoom Siv:

  1. Kub Shrink Tubing, 8 nti
  2. Cov Tshuaj Kub Kub Tsawg

Cov Cuab Yeej thiab Khoom Siv:

  • SV2 PCB Tshuab Luam Ntawv
  • 3D Tshuab Luam Ntawv
  • Soldering Hlau
  • Reflow Phom
  • DC Fais Fab Khoom
  • Ntsia Hlau (3mm Hex)
  • Super kua nplaum
  • USB Serial Programmer

Kauj Ruam 1: Luam PCB Tsim

Luam tawm PCB Tsim
Luam tawm PCB Tsim
Luam tawm PCB Tsim
Luam tawm PCB Tsim
Luam tawm PCB Tsim
Luam tawm PCB Tsim

Nyob ntawm seb koj tsim koj li cuab yeej li cas, cov theem no yuav txawv. Txhawm rau ua cov cuab yeej tshwj xeeb no, peb tsim PCB tsim thiab luam tawm nws siv SV2 PCB Tshuab Luam Ntawv. Txij li thaum peb siv PCB thiab tsis yog lub rooj sib tham lossis rooj noj mov, feem ntau ntawm peb cov khoom siv yog cov khoom siv saum npoo, xws li lub tshuab tswj hwm, uas yog ESP32-WROOM-32D module, thiab kev xa tawm, uas peb tau xaiv los ua lub zog siab lub xeev ruaj khov Cov khoom siv tshwj xeeb uas peb siv, nrog rau lawv tus lej Digi-Key, tau muab rau saum toj no hauv cov ntaub ntawv, tab sis koj tuaj yeem hloov cov khoom siv los kho nws raws li koj tus qauv tsim tshwj xeeb. Tus nqi hluav taws xob yuav tsum nyob zoo ib yam yog tias koj npaj siab siv cov khoom qub. Qhov tseem ceeb rau qhov txwv tam sim no tuaj yeem hloov pauv raws qhov xim LED koj siv, raws li qhov hluav taws xob rau pem hauv ntej thiab tam sim no yuav txawv! Lub laij lej no yuav tso cai rau koj sau qhov ntsuas ntawm koj tus qauv thiab suav qhov ntsuas qhov ntsuas rau koj. Peb siv xiav LEDs, uas paub tias muaj qhov hluav taws xob poob qis dua li qhov sib txawv liab. Ua kom ntseeg tau koj cov khoom uas yuav cuam tshuam nrog Mains Power (lub xeev ruaj khov, txuas, thiab lub ntsaws ntsaws) tau ntsuas rau AC qhov hluav taws xob qhov hluav taws xob thiab txaus tam sim no (120V 60Hz hauv Tebchaws Meskas, nyob ib ncig ntawm 10-15 Watts). Cov txheej txheem thiab txheej txheem PCB siv los tsim peb lub qhov hluav taws xob ntse tuaj yeem pom ntawm BotFactory lub vev xaib thiab koj tuaj yeem nyeem ntxiv txog lawv ntawm peb kab lus blog, hu ua Tsim Tus Ntse Ntse.

Kauj Ruam 2: Ntxiv Cov Cheeb Tsam

Ntxiv cov Cheebtsam
Ntxiv cov Cheebtsam
Ntxiv cov Cheebtsam
Ntxiv cov Cheebtsam

Cov kauj ruam tom ntej yog ntxiv tag nrho cov khoom siv rau hauv daim ntawv luam tawm. Muaj ob txoj hauv kev los ua qhov no, koj tuaj yeem siv lub peev xwm khaws-thiab-qhov chaw ntawm SV2 yog tias koj siv ib qho, lossis koj tuaj yeem muab tes txhuam cov khoom siv sib txuas rau board ib ntawm ib qho. Txij li qhov no yog thawj qhov qauv thiab peb xav kom ntseeg tau tias txhua feem ua haujlwm nrog ib leeg, peb tau tso txhua feem ntawm tes thiab ua kom muaj kev txuas ntxiv ntawm cov khoom siv los ntawm kev siv ntau lub ntsuas. Peb siv cov ntsuas kub tsis khov kho kom sov kom sov cov khoom sib txuas rau PCB. Qee qhov kev sib txuas sab nraud, xws li kev txuas mus rau lub qhov ntsaws ntsaws thiab txuas rau AC-DC hloov pauv, tau ua tiav siv tus txuas txuas. Vim li no, txhua yam uas xav tau yog luam cov ntiv tes kub mus rau PCB, thiab ntsaws nws txhawm rau muab kev sib txuas hauv Circuit Court. Thaum txhua yam nyob ntawm lub rooj tsavxwm, nws tau muab lub zog los ntawm qhov sib txawv ntawm qhov hluav taws xob thiab cov khoom siv hluav taws xob tam sim no, uas muaj kev txwv tsis pub ua haujlwm tam sim no txhawm rau tiv thaiv cov pa luam yeeb tawm ntawm kev khiav tawm ntawm qhov luv luv. Yog tias txhua yam zoo (tsis muaj pa luam yeeb ua khawv koob, tsis muaj cov khoom ua kom sov dhau, tsis muaj kev tawg) koj tuaj yeem npaj xa cov cai mus rau ESP32.

Kauj ruam 3: Upload Koj Cov Cai

ESP32 tau txuas nrog lub khoos phis tawj siv TXD, RXD, thiab GND pins, siv USB rau txuas txuas. Nco ntsoov tias TXD ntawm koj lub xov tooj txuas rau RXD tus pin ntawm micro-maub los thiab hloov pauv. Siv Arduino IDE, cov laug cam rau ESP32 qhov sib txawv tau thauj khoom thiab "FireBeetle-ESP32" pawg thawj coj tau raug xaiv raws li qhov no tau muaj kev txhawb nqa ib txwm rau cov liab ESP32 uas peb siv. Cov cai uas tau siv los txuas tus tswj hwm micro rau koj lub Wi-nkaus router thiab qhib kev sib txuas ntawm chaw nres nkoj 80. Thaum qhov chaw nres nkoj qhib, nws muab lub vev xaib rau ib qho khoom siv txuas rau nws thiab tuaj yeem hloov GPIO pins ntawm siab thiab qis. raws li khawm nkag ntawm lub vev xaib. Ib qho ntxiv, cov URL tshwj xeeb tuaj yeem siv los qhib lossis kaw lub cuab yeej. Nco ntsoov tias koj hloov pauv cov lej suav nrog Wi-Fi SSID thiab tus lej zais rau lub network uas koj xav txuas lub ntse ntsaws rau. Lub network peb txuas nrog nws tau ruaj ntseg nrog WPA2, tab sis nws yuav lossis tsis ua haujlwm nrog cov network tsis muaj kev nyab xeeb.

Kauj ruam 4: Xeem

Kuaj!
Kuaj!

Siv cov cuab yeej tsim nyog thiab kev sib txuas, sim tias txhua qhov kev sib txuas thiab cov khoom siv ntawm koj lub cuab yeej yuav luag tiav! Ntsuas cov khoom siv AC (AC-DC hloov pauv thiab NEMA5 Plug) cais thiab tuav lawv kom raug, lawv yog rau qhov hluav taws xob siab! Siv sab nraud DC lub zog siv hluav taws xob, ua kom muaj hluav taws xob hauv koj lub Circuit Court thiab ntsuas qhov koj tuaj yeem hloov cov transistors qhib thiab tawm los ntawm kev siv lub vev xaib sib cuam tshuam, uas yuav tsum tig los ua haujlwm sib xws ntawm LEDs thiab tso cai rau tam sim no ntws los ntawm lub xeev khov kho.

Kauj Ruam 5: Luam daim ntawv kaw

Sau daim ntawv kaw
Sau daim ntawv kaw
Sau daim ntawv kaw
Sau daim ntawv kaw
Sau daim ntawv kaw
Sau daim ntawv kaw

Nyob ntawm seb cov khoom koj tau xaiv thiab yuav ua li cas koj npaj lawv, koj lub thawv ntawv tuaj yeem sib txawv. Ntawm no, peb siv lub thawv plaub fab uas nyob hauv tsev AC-DC hloov pauv, PCB, txuas txuas, thiab muaj cov ntaub ntawv rau NEMA5-15R cov khoom siv. Peb tsim nws siv Fusion 360 thiab nws luam tawm nws siv lub tshuab luam ntawv 3D, thiab txuas rau sab saum toj phaj phaj siv 3mm cov cua sov teeb teeb thiab 3mm hex screws. Cov kua nplaum ua haujlwm ib yam nkaus thiab yog tias cov cua sov txheej txheej tsis muaj rau koj. Yog tias koj siv cov ntawv tso cua sov, cov qhov hauv cov ntawv STL suav nrog 4 hli dav, thiab koj yuav xav tau cov hlau txuas ntawm 250C. Siv cov khoom siv tiag tiag, qhov kev ntsuas haum tau ua tiav kom ntseeg tau tias txhua ntu haum kom raug hauv lub thawv.

Kauj ruam 6: Sib sau ua ke

Sib sau ua ke!
Sib sau ua ke!
Sib sau ua ke!
Sib sau ua ke!
Sib sau ua ke!
Sib sau ua ke!

Thaum kawg, cov kev sib txuas tas mus li tau muab pov tseg thiab cov khoom siv tau muab tso rau hauv lub thawv. Ntawm no, peb ua raws cov txheej txheem rau kev sib txuas raug ntawm PCB, lub ntsaws ntsaws ntsaws, AC-DC hloov pauv, thiab txiv neej ntsaws. Txhua lub Cheebtsam tau raug kuaj dua ib zaug kom pom tias muaj teeb meem thaum ua haujlwm ua ke. Nco ntsoov xyaum ceev faj ntxiv thaum ua haujlwm nrog AC Circuitry! Tsis txhob kov lub rooj tsavxwm lossis cov xov hlau thaum lub tshuab hluav taws xob los ntawm phab ntsa. Xyuas kom koj tsis ntsaws nws ua ntej yuav xauv, txav xov hlau, lossis kho qhov sib txuas xoob. Yog tias txhua yam zoo, tam sim no koj npaj tau kaw lub tsev siv plaub M3 ntsia hlau thiab siv koj lub qhov ntse tshiab!

Pom zoo: