MidTBot: Difference between revisions

From TSAS Library
Jump to: navigation, search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
## Copy contents of "Libraries" folder in Esp32 firmware downloaded above to Arduino's Library folder
## 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'''
## 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
# Edit Grbl_Esp32-main\Grbl_Esp32\src\Machine.h, replacing <code>#include "Machines/test_drive.h"</code> with <code>#include "Machines/midtbot.h"</code> then save
# Match settings to image [[File:grblArduinoSettings.png|400px|right]]
# Match settings to image [[File:grblArduinoSettings.png|400px|right]]
# Compile and upload
# 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.
'''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
# 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]
# 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
## index.html.gz is located in the .../data folder of /Grbl_Esp32-master
## index.html.gz is located in the .../data folder of /Grbl_Esp32-master
Line 40: Line 37:


It's done.
It's done.
==See also==
[https://youtu.be/WktHy85mdoM?list=PLS02ipJwKlpgNJR1KePvetXbCUzm23pda Video guide]

Latest revision as of 18:03, 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.
  10. 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
  11. Continue instructions on Dring's midTbot Wiki
  12. Connect to web server "GRBL_ESP" with p/w 12345678
    1. index.html.gz is located in the .../data folder of /Grbl_Esp32-master
  13. 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.

See also

Video guide