Cov txheej txheem:

Tsis Siv Neeg Turntable Nrog Shutter Tso Tawm: 8 Kauj Ruam
Tsis Siv Neeg Turntable Nrog Shutter Tso Tawm: 8 Kauj Ruam

Video: Tsis Siv Neeg Turntable Nrog Shutter Tso Tawm: 8 Kauj Ruam

Video: Tsis Siv Neeg Turntable Nrog Shutter Tso Tawm: 8 Kauj Ruam
Video: Zoo Siab Nrog Koj - Paj Tsua Thoj [ Official MV ] Nkauj Tawm Tshiab 2022 2024, Kaum ib hlis
Anonim
Tsis Siv Neeg Turntable Nrog Shutter Tso
Tsis Siv Neeg Turntable Nrog Shutter Tso

Nyob zoo. Hauv kab lus no kuv yuav piav qhia yuav tsim li cas yooj yim thiab ultra pheej yig siv lub tshuab tig nrog kaw kaw. Tus nqi rau txhua qhov yog tsawg dua $ 30 (txhua tus nqi raug coj los ntawm Aliexpress).

Feem ntau ntawm 3d cov kws ua yeeb yam, uas pib siv cov duab thaij duab tau ntsib ib yam teeb meem: yuav ua li cas siv cov txheej txheem tua phom sij. Arduino yog qhov kev xaiv zoo tshaj plaws rau lub hom phiaj no. Nws pheej yig thiab yooj yim los tsim cov cuab yeej. Muaj ntau lab tus qauv sib txawv ntawm kev ua lag luam rau cov laug cam.

Kauj ruam 1: Schematic

Schematic
Schematic

10k potentiometer - stepper lub cev muaj zog hloov kho.

SW1 - 2 -txoj haujlwm toggle hloov, siv rau hom xaiv (AUTO lossis HOLD).

SW2 - khawm laub tam sim - Pib.

SW3 - nias lub pob tam sim - RESET.

SW4 - khawm laub ib ntus - HARD RESET.

WS2812 RGB LED - qhia txog xwm txheej tam sim no.

Yuav luag txhua ntu kuv pom hauv kuv lub txee. Tsis tas li, ib tus xav tau luam tawm lub tshuab tuav thiab lub phaj saum toj ntawm 3d tshuab luam ntawv

Cov npe:

  • Arduino Nano pawg thawj coj saib
  • USB - MicroUSB hom B cable
  • 5V Stepper lub cev muaj zog 28BYJ-48
  • Tsav tsheb L298N
  • Optocoupler 4N35 - 2pcs
  • 10k resistor - 3pcs 220ohm
  • resistor - 2 pcs
  • 10 k potentiometer
  • 2 Txoj hauj lwm toggle hloov - 1pcs
  • Momentary laub khawm - 3pcs
  • WS2812 RGB LED
  • Wired remote shutter release (rau koj lub koob yees duab)
  • Lub rooj tsav xwm tsab (4x6cm lossis loj dua) DC-DC nqis qis tus tswj hwm 4-core hlau

Ib feem ntawm cov npe nrog cov txuas tuaj yeem pom ntawm no: Google Ntawv

Kauj Ruam 2: 3d-luam Qhov Chaw

3d-luam Qhov Chaw
3d-luam Qhov Chaw

Nov yog 3d qhov chaw luam tawm:

Kuv daig lub hauv paus stepper rau daim iav acrylic nrog daim kab xev ob tog. Raws li koj tuaj yeem pom ntawm no, qhov 3d luam tawm qhov no thiab lub cev nws tus kheej tsis tuaj yeem tuav cov khoom loj thiab hnyav, yog li ceev faj. Kuv siv lub turntable no los tshuaj xyuas lub vase me me, lub plhaub hiav txwv, cov duab nruab nrab, thiab lwm yam.

Kauj Ruam 3: Stepper Motor Hloov Kho

Stepper Motor Hloov Kho
Stepper Motor Hloov Kho

Stepper motor xav tau kev hloov pauv los ntawm unipolar rau bipolar. Qhov kev hloov kho no ua rau lub zog muaj zog ntau ntxiv thiab tso cai siv H-choj hom tsav tsheb.

Nov yog daim ntawv qhia tag nrho:

los yog

www.jangeox.be/2013/10/10/change-unipolar-28by…

Hauv ntej, tshem lub hau yas yas thiab siv rab riam ntse los txiav qhov txuas nruab nrab ntawm lub nkoj, raws li qhia hauv daim duab. Tom qab ntawd - txiav tawm lossis desolder nruab nrab cov xov hlau liab.

Kauj Ruam 4: Shutter Tso Rau Lub Koob Yees Duab

Shutter Tso Rau Lub Koob Yees Duab
Shutter Tso Rau Lub Koob Yees Duab

Nrhiav wired chaw taws teeb shutter tso rau koj lub koob yees duab. Nws yuav tsum muaj ib qho 2-theem khawm (tsom-kaw). Feem ntau nws pheej yig, tshwj xeeb tshaj yog suav rov qab. Rau kuv Nikon D5300 Kuv pom MC-DC2 wired remote shutter.

Disassemble nws thiab nrhiav ntau, tsom thiab kaw kab. Feem ntau yog ib txoj kab nyob nruab nrab ntawm lwm txoj kab. Sab saum toj yog kab ntawv tsom (saib daim duab). Cov kab no txuas rau optocouplers outputs.

Kauj Ruam 5: Sib Sau Ua Ke Kawg

Sib dhos zaum kawg
Sib dhos zaum kawg
Sib dhos zaum kawg
Sib dhos zaum kawg
Sib dhos zaum kawg
Sib dhos zaum kawg

Optocouplers tau siv ntawm no ua kom pom tseeb thiab kaw qhov ua rau. Optocoupler coj zoo li lub pob, ua los ntawm qhov hluav taws xob sab nraud. Thiab muaj qhov ua tiav hluav taws xob sib cais ntawm qhov ua rau lub zog qhov hluav taws xob thiab sab tso tawm. Yog li yog tias koj teeb tsa txhua yam kom raug, qhov ua tsis siv neeg no tsis ua rau koj lub koob yees duab puas tsuaj vim nws ua haujlwm ib yam li ob lub khawm sib cais yam tsis muaj hluav taws xob txuas nrog lub zog sab nraud.

Nws yog lub tswv yim zoo los sib sau ua ke txhua qhov ntawm daim ntawv qhia zaub mov kom kuaj nws thiab debug. Qee lub sij hawm tsis yog thawj Arduino cov laug cam los ntawm Tuam Tshoj tuaj tsis zoo. Kuv tau sib sau ua ke Arduino thiab cov khoom me me ntawm pawg thawj coj. Tom qab ntawd kuv tso txhua ntu rau ntawm qhov khoov ntawm daim iav acrylic.

Muab 2 tus neeg dhia dhia ntawm ENA thiab ENB pins ntawm lub rooj tsav tsheb tsav. Qhov no tso cai rau koj siv 5v stepper lub cev muaj zog.

Kauj ruam 6: Code

Github txuas:

Ib sab saum toj ntawm cov cai muaj qee qhov pib pom pom:

#define photoCount 32 // cov naj npawb ntawm cov duab

Stepper lub cev muaj zog 2048 cov kauj ruam rau ib kiv puag ncig tag nrho. Rau 32 daim duab, ib qho tig sib npaug 11.25 degrees, uas yog qhov txaus hauv feem ntau (IMO). Txhawm rau xam tus naj npawb ntawm cov kauj ruam rau ib qho tig, ua haujlwm puag ncig siv:

step_count = puag ncig (2048/pCount);

Qhov no txhais tau tias, txhua qhov tig yuav tsis yog qhov tseeb hauv qee kis. Piv txwv li, yog tias peb teeb tus lej ntawm cov duab rau 48, ib qho tig yuav puag ncig (42.66) = 43. Yog li, txoj haujlwm zaum kawg ntawm stepper motor yuav yog - 2064 (16 kauj ruam ntxiv). Qhov no tsis yog qhov tseem ceeb rau lub hom phiaj thaij duab, tab sis yog tias koj xav tau kom 100% meej, siv 8-16-32-64-128-256 duab.

#define focusDelay 1200 // tuav lub hom phiaj khawm (ms)

Ntawm no koj tuaj yeem tso lub hom phiaj khawm kom ncua, tso cai rau koj lub koob yees duab txaus sijhawm los tsom. Rau kuv Nikon D5300 nrog 35mm prime lens 1200ms yog txaus.

#define shootDelay 700 // tuav khawm tua (ms)

Tus nqi no piav qhia tias ntev npaum li cas khawm raug nias.

#define releaseDelay 500 // ncua tom qab tua khawm tso tawm (ms)

Thaum koj xav siv qhov raug ntev, nce kev tso tawm ncua sijhawm.

Kauj ruam 7: Kev ua haujlwm

Image
Image
Kev ua haujlwm
Kev ua haujlwm

Tus naj npawb ntawm cov duab yog hardcoded rau hauv firmware. Tab sis koj tuaj yeem hloov nws, siv kev sib txuas dav dav. Tsuas yog txuas Arduino pawg thawj coj thiab PC nrog USB cable thiab tsim kom muaj lub davhlau ya nyob twg txuas. Txuas Arduino pawg thawj coj thiab PC, nrhiav qhov sib txuas COM chaw nres nkoj hauv Tus Thawj Tswj Ntaus Ntawv.

Rau PC siv PuTTY, nws ua haujlwm zoo ntawm Win10. Rau kuv lub xov tooj Android Kuv siv Serial USB Terminal.

Tom qab ua tiav kev sib txuas, koj tuaj yeem hloov tus lej ntawm cov duab thiab pom cov xwm txheej tam sim no. Ntaus “+”, thiab nws yuav nce tus lej ntawm cov duab los ntawm 1. “-” - txo los ntawm 1. Kuv siv kuv lub xov tooj hauv xov tooj ntawd thiab OTG cable - nws ua haujlwm tau zoo! Tom qab fais fab tuag, suav cov duab pib dua rau lub neej ntawd.

Muaj qee yam ntawm kab nrog Suav Arduino Nanos - thaum koj lub zog ntawm Arduino tsis muaj USB txuas, qee zaum nws yuav tsis pib. Tias yog vim li cas kuv thiaj ua sab nraud pib dua khawm rau Arduino (HARD RESET). Tom qab nias nws, txhua yam ua haujlwm tau zoo. Cov kab no tshwm ntawm cov laug cam nrog CH340 nti.

Txhawm rau pib tua cov txheej txheem, teeb tsa "hom" hloov mus rau AUTO thiab nias START khawm. Yog tias koj xav tso tseg txoj kev tua, teeb "hom" hloov mus rau HOLD. Tom qab ntawd, koj tuaj yeem rov pib tua cov txheej txheem los ntawm kev teeb tsa "hom" hloov mus rau AUTO, lossis rov ua cov txheej txheem los ntawm nias RESET. Thaum hom hloov pauv ntawm HOLD, koj tuaj yeem tsim ib daim duab los ntawm nias lub pob pib. Qhov kev txiav txim no ua rau daim duab tsis nce cov duab suav sib txawv.

Kauj Ruam 8: Kev txhim kho

  1. Ua kom loj (40-50cm txoj kab uas hla) lub rooj nrog tub nkeeg susan pob kabmob (zoo li qhov no -
  2. Tau txais lub zog loj dua, xws li NEMA 17 thiab tus tsav tsheb - TMC2208 lossis DRV8825.
  3. Tsim thiab luam cov ntawv rov ua dua tshiab kom raug siab dua.
  4. Siv lub vijtsam LCD thiab tus lej nkag teb chaws, zoo li feem ntau 3d tshuab luam ntawv.

Qee zaum kuv lub koob yees duab tsis tuaj yeem ua kom pom tseeb, feem ntau yog thaum nrug nruab nrab ntawm lub koob yees duab thiab lub hom phiaj qis dua qhov tsom me me deb, lossis thaum lub ntsej muag ntawm lub hom phiaj tiaj tus thiab tsis muaj cov ntsiab lus pom. Qhov teeb meem no tuaj yeem daws tau los ntawm kev siv lub khau kub lub koob yees duab hloov pauv (zoo li qhov no: https://bit.ly/2zrpwr2, txuas kab ntawv: https://bit.ly/2zrpwr2 txhawm rau txheeb xyuas seb puas yog lub koob yees duab ua rau tua txhua lub sijhawm kaw. qhib kom txhaj tshuaj, lub koob yees duab luv 2 tiv tauj ntawm cov khau kub (nruab nrab thiab ib txwm muaj) kom ua rau sab nraud nyem. qhov no tshwm sim, Arduino yuav tsum ua lwm qhov los ua kom pom tseeb thiab tua, lossis ncua kev ua haujlwm thiab tos qhov kev txiav txim los ntawm tus neeg siv.

Kuv vam tias tsab xov xwm no tau pab koj. Yog tias koj muaj lus nug, thov hu rau kuv.

Pom zoo: