Closed kcheeeung closed 6 years ago
Wire
on most platforms. Enable EXPERIMENTAL_I2CBUS
for a simplified interface in Marlin, and check out this thread (https://github.com/MarlinFirmware/Marlin/issues/4776#issuecomment-246262879) for insights into using i2c to talk to a second board.EXPERIMENTAL_I2CBUS
to test i2c communication.Great! Thanks for the clarification!
Hey there, i have a short question.
The communication between my ESP 8266 and the Arduino Mega (running Marlin) works.
But I just can't send a simple command to execute a simple movement.
For example:
When I send G01 X10 -> the x motor should move but when i send "G01 X10" via I2C from ESP to Marlin, Marlin only writes:
i2c-reply: from:99 bytes:5 data: G01 X10
But nothing happens. Anyone knows how to handle the gcode in Marlin to execute the command?
Thank you very much!!! :-)
@Molde Are you sending your gcommands through a serial port bridge to your printer directly using your wifi board? Or are you somehow connecting to your printer through the I2C lines (SCL and SDA) and then sending that gcommand? I2C uses binaries to communicate back and forth with its peripherals.
Hey, i am facing the same situation.How can we implement the gcode sent by the master board?I am getting the echo on the slave, assuring me that it got the command, but how can we print it?
@miltostsalekkas It sounds like someone has already gotten to your answer in #12756, covering arduino to arduino communications. How I used it was master (3d printer board) -> slave (peripheral), so some custom gcode will turn on/off my peripheral device. If this covers part of your application, feel free to let me know if you need any help.
Hey. Thank you very much. I already solved it.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hey guys! I would like to understand using I2C Arduino for Marlin. I'm planning to use the SDA/SCL pins to communicate with a few peripherals mainly to extend the board's capabilities. Thanks for reading.
Wire.begin()
in the void setup (if using the Arduino's Wire library).