Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting position data from grbl (on Arduino Mega) on another Arduino Uno #172

Open
murthybalaji0725 opened this issue Jan 8, 2024 · 1 comment

Comments

@murthybalaji0725
Copy link

Hi!
I read many articles but I could not find something that matches my configuration in this topic.
I am running a 3D printer controlled through an Arduino Mega 2560. The Mega and 3D printer are connected through a RAMPS 1.6 shield and DRV8825 motor drivers. The Mega runs grbl-Mega.
I have successfully controlled the 3D printer using grbl. I have also successfully tested it by sending gcode through ugs.

I have another Arduino Uno R4 that is connected to another sensor on analog pins. I know that when you send a ? to grbl, it returns with current position data.

I want the Uno to send a ? on the hardware serial pins (pin 0 and 1), to the pins 16 and 17 (hardware serial pins) on mega. The pins 16 and 17 make the serial pin 2 on the mega.
I want the uno to send a ? and recieve the position data from the Mega. How can I do this task?

I was testing this by connecting the uno with my laptop and the uno further to mega. I was hoping to read the position data from mega in the laptop in the serial monitor.

Finally, I would store the position data with sensor measurements in an SD Card.

Can anyone plaese help me with this problem.

I would be very grateful.

@terjeio
Copy link

terjeio commented Feb 22, 2024

This fork may be of help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants