Cov txheej txheem:

Automated Model Railroad Layout With Reverse Loops: 14 Kauj Ruam
Automated Model Railroad Layout With Reverse Loops: 14 Kauj Ruam

Video: Automated Model Railroad Layout With Reverse Loops: 14 Kauj Ruam

Video: Automated Model Railroad Layout With Reverse Loops: 14 Kauj Ruam
Video: Automatic Reversers on the Mainline of My Model Railroad 2024, Kaum ib hlis
Anonim
Automated Model Railroad Layout Nrog Rov Qab Loops
Automated Model Railroad Layout Nrog Rov Qab Loops

Hauv ib qho ntawm kuv Cov Lus Qhia yav dhau los, Kuv tau qhia yuav ua li cas thiaj ua tau yooj yim Automated Point to Point Model Railroad. Ib qho ntawm qhov tsis zoo ntawm txoj haujlwm ntawd yog lub tsheb ciav hlau yuav tsum tau txav mus rau qhov rov qab rau rov qab mus rau qhov pib. Khiav lub tsheb ciav hlau hauv qhov kev teeb tsa txhais tau tias nws yuav tsum tau khiav rov qab nrog lub tsheb ciav hlau nyob tom qab. Yog li, hauv Cov Lus Qhia no, cia peb kawm ua tus qauv zoo sib xws nrog lub voj rov qab ntawm txhua qhov kawg yog li peb lub tsheb ciav hlau tuaj yeem khiav mus rau tom ntej txhua lub sijhawm. Cia peb pib!

Kauj ruam 1: Saib Video

Image
Image

Saib cov vis dis aus saum toj no kom nkag siab zoo dua ntawm txoj haujlwm no.

Kauj ruam 2: Tau txais tag nrho cov khoom xav tau

Tau Txais Txhua Yam Yuav Tsum Muaj
Tau Txais Txhua Yam Yuav Tsum Muaj

Rau qhov haujlwm no, koj yuav xav tau:

  • Cov khoom siv hluav taws xob:

    • Arduino microcontroller sib xws nrog Adafruit Motor Shield V2. (1)
    • Adafruit Motor Shield V2.
    • 2 'Sensored' khiav.
    • 10 tus txiv neej rau txiv neej jumper xov hlau.
    • 12-volt DC fais fab tuag.
  • Qauv khoom siv tsheb ciav hlau:

    • 2 kev tawm mus (Ib qho rau txhua lub voj rov qab).
    • 3 txoj kev pub khoom noj (Ib qho rau lub ntsiab lus tseem ceeb thiab ob seem rau txhua lub voj rov qab).
    • 4 cov tsheb nqaj hlau txuas nrog (Tau 4 ntxiv yog tias cov neeg siv tawm los tsis muaj "Power Routing" feature).

1. Txhua R3 Arduino board xws li UNO, Leonardo, thiab cov zoo sib xws tuaj yeem siv tau. Cov laug cam zoo li Mega kuj tseem tuaj yeem siv nrog kev hloov kho me ntsis (Tau txais kev pab ntawm no).

Kauj Ruam 3: Program Arduino Microcontroller

Program Arduino Microcontroller
Program Arduino Microcontroller

Kuv yuav pom zoo kom hla tus lej Arduino kom nkag siab tob dua ntawm txoj cai ua haujlwm li cas hauv kev ua kom lub tsheb ciav hlau khiav ncig qhov teeb tsa.

Kauj Ruam 4: Hloov Cov Neeg Koom Nrog Rail ntawm Kev Tawm

Hloov cov Rail Joiners ntawm Turnouts
Hloov cov Rail Joiners ntawm Turnouts

Yog tias qhov kev tawm mus siv tau muaj qhov "Lub Hwj Chim" qhov tshwj xeeb ces tsuas yog txoj kab sab nrauv yuav tsum tau muab hluav taws xob cais tawm uas siv cov tsheb nqaj hlau thaiv. Yog tias qhov kev siv tawm mus los tsis muaj qhov tshwj xeeb no, tag nrho 4 txoj kab yuav tsum raug cais tawm hluav taws xob.

Kauj Ruam 5: Teeb Tus Txheej Txheem

Teeb Layout
Teeb Layout
Teeb Layout
Teeb Layout

Txoj kab 'hnov qab' yuav raug teeb tsa ntawm qhov nkag ntawm txhua qhov rov qab. Cov kab tseem ceeb thiab ob lub voj rov qab txhua tus yuav muaj cov khoom sib cais.

Txiav txim siab qhov twg ntawm cov loops yuav yog loop A thiab B. Lub voj uas lub tsheb ciav hlau yuav nkag mus thawj zaug thaum pib yuav yog loop A thiab lwm qhov yuav yog loop B. hauv kab B yuav yog cov neeg tawm mus B.

Kauj Ruam 6: Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board thiab Txuas Cov Hluav Taws Xob thiab Cov Hluav Taws Xob

Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board thiab Txuas Cov Hluav Taws Xob thiab Cov Hluav Taws Xob
Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board thiab Txuas Cov Hluav Taws Xob thiab Cov Hluav Taws Xob
Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board thiab Txuas Cov Hluav Taws Xob thiab Cov Hluav Taws Xob
Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board thiab Txuas Cov Hluav Taws Xob thiab Cov Hluav Taws Xob
Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board thiab Txuas Cov Hluav Taws Xob thiab Cov Hluav Taws Xob
Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board thiab Txuas Cov Hluav Taws Xob thiab Cov Hluav Taws Xob
Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board thiab Txuas Cov Hluav Taws Xob thiab Cov Hluav Taws Xob
Txhim Kho Lub Cev Tsav Tsheb ntawm Arduino Board thiab Txuas Cov Hluav Taws Xob thiab Cov Hluav Taws Xob

Kev tawm:

Ob qhov kev tawm mus yuav tsum tau txuas nrog ua ke tab sis nyob hauv qhov tsis sib thooj sib txawv kom lawv ib txwm hloov pauv hauv cov lus qhia rov qab.

  • Txuas qhov kev tawm tsam A mus rau lub cav thaiv raws li pom hauv daim duab 4.
  • Txuas qhov kev tawm tsam B mus rau lub cav thaiv raws li qhia hauv daim duab 5.

Taug qab feeders:

Cov khoom noj khoom noj rau ob qho rov qab loops yuav tsum tau txuas nrog ua ke nrog tib qhov sib txawv kom lub tsheb ciav hlau txav mus rau tib qho kev coj ua hauv ob lub loops, piv txwv li, nkag los ntawm kab kab ntawm txoj kev tawm thiab tawm ntawm sab ncaj (Saib cov vis dis aus hauv Kauj Ruam 1 kom paub meej ntxiv).

  • Txuas cov kab hluav taws xob txuas hluav taws xob txuas mus rau lub cev tiv thaiv kab mob raws li qhia hauv daim duab 5. Ua kom ntseeg tau tias qhov sib txuas ntawm qhov sib txuas yog qhov uas lub tsheb ciav hlau txav mus rau lub voj A thaum pib.
  • Txuas cov kab hluav taws xob txuas hluav taws xob txuas mus rau lub cav thaiv raws li pom hauv daim duab 6.

Kauj Ruam 7: Txuas lub Sensors

Txuas cov Sensors
Txuas cov Sensors
Txuas cov Sensors
Txuas cov Sensors
Txuas cov Sensors
Txuas cov Sensors

Txuas cov ntsuas '-ve tus pin mus rau' GND 'header thiab +v pins rau +5 -volt header. 'IQREF' tus pin ntawm Arduino board kuj tseem tuaj yeem siv ua +5-volt kev txuas rau lub zog ntsuas hluav taws xob rau cov laug cam ua haujlwm ntawm lub logic voltage theem ntawm 5-volts.

Txuas lub sensor qhov tso tawm tus pin uas nyob ib sab rau thawj lub voj rov qab rau cov tswv yim 'A0' ntawm Arduino pawg thawj coj saib thiab tus pin tso tawm ntawm lub sensor nyob ib sab rau lub voj rov qab thib ob rau tus pin nkag 'A1' ntawm Arduino board.

Kauj Ruam 8: Txheeb Ob Zaug Txhua Qhov Txuas Hluav Taws Xob

Nco ntsoov tias txhua txoj hlua tau ua tiav kom raug thiab tsis muaj kev sib txuas xoob.

Kauj Ruam 9: Txuas Lub Teeb rau Fais Fab

Txuas lub Teeb rau Fais Fab
Txuas lub Teeb rau Fais Fab
Txuas lub Teeb rau Fais Fab
Txuas lub Teeb rau Fais Fab

Koj tuaj yeem txuas tus Adapter mus rau Arduino pawg thawj coj poj niam DC jack txuas lossis koj tuaj yeem siv lub davhlau ya nyob twg thaiv ntawm lub cav tiv thaiv kom muaj zog los teeb tsa.

Kauj Ruam 10: Muab Tsheb nqaj hlau/tsheb ciav hlau tso rau ntawm Kab Kab

Muab Cov Tsheb ciav hlau/tsheb ciav hlau tso rau ntawm Mainline
Muab Cov Tsheb ciav hlau/tsheb ciav hlau tso rau ntawm Mainline

Kev siv cov cuab yeej rerailer tau pom zoo heev, tshwj xeeb tshaj yog rau chav tso tsheb hlau luam. Nco ntsoov tias lub log ntawm lub tsheb ciav hlau thiab cov khoom thauj khoom (Yog tias siv) ua kom raug raws txoj kab.

Kauj Ruam 11: Fais fab Kev Teeb

Fais fab Kev Teeb
Fais fab Kev Teeb

Kauj Ruam 12: Saib Koj Lub Tsheb ciav hlau Mus

Tom qab fais fab tuag, qhov kev tawm suab hauv lub voj A yuav tsum hloov mus rau sab thiab cov neeg tawm hauv lub voj B yuav tsum hloov mus ncaj. Tom qab ntawd, lub tsheb ciav hlau/tsheb ciav hlau yuav tsum pib ua mus rau lub voj A.

Yog tias muaj qee yam tsis raug, tshem lub zog teeb tsa tam sim ntawd txhawm rau tiv thaiv cov tsav tsheb kom tsis txhob kib.

Kauj Ruam 13: Troubleshoot Yog Xav Tau

Yog tias qhov kev hloov pauv tshwj xeeb hauv txoj kev tsis raug, thim rov qab qhov sib txawv ntawm nws qhov kev sib txuas. Ua tib yam rau cov khoom siv hluav taws xob khiav yog tias lub tsheb ciav hlau pib txav mus rau qhov tsis raug.

Yog tias teeb tsa rov pib dua tom qab ib ntus tom qab pib ua haujlwm txawm tias qhov kev hloov pauv tau hloov pauv kom raug, txheeb xyuas qhov tsis sib xws ntawm kev sib txuas ntawm cov kab noj ntawm txoj kab rov qab thiab xyuas kom tseeb tias tam sim no ntws mus rau qhov raug, thim rov qab qhov tsis sib xws yog xav tau

Kauj Ruam 14: Mus Furthur

Mus Furthur
Mus Furthur

Tom qab koj tau txais koj txoj haujlwm ua haujlwm tiav, vim li cas ho tsis tinker nrog nws? Hloov cov cai Arduino kom haum rau koj cov kev xav tau, ntxiv cov yam ntxwv ntxiv, tej zaum yog hla dhau? Los yog khiav ntau lub tsheb ciav hlau? Txawm koj ua dab tsi, txhua qhov zoo tshaj plaws!

Pom zoo: