Cov txheej txheem:

Stepper Tsav Tswj Cov Qauv Tsav Tsheb - Stepper Lub Cev Ua Raws Li Lub Hau Encoder: 11 Kauj Ruam (nrog Duab)
Stepper Tsav Tswj Cov Qauv Tsav Tsheb - Stepper Lub Cev Ua Raws Li Lub Hau Encoder: 11 Kauj Ruam (nrog Duab)

Video: Stepper Tsav Tswj Cov Qauv Tsav Tsheb - Stepper Lub Cev Ua Raws Li Lub Hau Encoder: 11 Kauj Ruam (nrog Duab)

Video: Stepper Tsav Tswj Cov Qauv Tsav Tsheb - Stepper Lub Cev Ua Raws Li Lub Hau Encoder: 11 Kauj Ruam (nrog Duab)
Video: #800 Twhizz800 X KM800 X GSAV800 X M1800 X YSHMURDA800 - Intro (Official Release) 2024, Lub Xya hli ntuj
Anonim
Stepper Motor Controlled Model Locomotive | Stepper Tsav Raws Li Cov Encoder Teb
Stepper Motor Controlled Model Locomotive | Stepper Tsav Raws Li Cov Encoder Teb

Hauv ib qho ntawm Cov Lus Qhia yav dhau los, peb tau kawm paub yuav siv lub tshuab stepper li cas los ua tus lej nkag teb chaws. Hauv txoj haujlwm no, tam sim no peb yuav siv lub tshuab hluav taws xob stepper tig lub cav nkag los tswj tus qauv tsheb ciav hlau siv Arduino microcontroller. Yog li, yam tsis muaj ado ntxiv, cia peb pib!

Kauj ruam 1: Saib Video

Image
Image

Saib cov vis dis aus tau pom zoo ua ntej mus txuas ntxiv pab peb kom tau txais lub tswv yim zoo ntawm txoj haujlwm thiab tseem nkag siab txog kev tswj hwm.

Kauj Ruam 2: Tau Txais Cov Khoom thiab Cov Khoom Siv

Tau Txais Cov Khoom thiab Cov Khoom Siv
Tau Txais Cov Khoom thiab Cov Khoom Siv
Tau Txais Cov Khoom thiab Cov Khoom Siv
Tau Txais Cov Khoom thiab Cov Khoom Siv

Rau qhov haujlwm no, koj yuav xav tau:

  • Ib lub Arduino microcontroller board tau tshaj Adafruit Motor Sheild V2.
  • Ib qho *Adafruit Motor Shield V2.
  • Stepper lub cev muaj zog tig teb encoder.
  • 4 tus txiv neej rau poj niam jumper xov hlau (Rau kev txuas lub tshuab ua kom lub suab hloov mus rau Arduino microcontroller)
  • 12-volt DC fais fab tuag.

*Adafruit Motor Shield V2 sib tham nrog Arduino microcontroller ntawm I2C thiab yog li siv tsuas yog ob tus pin ntawm Arduino microcontroller ('SCL', A5 thiab 'SDA', A4). Qhov no pab txuag lwm I/O pins. Tsis tas li, ntsaws rau ntawm daim ntaub thaiv kom txo cov thaiv thiab ua rau nws zoo dua.

Kauj Ruam 3: Program Arduino Microcontroller

Program Arduino Microcontroller
Program Arduino Microcontroller

Nco ntsoov tias koj muaj Adafruit Motor Shield V2 lub tsev qiv ntawv teeb tsa ntawm Arduino IDE. Yog tsis yog, koj tuaj yeem rub nws los ntawm no.

Kauj Ruam 4: Teeb Txoj Kev Xeem

Teeb Txoj Kev Xeem
Teeb Txoj Kev Xeem

Xyuas kom tseeb tias txoj kab ciav hlau raug ntxuav.

Kauj Ruam 5: Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board

Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board
Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board

Txhim kho daim thaiv tsav tsheb rau ntawm pawg thawj coj Arduino los ntawm kev ua tib zoo kho tus pin ntawm pawg tsav tsheb nrog poj niam lub taub hau ntawm Arduino board. Saib xyuas ntxiv kom ntseeg tau tias cov pins tsis tau khoov hauv cov txheej txheem teeb tsa.

Kauj Ruam 6: Txuas Txuas Lub Hwj Huam mus rau Lub Cev Tsav Tsheb

Txuas Txuas Lub Hwj Chim rau Lub Tshuab Tsav Tsheb
Txuas Txuas Lub Hwj Chim rau Lub Tshuab Tsav Tsheb

Txuas cov kab hluav taws xob txuas hluav taws xob txuas mus rau qhov kawg ntawm lub cav thaiv lub cim 'M4'.

Kauj Ruam 7: Txuas Stepper Motor mus rau Amplifier

Txuas Stepper Motor mus rau Amplifier
Txuas Stepper Motor mus rau Amplifier
Txuas Stepper Motor mus rau Amplifier
Txuas Stepper Motor mus rau Amplifier
  • Rau unipolar stepper motors:

    1. Txuas lub xov tooj cua nruab nrab ntawm lub cav mus rau tus cim cim 'Q' lossis 'R'.
    2. Txuas ib qho ntawm ob ntawm plaub kab txuas ntxiv mus rau tus pin 'P' thiab 'S'.
  • Rau bipolar stepper motors:

    Txuas lub cav cov xov hluav taws xob mus rau lub davhlau ya nyob twg raws li txheej txheem txheej txheem saum toj no

Kauj Ruam 8: Txuas lub Amplifier rau Arduino Board

Txuas lub Amplifier rau Arduino Board
Txuas lub Amplifier rau Arduino Board
Txuas lub Amplifier rau Arduino Board
Txuas lub Amplifier rau Arduino Board

Txuas tus amplifier 'GND' thiab +ve davhlau ya nyob twg rau 'GND' thiab ' +5-volt' pins ntawm Arduino board feem. Txuas cov pins tso tawm ntawm pawg thawj coj saib lub zog rau cov lej nkag digital 'D6' thiab 'D7' ntawm Arduino board.

Kauj Ruam 9: Tso lub Locomotive rau ntawm Txoj Kev

Muab lub Locomotive tso rau ntawm Txoj Kev
Muab lub Locomotive tso rau ntawm Txoj Kev

Muab lub locomotive tso rau ntawm qhov chaw xeem. Xyuas kom lub log sib dhos kom zoo nrog cov ntsia hlau. Kev siv cov cuab yeej rov qab tsim nyog raug pom zoo.

Kauj Ruam 10: Fais fab Teeb thiab teeb tsa Kev Tswj

Image
Image

Txuas qhov teeb tsa mus rau 12-volt DC lub zog siv hluav taws xob thiab qhib lub zog. Txheeb xyuas tias txhua yam ua haujlwm tau zoo raws li qhia hauv video saum toj no.

Kauj Ruam 11: Qhia Koj Txoj Haujlwm

Yog tias koj tau ua koj txoj haujlwm, vim li cas ho tsis qhia rau zej zog. Kev sib qhia koj txoj haujlwm tuaj yeem pab txhawb lwm tus los ua txoj haujlwm no ib yam.

Mus tom ntej thiab nyem rau ntawm 'Kuv Ua Nws!' thiab qhia qee cov duab ntawm koj qhov kev tsim, peb tab tom tos!

Pom zoo: