bdring / midTbot_esp32

A Small and Simple Pen Plotter
577 stars 65 forks source link

patch - some minor instruction updates #9

Open dirkx opened 4 years ago

dirkx commented 4 years ago

Hm - seem unable to do a PR on the wiki - possible suggestion below.

Dw.

https://github.com/dirkx/midTbot_esp32.wiki.git https://github.com/dirkx/midTbot_esp32/wiki

commit 0b3bfede5c0680eb9977cf97de8946958ef01d95 (HEAD -> master) Author: Dirk-Willem van Gulik dirkx@webweaving.org Date: Wed Aug 14 13:25:35 2019 +0200

Grbl over normal OTA limit, different model needed.

commit 31539e975a2bfafa1c698348e62e8c25fbccbb00 (fork/master) Author: Dirk-Willem van Gulik dirkx@webweaving.org Date: Wed Aug 14 13:07:33 2019 +0200

Set travel to ensure homing works, current

diff --git a/Compiling-Firmware-for-the-MidTBot.md b/Compiling-Firmware-for-the-MidTBot.md index 1a77aac..2a12545 100644 --- a/Compiling-Firmware-for-the-MidTBot.md +++ b/Compiling-Firmware-for-the-MidTBot.md @@ -8,4 +8,10 @@ to...

define CPU_MAP_MIDTBOT // these are defined in cpu_map.h

-Follow the compile instructions. \ No newline at end of file +Follow the compile instructions. + +#### Memory + +As the standard ESP32 DevKits come with 4 Mbyte of memory - you will typically be required to select the large-app/minimal OTA memory layout. As otherwise you will get an error that the sketch is too large. + + diff --git a/Setting-Up-the-Motors.md b/Setting-Up-the-Motors.md index 8ace504..6f2a63f 100644 --- a/Setting-Up-the-Motors.md +++ b/Setting-Up-the-Motors.md @@ -4,6 +4,13 @@

The MidTbot uses the CoreXY feature of Grbl_ESP32. With a CoreXY machine both motors must coordinate motion even for simple moves along one axis. If an axis moves the wrong way, you cannot simply change the $3 setting for that axis. You must leave the $3 settings for X and Y at the default of 0 and correct the direction issue with the wiring.

+#### Setting Motor Current. + +The motor drivers have a potentiometer to adjust motor current. You want the motor to run just a little warm. If they get too hot, adjust the pot to lower the current. Search for documentation on your driver for more specific details. + +In general - the prescribed StepStick A4988 should have their pot-meters adjusted to the lowest current -- by turning them all the way anti-clockwise. And then about 1/5 to 1/4 of the scale back up. Increase this slightly if you find that the motor stalls during the below process. Or go anti-clockwise if they get too hot. + +

Reseting Default settings

Set $rst=$ to reset all of the default Grbl settings. This will make sure any previous settings that could be in the controller.
@@ -20,11 +27,9 @@ Rotate a connector and retry the direction moves. There are 4 possible orientati

Homing Test

-Send $H to home the machine. It should home the X axis first, then the Y. Each axis should move towards the limit switch mounted on the PCB. +Send $H to home the machine. It should home the X axis first, then the Y. Each axis should move towards the limit switch mounted on the PCB.

-#### Setting Motor Current.

-The motor drivers have a potentiometer to adjust motor current. You want the motor to run just a little warm. If they get too hot, adjust the pot to lower the current. Search for documentation on your driver for more specific details. +Note that the default X/Y travel range of Grbl is 100mm; you want to increase this to 150mm first.


@@ -36,7 +41,7 @@ The horn needs to be mounted on the servo at a precise angle. This will be done

Test the Motion

-Plug the servo connector into the PCB and power on the controller. Clear the homing alarm by sending $X over the serial port. Next send $rst=#. This will reset any machine offsets that might be in memory. Send G0Z5 the servo should move to one end of the travel. You can see the other end of the travel by sending G0Z0. Send G0Z5 again to move to the pen up position. The servo should be rotating clockwise to lift the pen and counterclockwise to lower it. Not all servos travel the same way. If yours is going the wrong way, send $3=4 to reverse the Z direction. +Plug the servo connector into the PCB and power on the controller. Clear the homing alarm by sending $X over the serial port. Next send $rst=#. This will reset any machine offsets that might be in memory. Send G0Z5 the servo should move to one end of the travel. You can see the other end of the travel by sending G0Z0. Send G0Z5 again to move to the pen up position. The servo should be rotating clockwise to lift the pen and counterclockwise to lower it. Not all servos travel the same way. If yours is going the wrong way, change the $3 by adding '4' (So $3=6 assuming $3=2 as per the defaults) to reverse the Z direction.

Install The Horn

@@ -48,9 +53,4 @@ Now test the servo, by sending G0Z0 and G0Z5 a few times. The pen mechanism shou

Typically Z5 will be close to where you want because that is how you installed the horn. Z0 might be moving past the point at which the pen is fully down, so you might need to send a $102 value above 100. The valid ranges are 20 to 180. If you go outside that range, it will ignore the value and use 100.

bdring commented 4 years ago

I'll incorporate some of these suggestions when I get home from vacation 8/19.

Regarding anything with changes to $ settings. It is better to change the defaults in firmware.