chucketn
Senior Citizen
View attachment 105132
I just finished 're-building' my controller. I had built it using a non I2c 2004' but, several months ago I tore it apart to use the mega in another project. About a month ago I decided to re-build it, designing a new case as I went. I decided to order a I2c 2004 lcd, and to shipped from California, it took 4 weeks to get here... I had previously added a 9 pin sub D connector and longer leads to the stepper,. This time I took the time to set up modular wiring as much as possible. I still need to draw up a schematic diagram. Short version, I also used a TB6560 driver board. My connections were as in the attached picture.
Hope this helps
Forgot to add, I tested the same setup with a UNO, only difference was the I2C pins on the UNO were in a different location. All the rest were the same pin #'s. No changes to the code provided.