100%
grbl_mpg_dro_with_teensy_and_mpgwheels RP2040_MPG view
Description

Imported from GitHub: heli2src/GRBL_MPG_DRO_with_Teensy_and_mpgWheels · commit 4e3bfdf · license GPL-2.0

Description

Control of the grpHall with a small touch display and mpg-wheels connected via RS485

README

GRBL_MPG_DRO_with_Teensy_and_MPG_Wheels

Control of the grpHall with a small touch display (ILI9341 320x240) and mpg-wheels connected via RS485.
The main aim was to be able to continue using both the lathe and the milling machine 'manually'. Manual only means that they should work as before. In other words, to move a rotary wheel around an axis. Especially when turning, you often just want to machine a part quickly, which is often faster conventionally than laboriously writing and testing the first G-code. But if you equip your machine with stepper motors or servomotors, then of course it should also be possible to process G-code. That's why pure cycle electronics were out of the question for me.
This Project is starting from GRBL_MPG_DRO_BoosterPack. But is use a Teensy 3.2 for controlling. The big difference is that you can not only use 2 MPG wheels, but several, which can also be distributed on the machine. The MPG wheels are connected via an rs485 busconnection.

The canvas structure from Terjeio project was unfortunately difficult for me to understand and extend (I'm not such a C pro), so I didn't use it and built my own structure. In particular, I like to use Kris Kasprzak libraries, which in my opinion allow you to realize displays and buttons quite quickly and easily. But the mixture of the whole thing was not so easy, so that the whole code is again more difficult to understand :-(

The requirement is that the grbHAL driver is used as the CNC controller. The UART input is then used to communicate with the display and the MPGs. I use the grbl-teensy-4 board to control the motors and the connections of the inputs and outputs. You cannot use USB and Uart at the same time with this board. USB is therefore switched off. If you want to run CNC programs, you have to connect the board to your network via Ethernet. I then use the IoSender as user interface.
The display can be used as a pure display when processing CNC code (sent via ioSender) or as a display and control unit when controlling the milling machine or lathe manually. Switching is done with a button on the display. An LED indicates the current mode.

There is still some tidying up to be done, but certain extensions are even more important at the moment for proper working. The Source code not ready yet, there could be bugs, use it carfully!

Features from the current version:

  • Control board with a SPI LCD and touch interface (ILI9341 320x240), connect via Uart with the grbHAL driver.
  • each MPG wheels has its own Pi Pico connected via rs485 with the control board. Own control switches and a small display is possible (SSD1306 or SH1106 (128x64) via I2C).
  • Switching from pure DRO for external CNC code and manual operation with the handwheels, and simple cycles such as turning cones or any thread.
  • DRO/MPG display actual and target values.
  • Support 3D milling machine X,Y,Z Feed Rate with mm/min, or lathe X,Z Feedrate mm/min when the machine is stopped, and mm/U when the machine is turning.
  • More axis travel via the screen.
  • Home driving
  • reset/unlock Aarms
  • MPG-Wheel features:
    • Setting for the wheel wheel and the buttons set, axis, rotate screen/bars.
    • Move 1-axis with the rotary wheel.
    • Setting the resolution of the wheel via button for each axis, 0.01/0.1/1 mm.
    • Set display value to 0 for each axis.
    • Use the button to quickly return to 0.
    • Drive to the target point at the set feed rate using a button.
    • Drive to a target point with the rotary wheel, then quickly return with the pushbutton and drive back to the last target point at the set feed rate --> Simple cycling with manual adjustment of another axis.
  • DRO set to 0 for \

planned

  • lathe :
    • thread cutting
    • Turn cone
    • Run cycles
  • Milling:
    • mill surface flat
    • Milling pools \

Todo

  • The rotational speed of the wheels is not yet properly evaluated. As a result, the whole thing still runs a little rough.
  • Simultaneous driving of 2-axes over the wheels does not yet work in practice.
  • The entire software is still under construction, which is why there is no release yet.

    Here I have converted my lathe, a Quantum D240x400E. With the wheels you can also use the machine conventionally. In some cases, you can also drive certain cycles very easily. However, this has only been implemented in a rudimentary way so far.

    \

Compiling

- Teensy for the touch display

With the Arduino version 2.3.6 you should be able to compile without errors.

Following libs are used:

- Raspi pico for the mpg wheels

Comments
Sign in to comment

No comments yet. Be the first to ask about this board.