This remote control is used to operate the TMF2-2 G-scale locomotive using a NodeMCU and a rotary encoder.
Video:
Build Instructions:
- Print all parts of the remote control.
- Flash the NodeMCU with the specified firmware so that you can upload the Arduino code
- How to Flash NodeMCU Firmware in ESP8266 : 7 Steps - Instructables
- Upload the Train_controller.in code to the NodeMCU: Train_Control_System/Train_controller/Train_controller.ino at main · CarviFPV/Train_Control_System
- You can do this as follows: How to Setup and Program NodeMCU ESP8266–Complete Guide
- Connect the rotary encoder as follows:
a. // Rotary encoder pins
b. D6 // CLK
D5 // DT
c. D7 // SW - Connect the WiFi LED as follows:
ledWifi = D0; // WiFi status LED - The LED will light up as soon as a connection to the locomotive has been established.
- Here are a few examples of the wiring:
My GitHub repository where the code is stored: CarviFPV/Train_Control_System: Remote Control System for Modell Trains with Nodemcu
License:
Standard Digital File License