MidTBot: Difference between revisions

From TSAS Library
Jump to: navigation, search
No edit summary
No edit summary
Line 9: Line 9:
## Choose Tools > Boards > Board Manager, choose "esp32" by Espressif
## Choose Tools > Boards > Board Manager, choose "esp32" by Espressif
## Choose Tools > Boards > ESP32 Arduino > "ESP32 Dev Module"
## Choose Tools > Boards > ESP32 Arduino > "ESP32 Dev Module"
# Copy contents of "Libraries" folder in Esp32 firmware downloaded above to Arduino's  
## Choose Sketch > Include Library > Manage Libraries, search "TMCStepper" from teemuatlut
# Follow instructions on [https://github.com/bdring/Grbl_Esp32/wiki Dring's Grbl_ESP32 Wiki]
## Copy contents of "Libraries" folder in Esp32 firmware downloaded above to Arduino's Library folder
## Choose File > Open, find Grbl_Esp32 folder downloaded above, open "Grbl_Esp32.ino" within '''Note that only one file will open within the IDE'''
# Edit Grbl_Esp32-main\Grbl_Esp32\src\Machine.h, replacing <pre>#include "Machines/test_drive.h"</pre> with <pre>#include "Machines/midtbot.h"</pre> then save
# Match settings to image [[File:grblArduinoSettings.png|400px|right]]
# Compile and upload
'''Important''' Watch the compilation process. Once it is complete, the monitor at the bottom will display "Connecting...." When this happens, press and hold the "BOOT" or "IOO" button on the ESP32 until "Writing at..." is displayed.
# Choose Tools > Serial Monitor and press the EN (reset) button on the ESP32. If output is garbled, check that baud rate in the monitor is 115200
 
# Continue instructions on [https://github.com/bdring/midTbot_esp32/wiki Dring's midTbot Wiki]


# Connect to web server "GRBL_ESP" with p/w 12345678
# Connect to web server "GRBL_ESP" with p/w 12345678

Revision as of 13:32, 18 March 2021

Setup

  1. Print 3d parts from Thingiverse
  2. Collect hardware from BOM—note the ESP32 is the dev version
  3. Purchase controller from Bart Dring's Tindie store
  4. Assemble it
  5. Download GRBL Esp32 firmware and unzip
  6. Download and install Arduino IDE
    1. Open Arduino IDE. Preferences > copy stable release link to Additional Boards Manager URLs field.
    2. Choose Tools > Boards > Board Manager, choose "esp32" by Espressif
    3. Choose Tools > Boards > ESP32 Arduino > "ESP32 Dev Module"
    4. Choose Sketch > Include Library > Manage Libraries, search "TMCStepper" from teemuatlut
    5. Copy contents of "Libraries" folder in Esp32 firmware downloaded above to Arduino's Library folder
    6. Choose File > Open, find Grbl_Esp32 folder downloaded above, open "Grbl_Esp32.ino" within Note that only one file will open within the IDE
  7. Edit Grbl_Esp32-main\Grbl_Esp32\src\Machine.h, replacing
    #include "Machines/test_drive.h"
    with
    #include "Machines/midtbot.h"
    then save
  8. Match settings to image
    GrblArduinoSettings.png
  9. Compile and upload

Important Watch the compilation process. Once it is complete, the monitor at the bottom will display "Connecting...." When this happens, press and hold the "BOOT" or "IOO" button on the ESP32 until "Writing at..." is displayed.

  1. Choose Tools > Serial Monitor and press the EN (reset) button on the ESP32. If output is garbled, check that baud rate in the monitor is 115200
  1. Continue instructions on Dring's midTbot Wiki
  1. Connect to web server "GRBL_ESP" with p/w 12345678
    1. index.html.gz is located in the .../data folder of /Grbl_Esp32-master
  2. Continue instructions here

Troubleshooting

Can't find "#define CPU_MAP_ESP32"?

Change #define CPU_MAP_ESP3 to #define CPU_MAP_MIDTBOT instead.

Won't connect when compiling (Windows)?

Change cable several times, checking Device Manager for changes. If still no response, install "CP210x USB to UART Bridge VCP Drivers" from ESP32.net

Missing library?

Double-check that the contents of the "Library" folder in the Grbl_ESP32.zip file pulled from github are copied to the libraries folder ...Documents/Arduino/libraries.

"Hard resetting via RTS pin"?

It's done.