Cov txheej txheem:

Microcontrollers thiab Stepper Motor: 4 Kauj Ruam
Microcontrollers thiab Stepper Motor: 4 Kauj Ruam

Video: Microcontrollers thiab Stepper Motor: 4 Kauj Ruam

Video: Microcontrollers thiab Stepper Motor: 4 Kauj Ruam
Video: MAGNETIC AMPLIFIER ITS PRINCIPLE, OPERATION AND USES 2024, Kaum ib hlis
Anonim
Microcontrollers thiab Stepper Motor
Microcontrollers thiab Stepper Motor

Microcontrollers yog cov khoos phis tawj me me ntawm lub nti. Lawv ua cov haujlwm rau kev tswj hwm lwm cov khoom siv.

Stepper motors yog cov cav uas txav hauv cov kauj ruam tsis sib xws. Lawv siv hauv tshuab luam ntawv, moos thiab lwm yam khoom siv.

Lub voj voog no yuav siv lub microcontroller los tswj lub tshuab hluav taws xob.

Kauj Ruam 1: Cov Npe Ntawm Cov Khoom Siv Hluav Taws Xob

Cov Npe Ntawm Cov Khoom Siv Hluav Taws Xob
Cov Npe Ntawm Cov Khoom Siv Hluav Taws Xob

Lub voj voog no yuav xav tau;

Ib Arduino Uno

AT Me me (85 lossis 45)

stepper tsav

daim ntawv qhia zaub mov

9 volt roj teeb

ua

Kauj ruam 2: AT Tiny

lub AT Tiny
lub AT Tiny

AT ATiny (45 lossis 85) yuav raug siv hauv Circuit Court.

Qhov ntsuas hluav taws xob tau siv rau tus pin 8 uas muaj cov hlau lead liab nyob ntawd.

Hauv av yog ntawm tus pin 4 uas muaj cov hlau lead dub nyob ntawd.

Tus Pin 5 thiab Tus Pin 6 yog PWM (mem tes dav hloov pauv cov txiaj ntsig) uas txhais tau hais tias pulses tau tsim tawm ntawm qhov zaus.

Cov mem tes no yuav raug siv rau lub tshuab tsav tsheb kom tsav nws.

Kauj Ruam 3: Txuas Stepper Motor

Txuas Stepper Tsav
Txuas Stepper Tsav

Cov txiv kab ntxwv ua los ntawm tus pin 5 ntawm AT Me me mus rau Channel A ntawm lub tshuab hluav taws xob.

Cov ntshav liab coj mus rau tus pin 6 ntawm AT Tiny mus rau Channel B ntawm tus tsav tsheb.

Cov liab thiab dub coj ntawm lub cav mus rau lub roj teeb 9 volt.

Qhov ntsuas hluav taws xob ntawm lub cav mus rau 5 volts ntawm lub khob cij. (Nws yog xim liab).

Cov av los ntawm lub cav mus rau hauv av ntawm lub rooj tsavxwm.

Kauj Ruam 4: Arduino Uno 3 thiab Zaum Kawg

Arduino Uno 3 thiab Cov Lus Kawg Kawg
Arduino Uno 3 thiab Cov Lus Kawg Kawg

Arduino Uno muaj 5 qhov hluav taws xob uas tau txuas nrog lub rooj tsavxwm (liab liab)

Av los ntawm Arduino txuas nrog rau hauv av ntawm lub rooj tsavxwm (cov hmoov dub.)

Tam sim no lub voj voog tiav lawm.

ATTiny muaj qhov ntsuas hluav taws xob dav dav hloov pauv uas yuav tsav lub tshuab hluav taws xob nrog lub roj teeb 9 volt..

Arduino Uno muab lub zog (5 volts) rau AT Tiny. Lub cev muaj zog tau teeb tsa ntawm 437 rpm. Nws ua haujlwm ntawm

307rpm ua.

Qhov haujlwm no kuv tsim los ntawm Tinkercad. Nws tau sim ntawm Tinkercad thiab ua haujlwm.

Kuv vam tias cov phiaj xwm no pab koj nkag siab microcontrollers thiab stepper motors zoo dua.

Pom zoo: