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

Picture of 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

Picture of Nidec 13H055B020 Jumpers

1. Nidec 13H055B020 jumper remove.

2. Nidec 13H055B020 new jumpers

Step 3: ESP8266 NodeMcu Configuration Wifi.

Picture of ESP8266 NodeMcu Configuration Wifi.

ESP8266 NodeMcu configuration wifi based:

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

Step 5 and 6.

Step 4:

Picture of

ESP8266 NodeMcu configuration wifi.

Step 5:

Picture of

Add and Connect Make Structure.

Step 6:

Picture of

Add and Connect Split Structure.

Step 7:

Picture of

Add and Connect Complementary Analog Filter

Step 8:

Picture of

Add and Connect Divide By Value.

Step 9:

Picture of

Add and Connect Divide By Value.

Step 10:

Picture of

Add and Connect Integrer To Analog.

Step 11:

Picture of

Add and Connect Divide By Value.

Step 12:

Picture of

Add and Connect Divide By Value.

Step 13:

Picture of

Add and Connect Complementary Analog Filter.

Step 14:

Picture of

Add, Configure and Connect Packet.

Step 15:

Picture of

Add and Connect Formatted Text.

Step 16:

Picture of

Step 17:

Step 18: Configure Wifi

Picture of Configure Wifi

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

Step 14 and 15.

Step 19:

Picture of

Step 20:

Picture of

Step 21:

Picture of

Step 22:

Picture of

Step 23:

Picture of

Step 24:

Picture of

Step 25:

Picture of

Step 26:

Picture of

Step 27:

Picture of

Step 28:

Picture of

Step 29:

Picture of

Step 30:

Picture of

Step 31:

Picture of

Step 32:

Picture of

Step 33:

Picture of

Step 34:

Picture of

Step 35:

Picture of

Step 36: Happy Bartosz. the Locomotive Is Going.

Picture of Happy Bartosz. the Locomotive Is Going.

Happy Bartosz. The locomotive is going.

Comments

BoianM (author)2017-07-08

Congratulations! And thank you for making this Visuino Instructable!

This is one of the coolest Visuino projects that I have ever seen :-)

You have also done some impressive job on modifying the Motor on the Locomotive with a Brushless DC Motor. If you have some pictures from the process, I am sure it will make another great Instructable ;-)

DIY Hacks and How Tos (author)2017-07-08

Great first instructable. Very detailed and thorough. Thanks for sharing.

About This Instructable

1,334views

20favorites

License:

More by ziejezy:Controll Railway Model With Visuino Programmed ESP8266 Wi-Fi
Add instructable to: