Site icon Renzo Mischianti

MKS WIFI for Makerbase Robin: PCB and how to compile & upload firmware – 2

Spread the love

I bought a FlyingBear Ghost 5 with an integrated WiFi module, but I discovered no web interface. I don’t know why they can’t add a basic user interface. Then I went to see the web interface of the high-end Makerbase cards and realized that it was better they didn’t develop it.

My solution was to modify the firmware to support the Web Socket and develop the Web interface. This feature is compatible with all Makerbase cards with an MKS WiFi module.

Makerbase MKS WiFi module upload flash compile PCB

The result of the BeePrint Web interface is in this screenshot.

MKS WiFi BeePrint interface of my FlyingBear Ghost 5

I also decided to explain all the development phases of the project. In this article, I would like to expose the hardware infrastructure of the MKS WiFi card that interfaces with the Makerbase Robin Nano.

Here I’d like to explain the MKS WiFi module, how to program and connect a device that can be used as a WiFi module alternative.

How to program It from scratch

You can find the source code on the Makerbase GitHub repository, but remember that they don’t update the esp8266 core, so you must use the 2.4.2 version, you can refer to my version for the same code ported to 2.7.4; on master, you can find the latest version with data folder and Web UI.

esp12

esp12 E pinout low resolution

The connection schema is the same as the article “esp12 esp07 (esp8266): flash, pinout, specs, and Arduino IDE configuration”, I insert It here, but to understand better the wiring refers to the article.

esp12 flashing module connection breadboard

I used the 3D printed adapter and the relative programming board posted in the previous article to do the first test.

Test env for MKS WiFi with esp12 E programming on Robin Nano disassembled

But you can print the adapter and use a breadboard

Socket for esp12 and esp07 

Socket for esp12 and esp07 with V base 

Here is the adapter on a breadboard.

Programming circuit on a breadboard with adapter for esp12

The programming parameter on your Arduino IDE for esp12 are

esp12-E Arduino IDE configuration

But you can use a regular NodeMCU board as MKS WiFi.

Program MKS WiFi module without OTA

The MKS WiFi module is more simple to connect and program from scratch. To explain better, I reproduce the PCB.

MKS WiFi module PCB

The board is quite simple to create.

MKS WiFi original PCB

You can directly order 10 pcb for 5$ here on PCBWay

Here the esp12 and esp07 that you can use with Aliexpress esp-12 - Aliexpress esp-07

So the position of the pin is linear, and the connection schema becomes very simple.

MKS WiFi esp12 programming module connection on BreadBoard

This is the GPIO mode to manage the board status.

ModeGPIO15GPIO0GPIO2
UARTLowLowHigh
Flash BootLowHighHigh

And you must do this operation to enter in program mode:

When I compile the project first time, my libraries version are

Upload Filesystem

If you select the latest version, you also need to upload the filesystem with the BeePrint interface.

You can upload filesystem data with the classic method via the plugin. Refer to the relative tutorial WeMos D1 mini (esp8266), integrated SPIFFS Filesystem.

Check if data the directory exists in the sketch folder (with some files), and the plugin is used to upload.

ESP8266 Sketch Data Upload Menu

NodeMCU

NodeMcu v2 pinout low resolution

With NodeMCU, It’s all more simple. If the upload process does not start, disconnect the esp from the MKS Robin board temporarily.

You can find v2 and v3 version of NodeMCU here on WeMos D1 mini - NodeMCU V2 V2.1 V3 - esp01 - esp01 programmer

For the parameter check, the previous paragraph is the same as esp12.

Use OTA web page to upload the original firmware

An alternative method is to generate a bin file; first, open your source code on your Arduino IDE, compile It to check errors, and select. Sketch -> Export compiled Binary,

esp8266 esp32 Arduino Export compiled binary IDE menu

then by click on Sketch -> Show Sketch Folder you can find bin file. Here “esp8266: flash compiled and signed firmware (.bin)” you can get more information about compiled firmware.

Now we can use the web page that you can find to the root of the IP assigned to MKS WiFi.

MKS WiFi firmware update page

Remember the files name must be:

Thanks

  1. MKS WIFI for Makerbase Robin: boards and how to wiring esp12 & NodeMCU
  2. MKS WIFI for Makerbase Robin: PCB and how to compile & upload firmware
  3. MKS WIFI for Makerbase Robin: communication protocol and Cura plugin
  4. MKS WIFI for Makerbase Robin: firmware upgrade and new Web Socket features
  5. MKS WIFI for Makerbase Robin: BeePrint web interface with Camera on Flying Bear Ghost
All the code is released under
Spread the love
Exit mobile version