Comments (7)
This is complex and unpredictable way to use it))
from 6-axis-usbcnc-grbl.
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.
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.
from 6-axis-usbcnc-grbl.
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.
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.
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)
- Dual Y axis HOT 1
- backlash compensation HOT 1
- OT Question: How to create the pinout diagram like this? HOT 2
- only x axis can reach 230khz, y and z axis have problem HOT 1
- CNCjs Issue due to bug in mode state reporting HOT 5
- Makefile? HOT 3
- ! news. Project is no longer supported. HOT 3
- $h then system happens to restart
- configure grbl with "$x=val" commands (optional)
- about coolant! HOT 2
- pcb for this project (inside)
- Planner buffer question
- Installation on arduino uno or nano. HOT 1
- Using UART3 same times with UART1 please HOT 1
- Set machine positions for homed limit switches HOT 1
- Probing Issue
- Uart1 cant connect hc05 bluetooth HOT 1
- UART TX overlapping
- What is the problem that the serial port cannot communicate?
- No #undef USEUSB in grbl.h
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 6-axis-usbcnc-grbl.