[gnea/grbl-Mega Issue#172] Getting position data from grbl (on Arduino Mega) on another Arduino Uno

未分类 bolang 4个月前 (10-15) 22次浏览

Issue #172 | 状态: 进行中 | 作者: murthybalaji0725 | 创建时间: 2024-01-08


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.


评论 (1)

#1 – terjeio 于 2024-02-22

This fork may be of help.


原始Issue: https://github.com/gnea/grbl-Mega/issues/172

喜欢 (0)