Cov txheej txheem:

Automated Model Railway Layout Khiav Ob Lub Tsheb ciav hlau: 9 Kauj Ruam
Automated Model Railway Layout Khiav Ob Lub Tsheb ciav hlau: 9 Kauj Ruam

Video: Automated Model Railway Layout Khiav Ob Lub Tsheb ciav hlau: 9 Kauj Ruam

Video: Automated Model Railway Layout Khiav Ob Lub Tsheb ciav hlau: 9 Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Image
Image
Tau txais txhua yam khoom tsim nyog!
Tau txais txhua yam khoom tsim nyog!

Kuv tau ua Tus Qauv Ua Qauv Tsheb Ciav Hlau Nrog Hla Siding ib pliag rov qab. Thaum thov los ntawm ib tus tswv cuab koom nrog, Kuv tau ua Cov Lus Qhia no. Qhov no zoo ib yam li qhov haujlwm tau hais ua ntej. Cov txheej txheem haum ob lub tsheb ciav hlau thiab khiav lawv lwm txoj. Yog li, yam tsis muaj ado ntxiv, cia peb pib!

Kauj Ruam 1: Tau Txais Txhua Yam Khoom Tsim Nyog

Rau txoj haujlwm no, ntawm no yog cov npe ntu:

  • Arduino microcontroller board (UNO, MEGA, Leonardo, thiab cov uas zoo sib xws raug pom zoo).
  • L298N dual H-choj tsav lub cav tsav tsheb.
  • 4 tus txiv neej rau poj niam jumper xov hlau (txuas cov digital outputs ntawm Arduino board rau cov tswv yim ntawm lub rooj tsav tsheb tsav).
  • 4 tus txiv neej rau txiv neej jumper xov hlau los txuas cov neeg tawm mus rau lub rooj tsav tsheb tsav.
  • 2 txiv neej rau txiv neej jumper xov hlau txuas txuas lub zog rau tus tsav tsheb.
  • Ib qho 'sensored' khiav.

Kauj Ruam 2: Program Arduino Board

Program lub Arduino Board
Program lub Arduino Board

Yog tias koj tsis muaj Arduino IDE hauv koj lub computer, rub tawm los ntawm no. Lub tsev qiv ntawv rau Adafruit lub tshuab tsav tsheb tuaj yeem pom ntawm no, yog tias koj tsis muaj nws hauv koj li IDE. Nco ntsoov tias koj teeb tsa qhov no hauv koj li IDE ua ntej sau cov program. Yog tias koj xav tau kev pab txhim kho lub tsev qiv ntawv, txheeb xyuas qhov txuas no.

Nco ntsoov tias koj dhau los ntawm Arduino program ua ntej rub tawm nws ntawm koj lub Arduino board. Txij li feem ntau ntawm kev ua haujlwm yog ua raws lub sijhawm (yog vim li cas peb thiaj li tswj hwm nws nrog tib lub ntsuas!). Tej zaum koj yuav tsum tau hloov qee qhov txiaj ntsig vim tias qhov loj me ntawm kev teeb tsa tuaj yeem cuam tshuam yuav ua li cas cov tsheb ciav hlau yuav ua nyob ib puag ncig qhov teeb tsa, qhov twg tsheb ciav hlau yuav nres, thiab lwm yam. Koj yuav tau txais lub tswv yim ntawm nws ua haujlwm li cas thiab koj tseem tuaj yeem hloov kho nws ua txhua yam koj ua tau.

Kauj ruam 3: Teeb Layout

Teeb Layout
Teeb Layout

Kauj Ruam 4: Kawm txog Circuit Schematic

Kawm txog Circuit Schematic
Kawm txog Circuit Schematic

Xyuas kom koj mus dhau txhua yam ntawm cov ntsiab lus ua ntej mus.

Kauj Ruam 5: Ua Kev Txuas Hluav Taws Xob

Ua Kev Txuas Hluav Taws Xob
Ua Kev Txuas Hluav Taws Xob
Ua Kev Txuas Hluav Taws Xob
Ua Kev Txuas Hluav Taws Xob
Ua Kev Txuas Hluav Taws Xob
Ua Kev Txuas Hluav Taws Xob
Ua Kev Txuas Hluav Taws Xob
Ua Kev Txuas Hluav Taws Xob

Nco ntsoov tias tsis muaj kev sib txuas xov hlau xoob.

Kauj Ruam 6: Muab Cov Locomotives tso rau ntawm Txoj Kev

Muab cov Locomotives tso rau ntawm Txoj Kev
Muab cov Locomotives tso rau ntawm Txoj Kev

Cia peb tsuas yog siv lub locomotives rau kev sim ntsuas. Ua kom ntseeg tau tias cov tsheb ciav hlau tau raug ntxuav kom zoo ua ntej pib qhov kev sim txhawm rau tiv thaiv kom tsis txhob muaj tsheb nqaj hlau.

Kauj Ruam 7: Fais fab Kev Teeb

Fais fab Kev Teeb
Fais fab Kev Teeb

Txuas lub 12-volt DC adapter rau Arduino board lub hwj chim nkag, ntsaws rau hauv lub adapter thiab tig lub zog rau.

Kauj ruam 8: Nws Ua tiav

Kauj ruam 9: Koj puas tau ua tiav?

Yog tias koj tau ua txoj haujlwm no thiab yog tias koj tuaj yeem ua tau, qhia koj li hauv qab no rau lwm tus kom pom koj txoj haujlwm. Mus tom ntej! Txhua yam zoo tshaj plaws!

Pom zoo: