TMF2-2 RhB scale G locomotive
Print Profile(2)


Bill of Materials
- ESP8266 Nodemcu x 1: https://www.aliexpress.com/item/1005006889833004.html?spm=a2g0o.productlist.main.3.2f842a68Q4hQFD&algo_pvid=a46444b2-a525-4b4c-a8c4-d00637fad9a3&algo_exp_id=a46444b2-a525-4b4c-a8c4-d00637fad9a3-2&pdp_ext_f=%7B%22order%22%3A%221222%22%2C%22eval%22%3A%221%22%7D&pdp_npi=4%40dis%21CHF%212.33%212.18%21%21%212.86%212.67%21%40211b629217525882594645931e4046%2112000038628898661%21sea%21CH%212279045587%21X&curPageLogUid=mIjgpkUlY94j&utparam-url=scene%3Asearch%7Cquery_from%3A
- L9110S H-bridge Stepper Motor Dual DC Stepper x 1: https://www.aliexpress.com/item/1005007606147009.html?spm=a2g0o.productlist.main.20.12815cb8dwBBR4&algo_pvid=d8eba33d-4003-4b5c-b7ee-e5412426ce15&algo_exp_id=d8eba33d-4003-4b5c-b7ee-e5412426ce15-19&pdp_ext_f=%7B%22order%22%3A%2224%22%2C%22eval%22%3A%221%22%7D&pdp_npi=4%40dis%21CHF%211.75%211.02%21%21%2115.39%218.93%21%40211b81a317526057037736944e672f%2112000041479563188%21sea%21CH%212279045587%21X&curPageLogUid=W6QE17MQfNU3&utparam-url=scene%3Asearch%7Cquery_from%3A
- Mini Rocker Switch x 1: https://www.aliexpress.com/item/4000973563250.html?spm=a2g0o.productlist.main.17.73712958agsrsV&algo_pvid=6c7cab0d-fd27-4e22-a651-c5ac3c5e6fdb&algo_exp_id=6c7cab0d-fd27-4e22-a651-c5ac3c5e6fdb-16&pdp_ext_f=%7B%22order%22%3A%224278%22%2C%22eval%22%3A%221%22%7D&pdp_npi=4%40dis%21CHF%210.89%210.86%21%21%211.09%211.05%21%402103835c17526058727463205e7f1c%2112000036659982728%21sea%21CH%212279045587%21X&curPageLogUid=F4ANKNIVJrwR&utparam-url=scene%3Asearch%7Cquery_from%3A
- Screws x 1: https://www.aliexpress.com/item/1005006984047820.html?spm=a2g0o.productlist.main.12.5c75jhW7jhW7mQ&algo_pvid=6c4411c2-adc6-4894-89e6-33d133678f9a&algo_exp_id=6c4411c2-adc6-4894-89e6-33d133678f9a-11&pdp_ext_f=%7B%22order%22%3A%224882%22%2C%22eval%22%3A%221%22%7D&pdp_npi=4%40dis%21CHF%217.98%213.75%21%21%2170.35%2133.06%21%402103835c17525960804327645e7f14%2112000038943295561%21sea%21CH%212279045587%21X&curPageLogUid=tvofUzF4dvtQ&utparam-url=scene%3Asearch%7Cquery_from%3A
- Cables x 1: https://www.aliexpress.com/item/1005009358657650.html?spm=a2g0o.productlist.main.17.594671c4zwe3Gi&algo_pvid=028fb2ff-6b5e-4534-835f-44c3636649a4&algo_exp_id=028fb2ff-6b5e-4534-835f-44c3636649a4-16&pdp_ext_f=%7B%22order%22%3A%2228%22%2C%22eval%22%3A%221%22%7D&pdp_npi=4%40dis%21CHF%2117.38%218.51%21%21%21153.15%2175.04%21%40211b876717526061754481802e417f%2112000048858790448%21sea%21CH%212279045587%21X&curPageLogUid=pqnoEx0LLS3r&utparam-url=scene%3Asearch%7Cquery_from%3A
- Battery Holder 18650 x 1: https://www.aliexpress.com/item/1005005915316572.html?spm=a2g0o.order_list.order_list_main.658.40ec1802HEkfxo
- M2 6mm screw x 4: https://www.aliexpress.com/item/10000183209605.html?spm=a2g0o.order_list.order_list_main.703.40ec1802HEkfxo
- M2 Nuts x 4: https://www.aliexpress.com/item/4000602853448.html?spm=a2g0o.productlist.main.4.3b141eedt8FPqg&algo_pvid=f0a8c27b-498f-49af-9be1-1deef949b1cd&algo_exp_id=f0a8c27b-498f-49af-9be1-1deef949b1cd-3&pdp_ext_f=%7B%22order%22%3A%223060%22%2C%22eval%22%3A%221%22%7D&pdp_npi=4%40dis%21CHF%211.08%211.05%21%21%211.33%211.29%21%40210391a017526063433052888eb708%2110000003767007634%21sea%21CH%212279045587%21X&curPageLogUid=cMhy5phk8MX5&utparam-url=scene%3Asearch%7Cquery_from%3A
Description
This is a remote-controlled locomotive that can be operated via a NodeMCU ESP8266.
Remote Controller:
Link to the remote controller: https://makerworld.com/en/models/1609494-remote-control-for-the-g-scale-locomotive#profileId-1697623
Tracks:
curves: https://makerworld.com/en/models/1608501-g-scale-train-tracks#profileId-1696464
straight tracks: https://makerworld.com/en/models/1608589-straight-g-scale-train-tracks#profileId-1696575
left-hand switche: https://makerworld.com/en/models/1608801-left-switch-track-scale-g#profileId-1696815
right-hand switche: https://makerworld.com/en/models/1608777-right-switch-track-scale-g#profileId-1696788
Videos:
Build Instructions for the 3D Printed G-Scale Train System
All of these parts should be 3D printed.

- Take the base plate and install the motors as follows:
- Flash the NodeMCU with the following firmware so that you can upload the Arduino code: How to Flash NodeMCU Firmware in ESP8266 : 7 Steps - Instructables
- Upload the train_system.ino code to the NodeMCU: Train_Control_System/train_system/train_system.ino at main · CarviFPV/Train_Control_System
a. You can do this as follows: How to Setup and Program NodeMCU ESP8266–Complete Guide - You should now be able to access the interface. The Wi-Fi SSID is: TrainAP and the password is: 12345678
- You should now see this interface on http://192.168.4.1:
- Wire the pins between the NodeMCU and the motor driver (L9110S H-bridge Stepper) as follows:
- motor1A = D1
- motor1B = D2
- motor2A = D4
- motor2B = D3
- Here are a few more pictures of the wiring
- The battery holder goes underneath the locomotive as follows:
- The cockpit can be used to install an on/off switch.
- Screw the remaining parts together.
- It should now look like this:



My GitHub repository where the code is stored: CarviFPV/Train_Control_System: Remote Control System for Modell Trains with Nodemcu
License
You shall not share, sub-license, sell, rent, host, transfer, or distribute in any way the digital or 3D printed versions of this object, nor any other derivative work of this object in its digital or physical format (including - but not limited to - remixes of this object, and hosting on other digital platforms). The objects may not be used without permission in any way whatsoever in which you charge money, or collect fees.


























Comment & Rating (47)