Introduction: Controll Railway Model With Visuino Programmed ESP8266 Wi-Fi

The project is under construction.

The aim of the project is to achieve locomotive control via wifi with two ESP8266 modules.
The power supply of the locomotive is a 7.2 volt battery.

The new brushless motor is used to drive the old locomotive model.

Analog speed control is made with a potentiometer.

Turning on and off the lights and changing the direction of travel is done with the buttons.

From the locomotive we get the actual engine revolutions and the calculated distance traveled.

In addition, we receive an analogue battery voltage signal.

The motor control is via PWM 1 kHz. The best would be 3710 Hz.
The biggest problem was the simultaneous operation of two analog inputs.

Step 1: Components

Components Manual and Lok Controll.
1. 2 NodeMCU ESP8266 boards.

2. 1 Nidec 13H055B020 BLDC motor with BD6922 driver inside.

3. 1 UP DC/DC converter.

4. 1 DOWN DC/DC converter.

5. 1 Potentiometer 100k lin.

Step 2: Nidec 13H055B020 Jumpers

1. Nidec 13H055B020 jumper remove.

2. Nidec 13H055B020 new jumpers

Step 3: ESP8266 NodeMcu Configuration Wifi.

ESP8266 NodeMcu configuration wifi based:

https://www.instructables.com/id/ESP8266-and-Visui...

Step 5 and 6.

Step 4:

ESP8266 NodeMcu configuration wifi.

Step 5:

Add and Connect Make Structure.

Step 6:

Add and Connect Split Structure.

Step 7:

Add and Connect Complementary Analog Filter

Step 8:

Add and Connect Divide By Value.

Step 9:

Add and Connect Divide By Value.

Step 10:

Add and Connect Integrer To Analog.

Step 11:

Add and Connect Divide By Value.

Step 12:

Add and Connect Divide By Value.

Step 13:

Add and Connect Complementary Analog Filter.

Step 14:

Add, Configure and Connect Packet.

Step 15:

Add and Connect Formatted Text.

Step 16:

Step 17:

Step 18: Configure Wifi

ESP8266 NodeMcu configuration wifi based:
https://www.instructables.com/id/ESP8266-and-Visui...

Step 14 and 15.

Step 19:

Step 20:

Step 21:

Step 22:

Step 23:

Step 24:

Step 25:

Step 26:

Step 27:

Step 28:

Step 29:

Step 30:

Step 31:

Step 32:

Step 33:

Step 34:

Step 35:

Step 36: Happy Bartosz. the Locomotive Is Going.

Happy Bartosz. The locomotive is going.