Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Perikaruppan
#91257 I am working on making my sand Art design wifi enabled with ESP8266MCU board

The ESP is connected to the SD card which has the GCode stored, it reads from the SD Card and transmits serially (using SoftwareSerial) to the ATMEGA328 which has the GRBL code execution.

the speed of Serial is 115200 and the ESP is connected to the webserver which does nothing but turn on and off the system.

The code is being read by ESP from SD, transmitting to the ATMEGA and the device is working properly upto a random point (The homing works perfectly).

The design is being drawn properly upto a particular point and suddenly the head move horizontally or vertically (Again random) to a certain distance (again random) and comes back to the same position and starts the design fro the same position and continues....

and again at a different point it does the same thing.

I have tried reducing speed of data F is 2500 (tried 1000,1500,2000...) all same.

tried reducing serial speed to 57600, still same problem

unable to determine what the problem is .

If I replace the ESP8266 with another ATMEGA and send data to the GRBL-ATMEGA the device works perfectly without any issues or concerns.

So there is no issue with the hardware. Only issue is probably the serial comm between the ESP and ATMEGA-GRBL and there seems to be some thing lost.

serial Comm between ESP and ATMEGA:
One line is read from SD card, send to GRBL ATMEGA and only when we get a feedback from GRBL the ESP sends the Next line, so no issue regarding buffer.


have a working video
https://user-images.githubusercontent.c ... 321f7d.mp4