Having now read the manual, I see that is the Arduino +5V that needs to be connected to "OPTO" as mentioned by Chagrin.
However, I disagree with him about the "ENA" enable input. On page 4 of the manual, it states that it needs to be high to enable the drive and low to disable it. It can also be left unconnected (permanently enabled).
With these connections made, no connection between the GNDs would be required, (as I had suggested in my previous post). Indeed such a connection would invalidate the benefits of the opto-isolated inputs.
I could have deleted my previous post, but I am willing to admit to my mistake.
details matter a whole lot.
you have a 2.8v motor and are driving it at 24v, or you are driving it at about 8.5:1 which is good.
I would say welcome to the list
but also invite you to read this http://forum.arduino.cc/index.php/topic,148850.0.html
scroll down to #7
then come back and edit your first post. the edit button is on the bottom right of the post.
highlight your code and hit the code tag button.
JohnLincoln:
Having now read the manual, I see that is the Arduino +5V that needs to be connected to "OPTO" as mentioned by Chagrin.
However, I disagree with him about the "ENA" enable input. On page 4 of the manual, it states that it needs to be high to enable the drive and low to disable it. It can also be left unconnected (permanently enabled).
With these connections made, no connection between the GNDs would be required, (as I had suggested in my previous post). Indeed such a connection would invalidate the benefits of the opto-isolated inputs.
I could have deleted my previous post, but I am willing to admit to my mistake.
Yup this all got it working! Huge thanks to Chagrin and JohnLincoln for helping with the setup! as a beginner at this sort of stuff, I was struggling pretty bad.
Dave-in-nj, I changed the post as per your suggestion. Much easier to read now
and that code works great - looks like i was on the right track at least! thanks Robin2