Giter Site home page Giter Site logo

Comments (7)

robomechs avatar robomechs commented on July 23, 2024

This is complex and unpredictable way to use it))

from 6-axis-usbcnc-grbl.

MonkeyPigCNC avatar MonkeyPigCNC commented on July 23, 2024

If the reporting was mirrored to a serial port you could easily use that to update a seperate Arduino to display the position and status. I'm have not looked into this as I'm currently designing a 5 axis board for this but that would be really useful to pretty up the front panel of my 3040, and I could use a cheap LCD shield with touch on an uno to also implement the feed hold/reset etc buttons.

from 6-axis-usbcnc-grbl.

Alfrederson avatar Alfrederson commented on July 23, 2024

If the reporting was mirrored to a serial port you could easily use that to update a seperate Arduino to display the position and status. I'm have not looked into this as I'm currently designing a 5 axis board for this but that would be really useful to pretty up the front panel of my 3040, and I could use a cheap LCD shield with touch on an uno to also implement the feed hold/reset etc buttons.

Monkey, have you tried compiling this firmware for another mcu in the same line with more GPIO's like RBT6? 5 axes leaves very few pins on the C8T6

from 6-axis-usbcnc-grbl.

MonkeyPigCNC avatar MonkeyPigCNC commented on July 23, 2024

from 6-axis-usbcnc-grbl.

mstrens avatar mstrens commented on July 23, 2024

I would also be interested having the possibility of using USB or UART without having to reflash the STM32.
For a group of makers, we made a pcb to support the blue pill, interface it to TB6600 (via ULN2803), add a relay for router switching, and add RC filter on each imputs (limits,...).
It is foreseen that this project could be controlled from the PC (via USB) or from another stand alone ESP32 microcomputer (via UART).
It would be nice to be able to flash only once the firmware into the blue pill for both config.

from 6-axis-usbcnc-grbl.

mstrens avatar mstrens commented on July 23, 2024

I made changes in order to support USB and UART at the same time.
In fact it is not "at the same time" because if you send characters to GRBL via the 2 ways simultanously, GRBL will mix all received characters and will fail.
So, send the data to GRBL only from one source at the time.
GRBL sent his replies to both canals.

The code is available at (in branch USB_and_SERIAL
https://github.com/mstrens/grbl_6axis_on_stm32/tree/USB_and_SERIAL

Please take care that:

  • I did not tested this code.
  • my published version has a modified cpu_map.h file because I use different pins for dir and step signals.

If this code is OK, it would be quite easy to mofify it in order to let the user select between 3 options USEUSB, USEUART and USEBOTH.

from 6-axis-usbcnc-grbl.

mstrens avatar mstrens commented on July 23, 2024

Please note that the code in previous message is not OK.
In the mean time, I made change on my site in the master branch in order to use TX buffer and interrupt when sending data. Currently the same TX buffer is used for UART or USB. So it is not possible to use both at the same time. This would require using 2 different Tx buffers.
Furthermore it could be that the program locks if USB Tx buffer becomes full if USB is not up and running

from 6-axis-usbcnc-grbl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.