Cov txheej txheem:

Arduino Controller rau Automated 360 ° Khoom Duab: 5 Kauj Ruam (nrog Duab)
Arduino Controller rau Automated 360 ° Khoom Duab: 5 Kauj Ruam (nrog Duab)

Video: Arduino Controller rau Automated 360 ° Khoom Duab: 5 Kauj Ruam (nrog Duab)

Video: Arduino Controller rau Automated 360 ° Khoom Duab: 5 Kauj Ruam (nrog Duab)
Video: Amazing arduino project 2024, Hlis ntuj nqeg
Anonim
Image
Image
Sib sau Qhov Chaw thiab Cov Ntaub Ntawv
Sib sau Qhov Chaw thiab Cov Ntaub Ntawv

Cia peb tsim tus tswj hwm arduino raws li kev tswj hwm steppermotor thiab lub koob yees duab kaw. Ua ke nrog steppermotor tsav turntable, qhov no yog lub zog muaj zog thiab tus nqi qis rau kev siv tshuab 360 ° kev yees duab lossis cov duab thaij duab. Kev kaw lub koob yees duab tsis siv neeg yog ua raws lub tsev qiv ntawv zoo los ntawm "Sebastian Setz" thiab ua haujlwm rau lub koob yees duab infrared ua rau Nikon, Canon, Minolta, Olympus, Pentax, Sony.

Kuv tau npaj ob qho ntawm cov tswj hwm:

  • Ib qho yooj yim version uas ua haujlwm nrog lub khawm yooj yim thiab cov xwm txheej coj.
  • Ib qho kev hloov kho tshiab uas siv 16x2 LCD + lub khawm khawm thiab yog li muaj cov ntawv qhia zaub mov los hloov qhov hloov pauv "ntawm yoov" thiab tsis yog tsuas yog hauv qhov chaws.

Tus tswj hwm ua dab tsi?

Yog tias koj ua rau "kev thaij duab" los ntawm kev thawb lub pob, lub turntable ua tiav kev hloov pauv tag nrho, faib ua cov theem ua ntej tau teev tseg. Tom qab txhua kauj ruam kev sib hloov, tus tswj hwm ua kom luv thiab tom qab ntawd ua rau lub koob yees duab. Koj yuav tuaj yeem hloov pauv qhov sib txawv ntawm kev sib hloov nrawm, lub sijhawm qeeb thiab tus lej ntawm cov kauj ruam hauv qhov chaws (rau cov tswj hwm yooj yim version) lossis hauv cov zaub ntawv tso saib (qib tswj hwm qib).

Kauj Ruam 1: Sau Qhov Chaw thiab Cov Ntaub Ntawv

Sib sau Qhov Chaw thiab Cov Ntaub Ntawv
Sib sau Qhov Chaw thiab Cov Ntaub Ntawv
Sib sau Qhov Chaw thiab Cov Ntaub Ntawv
Sib sau Qhov Chaw thiab Cov Ntaub Ntawv

Qhov:

  • Arduino Uno (lossis zoo sib xws)
  • Breadboard (halfsize breadboard haum)
  • Easydriver Stepper Tsav Tsheb
  • 2X Heatsink rau Easydriver (xaiv tau tab sis HIGHLY pom zoo) https://www.sparkfun.com/products/11510Koj yuav xav tau daim kab xev cua sov txhawm rau kho lub heatsink rau ntawm lub nti. Yog tias koj xaj koj lub rhaub dej kub, xyuas kom tseeb tias daim kab xev txuas nrog lossis tuaj yeem xaj cais.
  • Infrared LED 950nm (rau IR lub koob yees duab txhais)
  • Resistor 220 ohms (pre-resistors rau infrared-LED)
  • Lub suab Piezo (yeem, yog tias koj xav kom muaj lub suab tawm tswv yim)
  • Qee qhov Jumper Wires
  • Cov Khoom Siv Hluav Taws Xob Sab Nraud rau Steppermotor Kuv tau ua qhov kev paub zoo nrog 12V 1A lub zog hloov pauv kom tsav 1A NEMA 17 Steppermotor los ntawm Trinamic. Kuv kuj muaj 24V 3A lub zog hloov pauv siv. Pawg Easydriver txhawb nqa txog 30V thiab 750mA ib ntu. Xav paub ntau ntxiv txog cov txheej txheem yooj yim-ntawm no:
  • Qhov (socket) rau steppermotor lub zog hluav taws xob sab nraud
  • Bipolar NEMA 17 Steppermotor thiab Turntable piv txwv FluxGarage "Automated Turntable Nrog Steppermotor" Txuas:

Ntxiv rau qhov yooj yim khawm-tus tswj…

  • Pushbutton
  • Resistor 10k ohms (rau lub khawm)
  • LED (xwm txheej-coj)
  • Resistor 220 ohms (pre-resistors rau xwm txheej-LED)

… LOS YOG ntxiv rau kev tswj hwm qib siab nrog zaub+keypad ntawv qhia zaub mov:

Adafruit LCD Shield Kit nrog 16x2 Cim Cim, xws li

Rub tawm Arduino cov lej thiab Fritzing daim duab rau cov tswj hwm yooj yim thiab qib siab:

Yog tias koj xav qhib daim ntawv Fritzing rau tus tswj hwm qib siab, nco ntsoov rub tawm thiab teeb tsa cov ntsiab lus adafruit:

Thov nco tseg: Ntawm daim duab kuv tab tom siv FluxGarage „Tinkerer's Baseplate“thiab FluxGarage „Phaj Pem Hauv Ntej rau 16x2 LCD + Keypad Shield”. Siv cov ntsiab lus yog nyob ntawm yeem, yog tias koj tseem xav siv lawv, nyem rau ntawm qhov txuas rau qhov hais txog kev qhia.

Kauj Ruam 2: Sib dhos Circuit

Sib dhos Circuit
Sib dhos Circuit
Sib dhos Circuit
Sib dhos Circuit
Sib dhos Circuit
Sib dhos Circuit

Solder Easydriver board rau siv daim phiaj: Txhawm rau siv tus neeg tsav tsheb yooj yim ntawm lub khob cij, koj yuav tsum tau siv qee tus txiv neej tus pin taub hau ntawm lub rooj tsavxwm. Txoj hauv kev zoo tshaj yog tso tus txiv neej tus pin lub taub hau tso rau hauv lub khob cij, tso tus tsav tsheb yooj yim rau saum thiab tom qab ntawd muab tus pas txhuam.

Kev xaim hluav taws xob: Txhim kho cov ntu raws li tau hais hauv qhov hais txog Fritzing duab rau qhov yooj yim lossis qib siab tswj. Rub tawm Daim Duab Firtzing ntawm github, nrhiav qhov txuas hauv qib 1.

Txheeb ob zaug yog tias txhua yam txuas nrog raws li hauv qab no:

  • Arduino tus pin 02 = dir pin ntawm Easydriver
  • Arduino tus pin 03 = tus lej pin ntawm Easydriver
  • Arduino tus pin 09 = tso tawm rau piezo
  • Arduino tus pin 12 = tso zis rau infrared LED (tso 220 ohms ua ntej resistor ua ntej coj)

+ rau Kev Tswjhwm Yooj Yim:

  • Arduino tus pin 04 = cov tswv yim rau khawm (tso 10k ohms resistor ua ntej khawm hauv av)
  • Arduino tus pin 13 = tso tawm rau xwm txheej LED (tso 220 ohms ua ntej resistor ua ntej coj)

+ rau Advanced Controller:

Tshuav cov zaub+cov ntaub thaiv npog rau arduino, qhov tseeb cov pins tau siv: Arduino analog pin A4+A5 thiab 5V+GND

Txuas Steppermotor: Txuas lub tshuab hluav taws xob bipolar stepper (4 xov hlau) yog hais txog kev txuas ob lub coils (A thiab B) ntawm lub cev muaj zog mus rau sab xis ntawm lub rooj tsav tsheb yooj yim. Ntau saib cov duab hauv nruab nrab ntawm nplooj ntawv no thiab ntawm Cov lus qhia tshwj xeeb ntawm koj lub tshuab stepper tshwj xeeb:

Koj kuj tseem tuaj yeem nrhiav cov ntaub ntawv ntau ntxiv txog kev txuas koj lub cav stepper thiab Easydriver ntawm no:

Txuas Lub Hwj Huam Sab Nraud Lub Rooj Tsav Xwm Easydriver muaj ob lub hwj huam sib cais ntawm sab saud sab xis (M+ thiab Hauv Paus). Thaum lub rooj tsavxwm nws tus kheej tau txais lub zog los ntawm Arduino, cov tswv yim cais muab lub zog rau cov steppermotor. Yog tias koj siv qhov qub „tawm ntawm lub thawv power lub zog hloov pauv thiab lub qhov (socket), koj yuav tsum txuas„+“xaim mus rau„ M+”tus pin ntawm tus tsav tsheb yooj yim thiab„-“xaim rau tus tsav tsheb yooj yim„ GND”tus pin. Feem ntau „+“yog nyob sab hauv, hos „-“nyob sab nraud ntawm lub ntsaws. Tab sis ceev faj, qee lub zog hloov pauv tso cai hloov pauv qhov sib txawv! Yog tias koj xaim koj tus tsav tsheb yooj yim tsis raug, nws yuav thiab tej zaum yuav raug puas ntsoog, nco ntsoov tias.

Kauj ruam 3: Upload Sourcecode rau Arduino

Upload Sourcecode rau Arduino
Upload Sourcecode rau Arduino

Rub tawm Arduino sourcecode ntawm Github:

Download tau Arduino IDE:

www.arduino.cc/en/Main/Software

Rub tawm cov tsev qiv ntawv thib peb thiab luam lawv mus rau koj li IDE lub tsev qiv ntawv ntawv tais ceev tseg:… github.com/adafruit/Adafruit-RGB-LCD-Shiel…

Cov cai tau sim thiab ua haujlwm tau zoo nrog qhov tseeb Arduino IDE (1.8.7 ntawm lub qhov rais) thiab Arduino Uno + Easydriver Stepper motor Driver + Adafruit 16x2 Display + Keypad Shield, + Trinamic stepper motor thiab Nikon D60 lub koob yees duab.

Kho cov cai kom ua haujlwm nrog koj lub koob yees duab tshwj xeeb: Raws li tau hais, kuv tau siv "multiCameraIrControl.h" tsev qiv ntawv los ntawm Sebastian Setz. Txhawm rau nws ua haujlwm rau koj lub koob yees duab, koj yuav tsum tshem tawm cov lus hais tawm ua ntej koj lub koob yees duab lub npe lub npe thiab tau kawg ntxiv cov slashes ua ntej txhua lwm lub npe chaw tsim khoom:

// Teeb Lub Koob Yees Duab Nikon D5000 (12); // Canon D5 (12); // Minolta A900 (12); // Olympus E5 (12); // Pentax K7 (12); // Sony A900 (12);

Ua qhov kev txiav txim zoo sib xws hauv "snap" ua haujlwm:

// Siv daim duab tsis pub snap () {D5000.shotNow (); // D5.shotNow (); // A900.shotNow (); // E5.shotNow (); // K7.shotNow (); // A900.shotNow ();}

Thov nco tseg: Hmoov tsis zoo, kuv tseem tsis tuaj yeem sim lwm yam IR ua rau lub koob yees duab tsis tau zoo dua li kuv tus kheej Nikon D60. Lub tsev qiv ntawv kaw lub koob yees duab yuav tsum ua haujlwm nrog ntau lub koob yees duab ntawm cov tuam txhab sib txawv, tsis yog cov qauv lub koob yees duab tshwj xeeb uas tau hais hauv txoj cai. Nws yuav zoo yog tias koj tshaj tawm cov lus pom ntawm koj kev paub nrog koj Canon, Minolta, Olympus, Pentax lossis Sony lub koob yees duab.

Kauj Ruam 4: Ua Haujlwm Tus Tswj

Ua Haujlwm Tus Tswj
Ua Haujlwm Tus Tswj
Ua Haujlwm Tus Tswj
Ua Haujlwm Tus Tswj

Cov cai raws li tus tswj hwm ua dab tsi? Yog tias koj thawb lub pob, a "photoshooting" tau tshwm sim. Txhua qhov kev yees duab thaij duab yog qhov kawg ntawm cov ntu hauv qab no:

  1. Lub koob yees duab tau tshwm sim
  2. Ncua ncua
  3. Steppermotor yuav tig tus nqi ua ntej ntawm qib
  4. Ncua ncua

Kev thaij duab yog ua raws cov txheej txheem sib txawv uas txiav txim siab nws tus cwj pwm tseeb. Koj tuaj yeem hloov cov kev hloov pauv no hauv qhov chaws (rau cov tswj hwm yooj yim version) lossis hauv cov ntawv qhia zaub mov (cov tswj hwm qib siab).

Ua haujlwm yooj yim xws li:

Ntawm tus tswj hwm qhov xwm txheej LED qhia thaum lub kaw lus npaj ua tiav. LED tua thaum koj pib thaij duab. Koj tuaj yeem cuam tshuam kev thaij duab los ntawm kev tuav lub pob kom txog thaum "cuam tshuam lub suab" tshwm thiab lub tshuab nres nres. Ua tibzoo saib cov vis dis aus hauv cov lus qhia qhia saum toj no kom pom qhov no hauv "lub neej tiag".

Cov duab hloov pauv tuaj yeem pom nyob hauv kab lus sab saum toj, thiab tuaj yeem hloov pauv los hloov kho duab. Hauv qab no koj tuaj yeem pom thawj qhov tseem ceeb:

int shootingsteps = 20; // tus naj npawb ntawm cov kauj ruam rau kev hloov pauv tag nrho, yuav tsum yog 10, 20 lossis 40float shootingspeed = 0.01; // kev sib hloov nrawm: txhua tus lej los ntawm. 01 -> 1 nrog 1 ua nrawm dua - Qaug zog dua (qeeb = zoo dua rau "hnyav" cov khoom) int shootingdelay = 1000; // tawg hauv milliseconds ua ntej thiab tom qab txhua qhov kev sib hloov

Kev khiav hauj lwm tus tswj siab heev:

Thaum tig tus tswj hwm siab qhib, FluxGarage logosplash tau qhia rau 4 vib nas this. Tom qab ntawd, tus tswj hwm tau npaj ua tiav thiab qhia cov npe ntawm cov teeb tsa hloov pauv tau:

  • ST = Tus naj npawb ntawm Cov Kauj Ruam, tuaj yeem yog 10, 20 lossis 40
  • SP = Kev sib hloov ceev, tuaj yeem yog 1-5 thaum 1 qeeb tshaj
  • DE = Ncua ua ntej thiab tom qab txhua kauj ruam hauv kaum ntawm ob, tuaj yeem yog 5, 10, 25, 50
  • LI = Txiav txim siab yog tias lub teeb pom kev tom qab qhib lossis tua thaum tua. Yuav yog 1 = rau lossis 0 = tawm

Koj tuaj yeem txav mus los ntawm hom sib txawv nrog cov laug thiab txoj cai khawm thiab hloov qhov txiaj ntsig nrog cov nyees khawm nce thiab nqis. Ua tibzoo saib cov vis dis aus hauv cov lus qhia qhia saum toj no kom pom qhov no hauv "lub neej tiag".

Kauj ruam 5: Pib Shooting

Pib Shooting
Pib Shooting

Yog tias koj tau tsim koj tus kheej cov tswj hwm + lub tshuab raj thiab koj lub koob yees duab nyob hauv qhov chaw, koj tau npaj txhij pib tua… yuav luag. Cia kuv qhia qee qhov kev kawm los ntawm kuv tus kheej kev sim:

  • Siv lub tsev pheeb suab teeb pom kev kom pom koj cov khoom zoo ib yam. Koj tuaj yeem pom ntau ntau cov lus qhia zoo ntawm no ntawm instructables.com uas qhia yuav ua li cas los tsim lub diy lub teeb. Tsis tas li, muaj cov tsev pheeb suab ntaub uas pheej yig uas tuaj yeem yuav hauv ntau lub khw hauv online.
  • Siv lub teeb pom kev zoo nrog qhov kub ib yam xim (Kelvin)
  • Ua kom pom tseeb cov khoom ntawm lub turntable manually, deactivate koj lub koob yees duab autofocus
  • Tua koj lub koob yees duab cov duab ruaj khov, yog ua haujlwm nrog lub tswb
  • Xaiv qhov ntsuas ntau nyob hauv keeb kwm yav dhau los, qhov chaw txhaj tshuaj yuav tsis tshwm. Los ntawm kev ua li ntawd, koj yuav zam qhov flickering hauv koj cov duab ua ntu zus. Lwm txoj hauv kev yog teeb tsa koj lub koob yees duab lub sijhawm raug thiab lwm yam.
  • Yog tias koj xav suav nrog koj 360-Dluab rau hauv koj lub vev xaib, siv javascript plugins zoo li "Jquery Reel Plugin" los ntawm Petr Vostřel alias "PISI", https://jquery.vostrel.cz/reel„360 Degrees Product Viewer "los ntawm" Codyhouse " “→

Nov yog qhov tshwm sim ntawm ib qho ntawm kuv qhov kev tua (tsim nrog saum toj no teeb tsa):

Pom zoo: