Cov txheej txheem:

ServoThermometer: 6 Kauj Ruam
ServoThermometer: 6 Kauj Ruam

Video: ServoThermometer: 6 Kauj Ruam

Video: ServoThermometer: 6 Kauj Ruam
Video: 🙄 Подержанный Hyundai Solaris: что в нём ломается? каких проблем ждать? куда смотреть при покупке? 2024, Kaum ib hlis
Anonim
ServoThermometer
ServoThermometer
ServoThermometer
ServoThermometer

Qhov no yog qhov ntsuas kub sib piv ua los ntawm lub ntsuas hluav taws xob digital ds18b20, mini servo, thiab khoom siv hluav taws xob raws li esp-12f module

Nws muaj cov yam ntxwv hauv qab no.

  • Tus kheej muaj chav tuav khoom siv hluav taws xob, servo thiab roj teeb
  • Zoo raug thiab raug siv ds18b20 digital sensor
  • Rechargeable LIPO nrog inbuilt charger
  • Qis qis heev tam sim no (<20uA) rau lub roj teeb ntev
  • Servo tsuas yog qhib rau lub sijhawm luv dua muab lub roj teeb zoo.
  • Feem ntau tus qauv pw ntawm qhov hloov pauv kub tab sis tuaj yeem hloov mus ua hom tsis tsaug zog rau kev tshuaj xyuas thiab teeb tsa
  • Kev teeb tsa cov ntaub ntawv rub tawm thiab ntsuas servo los ntawm lub web interface
  • Yam tsawg kawg, qhov kub tshaj plaws, Centigrade. Fahrenheit, thiab hloov kho lub sijhawm nruab nrab
  • Kev saib xyuas roj teeb
  • Software tuaj yeem hloov kho tshiab ntawm lub web interface
  • Tus nqi qis

Kauj Ruam 1: Cov Cheeb Tsam thiab Cov Cuab Yeej Xav Tau

Cheebtsam thiab Cov Cuab Yeej Xav Tau
Cheebtsam thiab Cov Cuab Yeej Xav Tau
Cheebtsam thiab Cov Cuab Yeej Xav Tau
Cheebtsam thiab Cov Cuab Yeej Xav Tau

Cov hauv qab no xav tau

  • MIni servo tsav (MG90S)
  • Ds18b20 ntsuas kub
  • ESP-12F (esp8266 module)
  • 18650 LIPO roj teeb
  • Lub roj teeb LIPO
  • micro USB LIPO charger
  • LDO qis qis tam sim no 3.3V tus tswj hwm. Kuv siv XC6203
  • Resistors 4K7, 10K
  • 220uF 6V Decoupling capacitor
  • n channel MOSFET tus tsav tsheb qis. Kuv siv AO3400
  • p channel MOSFET tus tsav tsheb qis. Kuv siv AO3401
  • Daim ntawv me me ntawm pcb pawg thawj coj saib
  • Slide Power hloov
  • Laub khawm me me (6mm square)
  • Txuas xov hlau
  • Muab ob daim nplaum nplaum
  • 3D luam daim ntawv tsim muaj nyob ntawm
  • Yeem pointer. Kuv siv lub sijhawm siv tes tsis khoom; ib daim ntawv luam tawm yuav raug siv.

Cov cuab yeej hauv qab no xav tau

  • Fine Point soldering hlau
  • Kub kua nplaum phom
  • Qhov punch

Kauj ruam 2: Electronics

Electronics
Electronics

Feem ntau ntawm cov khoom siv hluav taws xob yog ESP8266 wifi microcontroller unit. Yuav tsum tau siv cov khoom siv hluav taws xob me me los pab rau lub cav servo, thiab tswj lub roj teeb rau 3.3V, txhawb cov ntsuas hluav taws xob, thiab ntsuas qhov ntsuas hluav taws xob los saib xyuas cov roj teeb hluav taws xob. Qhov servo lub cev muaj zog yog tsav los ntawm 2 MOSFET transistors. Lawv tau qhib rau lub sijhawm luv ua ntej yuav tsum tau hloov kho servo thiab tawm mus rau lub sijhawm luv luv kom tso cai rau servo ua tiav nws lub zog. Lub nra yog lub teeb heev uas cov servo yuav tsis txav thaum tsis muaj lub zog.

Txhua qhov kev txhawb nqa hluav taws xob sib nrug ntawm LIPO lub charger tau teeb tsa ntawm lub rooj tsav xwm pcb qauv. Kuv siv cov khoom SMD los khaws qhov no me me li sai tau tab sis nws tuaj yeem ua tiav nrog cov khoom siv thru vim tias muaj chaw txaus tsim nyog. Lub charger LIPO muaj lub micro USB chaw nres nkoj uas tuaj yeem siv rau rov ua lub roj teeb. Ib lub tshuab fais fab swb tuaj yeem siv los tig lub hwj chim rau thiab tawm. Ib lub nyees khawm yog kom tso tseg txoj kev pw tsaug zog thaum muaj zog uas tom qab ntawd tso cai rau lub vev xaib nkag mus rau teeb tsa thiab tswj.

Kauj ruam 3: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Kuv tau ua cov kauj ruam hauv qab no

  • Sau tawm 3d enclosure
  • Cov hlau xaim mus rau qhov hloov pauv, khawm thiab 3 tus pin txuas
  • Haum hloov, khawm thiab txuas mus rau lub thawv uas siv me me ntawm cov kua nplaum ua kom ruaj ntseg
  • Haum servo nyob rau hauv qhov chaw. Muaj qhov chaw txaus nyob tom qab kom cov hlua hla dhau. Tom qab ntawv ib daim duab los ntawm daim cardboard tuaj yeem siv los tiv thaiv nws.
  • Ruaj ntseg LIPO them nyiaj nyob hauv qhov chaw. Kuv siv xaim hla plaub qhov ntawm lub LIPO them nyiaj kom hloov qhov siab (2mm) ntawm lub hauv paus kom nws ua kab nrog usb qhov. Kub kua nplaum nyob rau hauv qhov chaw.
  • WIre tus tuav lub roj teeb, hloov pauv thiab them lub roj teeb kom txaus ua rau lub roj teeb ua kom nws tuaj yeem nyob ntawm ib sab.
  • Ua cov khoom siv hluav taws xob ib puag ncig ntawm daim ntawv me me ntawm pawg thawj coj saib.
  • Mount prototyping board rau saum esp-12 module.
  • Ua kom tiav cov hlua txuas
  • Luam tawm cov ntawv xaiv (thiab tus cim yog xav tau) ntawm cov ntawv ci ci thiab txiav tawm.
  • Siv qhov xuas nrig los tsim qhov rau servo
  • Txuas tus xov tooj mus rau lub thawv nrog daim kab xev nplaum ob tog
  • Txuas tus pointer rau servo
  • Calibrate txoj haujlwm ntawm tus taw qhia los ntawm kev siv lub vev xaib los teeb tus nqi kub.

Kauj ruam 4: Software

Lub software rau txoj haujlwm no muaj nyob ntawm github

Nws yog qhov project Arduino raws li teeb tsa esp8266 Arduino kev txhim kho ib puag ncig. Tej zaum koj yuav xav teeb tus password rau WifiManager thiab hloov kho software hauv cov ntaub ntawv ino rau qee yam uas paub tab.

Nws yuav tsum tau suav ua ke hauv Arduino ESP8266 IDE thiab cov ntawv xa mus rau tus qauv. Nws yog qhov zoo los xaim GPIO13 rau GND hauv koj qhov kev txhim kho ib puag ncig raws li cov software tom qab ntawd yuav nyob rau hauv hom txuas mus.

Thawj zaug siv yuav pib nkag mus uas yuav tsum txuas nrog ntawm lub xov tooj lossis lub xov tooj ntawm tes. Saib tus lej rau tus password. Browser ntawm lub xov tooj lossis ntsiav tshuaj yuav tsum tau siv nkag mus rau 192.168.4.1 uas yuav tso cai xaiv ntawm wifi hauv zos ssid thiab password. Qhov no tsuas yog yuav tsum ua tiav ib zaug lossis yog tias lub network wifi hloov pauv. Txij thaum ntawd los ntawm tus qauv yuav txuas rau lub network wifi hauv zos yog xav tau. Ib txwm pw tsaug zog hom tsis siv wifi. Nws sawv ntawm lub sijhawm pw tsaug zog, nyeem qhov ntsuas kub, hloov kho lub servo thiab rov qab mus pw. Txhua qhov nyeem 10 nws yuav siv roj teeb nyeem thiab sau nws. Qhov no tuaj yeem tshawb xyuas los ntawm kev qhib tsis muaj hom wifi tsaug zog thiab tshawb xyuas cov ntaub ntawv teev cia.

Qee cov ntaub ntawv txhawb nqa yuav tsum tau muab rub tawm. Cov no yog nyob hauv cov ntaub ntawv tais ceev tseg ntawm git. Lawv tuaj yeem rub tawm los ntawm kev nkag mus rau ip/upload. Thaum cov no tau raug tso tawm ces tus ip/hloov kho tuaj yeem siv los ua txuas ntxiv hauv qhov yooj yim dua.

Kauj ruam 5: Kev ua haujlwm

Tom qab teeb tsa lub tsev yuav tsuas ua haujlwm tom qab tau qhib.

Yog tias nws tau qhib nrog lub pob nyem ces tus lej ntawm lub vev xaib cov lus txib yuav raug siv.

  • http:/ipAddress/upload muab kev nkag mus rau cov ntaub ntawv yooj yim upload. Siv los bootstrap qhov system.
  • http:/ipAddress/kho kom nkag tau mus rau qhov ua ntaub ntawv thov (piv txwv li txhawm rau kho qhov teeb tsa tshiab lossis nkag mus rau cov ntaub ntawv teev cia)
  • http:/ipAddress muab kev nkag tau rau ib daim ntawv los teeb cov zaub rau tus nqi. Tej zaum yuav siv los kho tus taw tes.
  • http:/ipAddress/firmware kom xa cov firmware tshiab binary

Kauj ruam 6: Dial thiab Configuration

Powerpoint muaj qee qhov piv txwv hu rau centigrade lossis fahrenheit siv. Cov no tso cai rau 15 ntu tab sis qhov ntau tuaj yeem hloov kho tau yooj yim los ntawm kev hloov pauv ntu ntu. Yog tias xav tau ntau lossis tsawg ntu tom qab ntawd ib tus xav tau hloov cov khoom ntawm cov khoom siv donut. Ib yam li cov xim keeb kwm ntawm ntu tuaj yeem hloov pauv.

Cov ntaub ntawv teeb tsa muaj nyob hauv cov ntaub ntawv hu ua servoTempConfig.txt Qhov no muaj nyob hauv cov txheej txheem foob ntawm tus qauv. Txhawm rau hloov kho teeb tsa hloov cov ntaub ntawv thiab xa nws ntawm lub vev xaib interface http: ipAddress/kho kom raug

Cov ntaub ntawv teeb tsa tsuas yog qhov tseem ceeb ntawm kab raws li hauv qab no

  • hostname lub npe
  • qhov ntsuas kub tsawg kawg nkaus (hauv cov chav xaiv)
  • siab tshaj plaws qhov ntsuas kub (hauv cov chav xaiv)
  • pw luv ntawm kev nyeem ntawv hauv vib nas this
  • hom pw tsaug zog (0 = Nyob tsis tu ncua nrog wifi, 1 = pw tsaug zog ib txwm, 2 = Nyob tas li tsis muaj wifi
  • kev nkag mus rau servoTempLog.txt yog tias nkag = 1. Cov roj teeb hluav taws xob ib txwm nkag mus.
  • ntsuas kub 0 = Centigrade, 1 = Fahrenheit
  • ADC_CAL calibration rau roj teeb nyeem nyeem.

Nco ntsoov tias qhov kub thiab txias siab tshaj plaws nyob hauv C/F units xaiv.

Pom zoo: