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
I2C in Arduino for Marlin #10399
Comments
|
Great! Thanks for the clarification! |
Hey there, 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 |
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.
I'm thinking of putting the transmission protocol in the gcode (ex. start to communicate with XXX address and do XXX) so the board will communicate with the slave whenever it sees that particular gcode. So I will just keep the SDA/SCL lines active with
Wire.begin()
in the void setup (if using the Arduino's Wire library).The text was updated successfully, but these errors were encountered: