Re: Arduino Sherline Rotary Table controller
Old thread, but maybe someone can advise. I used the sketch from post #53. Mechanically, things appear to work, but, I have LCD issues (and I used the posted library files).
At boot, I only get the "R" of the welcome message, and I know it is the "R" from "Rotarye Control", as if I put an "X" in front of the "R" in the sketch, then I get an "X". I do NOT get the other following messages: CrankyTechGuy CNC nor Copyright 2014. It next displays just the "S" for "Select Op Mode" as shown in the Youtube video in post #52, but no DIV[A] or DEG[B].
I can however choose A or B on my keypad, and the display then shows the first letters of the next menu, an "E" on the top row and an "R" on the bottom, obviously reflecting the first letters from the word "Enter" and "Reset".
I am able to type in a division or degree based on the A/B choice and it correctly displays on line 3 like the video, and # to continue, but again, the LCD has a mind of its own, displaying only the first letter of P for Pos and next to it, 0.00. One row down, it displays the D of Dpm: and next to it, it skips the first digit I typed in as the division I entered one screen earlier. Using [A] or [B] DOES rotate my table.
So, it somewhat works, but the display is wacked. I tried another brand LCD and got the same results.
So, this looks simple, but I am not sure what it could be. Anyone ??
Re: Arduino Sherline Rotary Table controller
datac, I think problem is lies in updated(?) LiquidCrystal_I2C library. I had similar problem with old code and newer i2c lcd-displays, but in my case they didn't show nothing at all, so I switched to Adafruit_LiquidCrystal with few changes to the code. Maybe this libraries are specific to i2c chips used in displays, I really don't remember how and why I've found Adafruit_LiquidCrystal library :)
Re: Arduino Sherline Rotary Table controller
Thank you, thank you thank you..... That is along the lines of what I was thinking, that it has something to do with the library I used (which was the one the OP suggested). Like I said, it's clearly wired correctly and partially displaying things.
I'll spend some time with the Adafruit library and see what happens !
Thanks again for some direction on the matter !
Quote:
Originally Posted by
kfmut
datac, I think problem is lies in updated(?) LiquidCrystal_I2C library. I had similar problem with old code and newer i2c lcd-displays, but in my case they didn't show nothing at all, so I switched to Adafruit_LiquidCrystal with few changes to the code. Maybe this libraries are specific to i2c chips used in displays, I really don't remember how and why I've found Adafruit_LiquidCrystal library :)
Re: Arduino Sherline Rotary Table controller
I messed with this on and off today. Got things working !
After researching google for "only the first character displays", I found a lot of people with the problem, and it indeed tied back into some bad code methods in MANY of the LiquidCrystal_IC2 libraries. After much time trying variations of downloaded versions and no luck, I found a post claiming things would work correctly if I deleted all of the garbage LiquidCrystal_IC2 libraries I previously tried, then just go into Arduino IDE > Sketch> Manage Libraries and install "LiquidCrystal_IC2 by Frank De Brabander".
THAT Worked !
In all the monkeying around, I did end up using the code provided over here though: Arduino control for a 3
Now with the Display issue solved, I can swing back and try the sketch from here and compare them.
Thanks !
Re: Arduino Sherline Rotary Table controller
Hello everyone!
I'm still new here.
I really like this project!
I have a question.
Can I stop this program for Nema 34 - 12 Nm stepping motors?
1 Attachment(s)
Re: Arduino Sherline Rotary Table controller
Hello Shane. Thank you for your post. I have a question. I am using an HBS860H Hybrid Servo Drive, and have connected: Pul+ to 5V, Pul- to Pin 12, Dir + to 5V, Dir - to Pin 13. And when I press FWD[A] the stepper rotates CCW, if I press REV[B] the stepper doesn't rotate. Could you please help me to get the right connections? Thank you.