Electronic Dividing Head using the Arduino

Discussion in 'Software and Programming' started by cfellows, May 21, 2012.

Help Support HMEM by donating:

  1. Nov 8, 2018 #301

    chucketn

    chucketn

    chucketn

    Senior Citizen

    Joined:
    Dec 17, 2009
    Messages:
    1,258
    Likes Received:
    145
    Occupation:
    Fully retired
    Location:
    Near Jonesborough, TN
    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.
     
  2. Nov 8, 2018 #302

    rodw

    rodw

    rodw

    Well-Known Member

    Joined:
    Dec 3, 2012
    Messages:
    1,078
    Likes Received:
    319
    If you cannot change direction, you have a problem with the DIR signal. Either its not connected or connected to the wrong pin.
     
  3. Nov 8, 2018 #303

    Foozer

    Foozer

    Foozer

    Well-Known Member HMEM Lifetime Supporter

    Joined:
    Nov 26, 2008
    Messages:
    1,140
    Likes Received:
    57
    Gender:
    Male
    Occupation:
    Retired
    Location:
    Camano Island, WA
    First hookup acted as you described - No reverse -> I had the hookup wrong, even though it looks like a straight plug to plug shield, it's not . . Moved the step and dir to the per shield correct pin call out and all worked fine . . .

    DSCF0309.JPG
     
  4. Nov 9, 2018 #304

    fubuddy

    fubuddy

    fubuddy

    Active Member

    Joined:
    Oct 18, 2018
    Messages:
    25
    Likes Received:
    2
    Gender:
    Male
    Location:
    orange
    lol this pisses me off, a bunch of the ebay sellers i have been buying from are saying us stock, providing a tracking number, waiting for the item to get to them from china then shipping it out. actually had one that came straight from china the other day....
     
  5. Nov 9, 2018 #305

    chucketn

    chucketn

    chucketn

    Senior Citizen

    Joined:
    Dec 17, 2009
    Messages:
    1,258
    Likes Received:
    145
    Occupation:
    Fully retired
    Location:
    Near Jonesborough, TN
    DWK, did you get it working?
     
  6. Nov 9, 2018 #306

    fubuddy

    fubuddy

    fubuddy

    Active Member

    Joined:
    Oct 18, 2018
    Messages:
    25
    Likes Received:
    2
    Gender:
    Male
    Location:
    orange
    so my new 6600 got here, its not a 6600 tho, at least it truly shipped from california.....
    i figured out that having the enable ground wire connected at all was stopping it from rotating on the B button, but now that i fixed that it still only moves one direction.
    i have ordered all of the parts to build a 2nd controller sense its cheap.
    i compared the script im using with the original 2016 script in context and there is nothing i see that would cause this there.
    not looking for help or advice right now, just giving an update.
    ill post the status again when i get the 2nd controller built for testing.
     
  7. Nov 9, 2018 #307

    dwk

    dwk

    dwk

    Member

    Joined:
    Oct 20, 2018
    Messages:
    12
    Likes Received:
    2
    Gender:
    Male
    Location:
    united kingdom
    Finally got my setup to go in both directions, however the motor after doing a revolution in either direction starts to slowly creep a little then becomes faster. Only way to stop it is by pressing the reset button.
    Seems to be a possible problem with either the lcd shield or the motor driver. Has anyone else encountered this problem?
     
  8. Nov 9, 2018 #308

    fubuddy

    fubuddy

    fubuddy

    Active Member

    Joined:
    Oct 18, 2018
    Messages:
    25
    Likes Received:
    2
    Gender:
    Male
    Location:
    orange
    have not had that happen to me, my lcd is not a shield tho, i decided to go with the separate lcd and keypad for more inputs and compartmentalized problems.
    did you try the code for simple forward and back that fooser posted for me on page 15 of this thread ?
    it does not use any of the lcd or touch pad
    stuff and lets you test the driver and motor with the board only.
     
  9. Nov 9, 2018 #309

    pp2076

    pp2076

    pp2076

    Active Member

    Joined:
    Jun 9, 2017
    Messages:
    28
    Likes Received:
    9
    There are many programs that enable you to compare different versions of code (text).
    I use winmerge from http://winmerge.org/
     
  10. Nov 9, 2018 #310

    fubuddy

    fubuddy

    fubuddy

    Active Member

    Joined:
    Oct 18, 2018
    Messages:
    25
    Likes Received:
    2
    Gender:
    Male
    Location:
    orange
    is that an all in one with arduino also ? i have context thats what i was used to using 15 years ago, i was just hoping to use a single program for all of it
     
  11. Nov 9, 2018 #311

    pp2076

    pp2076

    pp2076

    Active Member

    Joined:
    Jun 9, 2017
    Messages:
    28
    Likes Received:
    9
    at
    No, just a simple standalone program. Quite powerful though.
     
    fubuddy likes this.
  12. Nov 9, 2018 #312

    dwk

    dwk

    dwk

    Member

    Joined:
    Oct 20, 2018
    Messages:
    12
    Likes Received:
    2
    Gender:
    Male
    Location:
    united kingdom
    Sort of working. Got both directions working but after a complete revolution the stepper stafts to creep.
     
  13. Nov 9, 2018 #313

    dwk

    dwk

    dwk

    Member

    Joined:
    Oct 20, 2018
    Messages:
    12
    Likes Received:
    2
    Gender:
    Male
    Location:
    united kingdom
    Although have tried that in the past with no problems I will try again just to be sure.
     
    fubuddy likes this.

Share This Page