Cov txheej txheem:

Tsis Siv Neeg Pov Tseg Rau Hauv: 8 Kauj Ruam (nrog Duab)
Tsis Siv Neeg Pov Tseg Rau Hauv: 8 Kauj Ruam (nrog Duab)

Video: Tsis Siv Neeg Pov Tseg Rau Hauv: 8 Kauj Ruam (nrog Duab)

Video: Tsis Siv Neeg Pov Tseg Rau Hauv: 8 Kauj Ruam (nrog Duab)
Video: Tiam no swb koj rau luag by: Pob Tsuas Xyooj (2022 New Song) 2024, Kaum ib hlis
Anonim
Image
Image
Tsis Siv Neeg Pov Tseg Rau Hauv
Tsis Siv Neeg Pov Tseg Rau Hauv
Tsis Siv Neeg Pov Tseg Rau Hauv
Tsis Siv Neeg Pov Tseg Rau Hauv

Nyob zoo cov phooj ywg!

Yog tias koj tau saib kuv cov channel ntev, tom qab ntawv koj feem ntau yuav nco qab qhov project txog lub thoob khib nyiab nrog lub npog tsis siv neeg. Txoj haujlwm no yog ib qho ntawm thawj hauv Arduino, ib tus tuaj yeem hais kuv qhov kev tshwm sim. Tab sis nws muaj ib qho teeb meem loj heev: lub kaw lus siv ntau dua 20 milliamps, uas ua rau nws tsis tuaj yeem ua haujlwm tau los ntawm roj teeb. Thiab hnub no, nrog kev paub tshiab thiab ntau ntau txoj haujlwm tom qab kuv, Kuv yuav kho qhov teeb meem no.

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam

Txhawm rau tsim qhov no, peb xav tau lub thoob nrog lub hau qhib ntawm lub hinges. Qhov no tau yuav hauv cov khoom siv hauv tsev thiab hu ua lub thoob rau ntxuav cov hmoov. Raws li pawg thawj coj ntawm Arduino Kuv coj tus qauv Nano. Kev tsav tsheb servo yog qhov xav tau nrog cov hlau txo. Tom ntej no - lub ntsuas hluav taws xob nrug deb nrug deb thiab lub roj teeb rau 3 ntiv tes roj teeb. Rau kev zoo nkauj cia peb nqa cov ntaub yas zoo nkauj no.

  • Arduino NANO
  • Ntau yam sensor
  • Kev pabcuam
  • Lub roj teeb tuav
  • Lub thawv
  • MOSFET Pom zoo kom siv hluav taws xob electrolytic capacitor 10V 470-1000 uF
  • Kev tiv thaiv 100 Ohm
  • Resistor 10 kOhm

Kauj ruam 2: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Ua ntej peb tshem cov yas dhau ntawm lub hau. Nws yog latch thiab kov. Qhov ntsuas qhov nrug haum txig rau hauv lub thawv, tsuas yog cov txuas txuas txuas tawm. Peb yuav tshem tawm lawv. Ua ntej peb yuav txiav cov yas ntawm cov koob. Ntawm qhov kev pabcuam servo peb txuas cov xov hlau raws li lawv yuav tsum tau mus txog rau pem hauv ntej ntawm lub thoob khib nyiab. Thiab peb tab tom txuas txhua yam raws li kab lus yooj yim no. Lub ntsuas hluav taws xob yuav siv los ntawm ib qho ntawm tus pin ntawm Arduino, yog li tsis txhob muab cov hlua txuas txuas rau lub hwj chim, vim tias qhov kev pabcuam twb tau txuas nrog ntawd.

Tam sim no peb tso txhua yam hauv rooj plaub. Ua ntej peb yuav ua qhov rau lub sensor. Kuv cim cov chaw zov me nyuam nrog riam. Ua ntej kuv drilled qhov nrog ib qho kev xyaum rau qhov tseeb ntawm qhov chaw thiab tom qab ntawd nthuav nws nrog cov qib xyaum. Sau txhua yam nrog kua nplaum kub. Lub roj teeb tau ntim nrog daim kab xev nplaum ob tog, thiab cov xaim los ntawm tus neeg tsav tsheb servo yuav tawm mus los ntawm sab qhov.

Kauj Ruam 3: Servo thiab Box Mount

Servo thiab Box Mount
Servo thiab Box Mount
Servo thiab Box Mount
Servo thiab Box Mount
Servo thiab Box Mount
Servo thiab Box Mount

Tam sim no ntxuav nrog cov ntawv xuab zeb servo sab thiab lub thoob rau ntawm qhov chaw no. Peb lo lawv ua ke nrog cov kua nplaum tam sim. Peb tuaj yeem ntxiv nws ntxiv nrog kev sib txuas cable. Tsis tas li koj yuav tsum ua qhov zawj hauv qab cov xov hlau, kom lawv tsis khov kho. Tau kawg, servo tsav yuav tsum nkag mus rau hauv lub thoob thiab tsis txhob cuam tshuam dab tsi. Cov hlua tau txuas raws ntug ntawm lub thoob nrog cov kua nplaum kub.

Lub thawv nws tus kheej tau txuas rau lub thoob nrog cov ntsia hlau thiab cov txiv ntoo. Nws yog qhov tsim nyog los kho nws kom lub teeb pom kev zoo tsis ntes lub pob tawb npog. Rau qhov no koj tuaj yeem tso ob peb txiv ntoo hauv qab cov ntsia hlau sab saud.

Kauj ruam 4: Mechanism

Mechanism
Mechanism
Mechanism
Mechanism
Mechanism
Mechanism

Thawj zaug kuv tau ua los ntawm ib lub pas khov nab kuab. Tab sis nws tau tuab heev, thiab tsis pub lub hau kaw kom dawb. Tom qab ntawd kuv tau ua tib yam los ntawm daim iav ntawm cov hlau rau cov zaub mov kaus poom. Nyob rau sab saud tus pas nrig ntawm tus tsav tsheb servo tau tsau nrog ib daim ntawv txiav. Thiab daim ntawv no tau glued siv superglue thiab dej qab zib rau ntawm cov hlau.

Zoo, cia peb teeb tsa nws. Ua tib zoo tig lub servo mus rau txoj haujlwm hnyav thiab txhim kho rocker hauv txoj haujlwm ntawm lub hau qhib. Zoo, tam sim no peb lub thoob kaw thiab qhib. Ua nws kom zoo, vim tias cov khoom lag luam ntawm Tuam Tshoj tuaj yeem tsoo, yog tias ua haujlwm ntawm qhov tsis sib xws. Hauv txoj ntsiab cai, ib feem kho vajtse tau npaj tiav, cia peb mus rau qhov program. Thaum xub thawj, peb yuav sau cov txheej txheem yooj yim, yam tsis txuag lub zog.

Kauj ruam 5: Programming hauv XOD

Programming in XOD
Programming in XOD
Programming in XOD
Programming in XOD
Programming in XOD
Programming in XOD

Kuv siv qhov pom-raws qhov kev qhia paub langulage XOD, nws yog nyob ntawm cov ntshav. Lub node yog ib qho thaiv uas sawv cev rau qee yam khoom siv lub cev xws li lub ntsuas pa, lub cev muaj zog, lossis txuas, lossis qee qhov haujlwm xws li kev sib ntxiv, kev sib piv, lossis cov ntawv sib txuas. Koj tuaj yeem saib tag nrho cov txheej txheem ntawm ua qhov project whis hauv XOD hauv kuv cov vis dis aus hais txog cov thoob khib nyiab. Kuj thawj daim duab yog qhov program XOD yooj yim tsis muaj qee qhov "hysteresis", thiab daim duab thib peb nrog nws.

Koj tuaj yeem rub tawm XOD cov thoob khib nyiab rau hauv qhov project hauv nplooj ntawv ntawm GitHub.

Raws li koj tau pom dhau los, los tsim cov cuab yeej no peb tsis xav tau kev paub txog ib yam lus programming. Peb tsuas yog yuav tsum xav txog qhov laj thawj ntawm kev ua haujlwm kom raug thiab paub tias muaj cov node nyob hauv qhov haujlwm. Nws yog txoj haujlwm rau ob peb hmo ntawm kev nyeem cov ntaub ntawv. Hauv xod, peb pom meej tias cov ntaub ntawv xa mus li cas, los ntawm qhov nws kis thiab nws tuaj qhov twg. Tsim daim ntawv ntev ntawm cov cai yog cov kauj ruam tom ntej ntawm Arduino cov kiv cua. Koj tuaj yeem pib los ntawm no nrog kev ua haujlwm zoo.

Yog li, nws ua haujlwm! Wb tham txog kev txuag hluav taws xob.

Kauj Ruam 6: Txuag Lub Zog. Kho vajtse Hloov kho

Txuag Zog. Kho vajtse Hloov kho
Txuag Zog. Kho vajtse Hloov kho
Txuag Zog. Kho vajtse Hloov kho
Txuag Zog. Kho vajtse Hloov kho
Txuag Zog. Kho vajtse Hloov kho
Txuag Zog. Kho vajtse Hloov kho

Yog li, peb muaj 3 tus neeg siv khoom siv hluav taws xob, Arduino nws tus kheej, lub ntsuas hluav taws xob thiab servo tsav. Ua kom Arduino noj tsawg dua los ntawm roj teeb, koj yuav tsum tua lub "pwr" LED, uas ci tas li thaum muaj lub hwj chim ntawm lub rooj tsavxwm. Tsuas yog txiav txoj kab ua rau nws.

Tom ntej no muaj tus tswj hluav taws xob nyob tom qab ntawm lub rooj tsavxwm, peb tsis xav tau nws ib yam, tom nws tus pin sab laug. Tam sim no Arduino ntawm hom pw tsaug zog xav tau ob peb kaum os micro amps. Lub sensor tuaj yeem qhib thiab tawm ncaj qha los ntawm Arduino.

Tab sis qhov kev pabcuam hauv lub sijhawm tos siv ntau lub zog. Yog li ntawd peb yuav siv mosfet transistor zoo li hauv daim vis dis aus hais txog huab cua huab cua huab cua. Koj tuaj yeem nqa ib qho mosfet los ntawm cov npe no. Kuj xav tau tus tiv thaiv ntawm 100 Ohms thiab 10 kilo Ohm. Kuv yuav tawm tag nrho cov npe ntawm cov khoom rau txoj haujlwm hauv cov lus piav qhia hauv qab daim vis dis aus.

Lub Circuit Court tshiab yuav zoo li qhov no, servo powered los ntawm mosfet. Thaum pib ntawm kev txav mus los, servo siv lub zog loj tam sim no, yog li koj yuav tsum tso lub capacitor ntawm lub hwj chim nkag.

Kauj ruam 7: Programming. Arduino IDE Cov

Lub logic ntawm txoj haujlwm yog raws li hauv qab no. Hmoov tsis zoo, xod tseem tsis tau ntxiv lub zog fais fab, yog li kuv tau sau cov firmware ib txwm muaj hauv Arduino IDE, qhov uas kuv tswj hwm lub kaw lus nrog lub tsev qiv ntawv "LowPower". Sawv, pub lub zog rau lub ntsuas cua, tau txais qhov nrug deb, thiab tua lub sensor. Yog tias koj xav tau qhib thiab kaw lub hau, txuas lub zog rau servo, qhib nws, thiab tua lub zog dua.

Koj tuaj yeem rub tawm Arduino IDE kos duab los ntawm GitHub qhov project project page

Kauj Ruam 8: Cov lus xaus

Image
Image
Cov lus xaus
Cov lus xaus

Tam sim no lub Circuit Court nyob rau hauv standby hom siv txog 0.1 milliamps thiab tuaj yeem ua haujlwm tau zoo nyob ntev los ntawm cov ntiv tes roj teeb. Tab sis saib dab tsi yog qhov teeb meem: rau kev ua haujlwm ruaj khov, koj xav tau qhov hluav taws xob siab dua 3.6 Volts, uas yog, siab dua 1.2 Volts ib lub roj teeb.

Txiav txim los ntawm kab ntawv rau lub roj teeb alkaline, nws tuaj yeem pom tias lub roj teeb tawm ib nrab ib nrab, uas yog, txog 1.1 Ampere teev. Qhov ntawd yog kwv yees li 460 hnub ntawm kev ua haujlwm hauv hom tos, tsis phem? Tab sis lub roj teeb yuav siv tsuas yog ib nrab ntawm lub peev xwm, thiab tom qab ntawd nws tuaj yeem tso tau, piv txwv li, hauv kev tswj chaw taws teeb los ntawm TV. Tab sis yog tias koj siv cov roj teeb lithium, lawv yuav ua haujlwm ze li 100% ntawm lub peev xwm, thiab qhov no yuav luag 3 Ampere teev, uas yog, 3 zaug ntev dua. Cov roj teeb lithium yog kim dua li cov roj teeb alkaline, tab sis kuv xav tias nws tsim nyog.

Ua tsaug rau koj saib xyuas, thiab tsis txhob hnov qab, muaj cov vis dis aus hais txog kev ua qhov haujlwm no!

Pom zoo: