CNC Torch Table Z Height Control: Difference between revisions
No edit summary |
(→Wiring) |
||
Line 32: | Line 32: | ||
== Wiring == | == Wiring == | ||
There are 3 kind of connections: | |||
- Power-supply to Ramps/Arduino | |||
- Rotary Encoder to Ramps/Arduino | |||
- TB6600 to Ramps/Arduino | |||
<gallery widths="420" heights="400" perrow="2"> | <gallery widths="420" heights="400" perrow="2"> | ||
Os manthc ramps-wiring1.png | Ramps-pins to connect are marked with a blue point | Os manthc ramps-wiring1.png | Ramps-pins to connect are marked with a blue point | ||
Os_manthc_ramps2mega.png | Mapping of the Ramps-Pins onto the Arduino-Mega ports | Os_manthc_ramps2mega.png | Mapping of the Ramps-Pins onto the Arduino-Mega ports | ||
</gallery> | |||
=== Power-supply to Ramps/Arduino === | |||
1. Ramps: Connect a 12V/5A-Line to the MSTBA4-Port an the Ramps, by using a phoenix-contact plug. This will provide power for Motor as well as board-power for the Arduino-Mega. | |||
2. Arduino standalone: The Arduino musst be supplied with 5V to 12V. This can be done by the USB-connection to a desktop-pc or by a standard wall-wart ac/dc-adaptor (5V, 2A) for the Mega. | |||
=== RotaryEncoder to Ramps/Arduino === | |||
The KY-040 RotaryEncoder has 5 Lines: GND, +5V, SW, DT, CLK. Connect these either to the AUX2 port of the Ramps, or directly to the digital I/O ports on the Arduino-Mega. | |||
GND --> GND | |||
5V --> 5V | |||
SW --> D44 | |||
DT --> D42 | |||
CLK --> D40 | |||
<gallery widths="420" heights="400" perrow="2"> | |||
Os_manthc_ramps-wiring3.jpg | The pins at the AUX2 port are conected to the rotary encoder | Os_manthc_ramps-wiring3.jpg | The pins at the AUX2 port are conected to the rotary encoder | ||
</gallery> | </gallery> | ||
=== TB6600 to Ramps/Arduino, Motor and Power === | |||
The | |||
<gallery widths="420" heights="400" perrow="2"> | |||
Os_manthc_Tb6600_wiring1.png | upper left corner: 2 white cables make a bridge between ENA-, PUL- DIR-. The PUL- contains an additional cable (orange) that connects to GND on the Extruder E0 port of the Ramps/Arduino | |||
Os_manthc_ramps-wiring2.jpg | The pins at the extruder E0 port are connected to the TB6600 | |||
</gallery> | |||
== Firmware == | == Firmware == |
Revision as of 10:23, 25 June 2017
Manual adjustable version of CNC Torch Table Height Controller
This is a simple POC-version that allows a manual adjustment of the Z height by turning a jog wheel. The wheel can be 3d-printed [1] and is connected to a rotary encoder of type KY-040.
- manually steered height control
- demonstration video on youtube: [2]
Design Rationale
With this rig it should be possible to manually operate the torch table height by following its slowly moving and regulate the height personally. This can be useful even if in the full version there is a capacitive sensor is doing automatically that task, but one may use it then for setting the starting height or use it in other applications where a frequent manual control is an appreciated option.
The rotary encoder gives up to 20 pulses per revolution to an Arduino-Mega, which translates it into a number of motor steps and triggers these by a TB6600-based stepper-driver. A RAMPS 1.4 may act as a connection layer on top of the Arduino, but can also be omitted. We will show here which pins to wire on the Arduino and on the Ramps as well.
The firmware consist only of a few lines of Arduino-code, which makes it easy to extend and modify.
BOM
Wiring
There are 3 kind of connections:
- Power-supply to Ramps/Arduino
- Rotary Encoder to Ramps/Arduino
- TB6600 to Ramps/Arduino
Power-supply to Ramps/Arduino
1. Ramps: Connect a 12V/5A-Line to the MSTBA4-Port an the Ramps, by using a phoenix-contact plug. This will provide power for Motor as well as board-power for the Arduino-Mega.
2. Arduino standalone: The Arduino musst be supplied with 5V to 12V. This can be done by the USB-connection to a desktop-pc or by a standard wall-wart ac/dc-adaptor (5V, 2A) for the Mega.
RotaryEncoder to Ramps/Arduino
The KY-040 RotaryEncoder has 5 Lines: GND, +5V, SW, DT, CLK. Connect these either to the AUX2 port of the Ramps, or directly to the digital I/O ports on the Arduino-Mega.
GND --> GND
5V --> 5V
SW --> D44
DT --> D42
CLK --> D40
TB6600 to Ramps/Arduino, Motor and Power
The