Search results

Home Model Engine Machinist Forum

Help Support Home Model Engine Machinist Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
  1. X

    Arduino control for a 3” rotary table

    Good Stuff Al... makes sense with your great explanation..rotary table still working good now it's shifted. Cheers.
  2. X

    Arduino control for a 3” rotary table

    Hi Al, interesting that you say a ferrous enclosure...my enclosure is aluminium.non ferrous, however still a metal...why is this so ? wouldn't the aluminium act as a shield the same as steel...I would have expected this to happen in a PVC enclosure. Yes I guess your right about self driving cars...
  3. X

    Arduino control for a 3” rotary table

    Just an update...had heaps of trouble...rotary table was possessed...would start by itself, change direction without any input from me...go from degrees to jog etc...would just spin at anytime it wanted to. I checked wiring multiple times and re uploaded sketch a few times...didn't fix the...
  4. X

    Arduino control for a 3” rotary table

    I did the 360, switches and 400 steps...no go...only runs with 200 steps and 180, I've tried every combination since yesterday. Mounted properly in box with decent wiring...no more ghost's in the machine. I'm pleased... runs good tho some tweaks would be good....like in degrees in doesn't stop...
  5. X

    Arduino control for a 3” rotary table

    Ghost in the machine could well be a bad earth,,,,seams okay now but those Dupont wires aren't holding up to good with all the unplugging and plugging.....keeping an eye on it and will sort out better cable when it's all sorted. I'm still thinking and looking at the code to see if I can get out...
  6. X

    Arduino control for a 3” rotary table

    Didn't resolve the issue...I think I have tried every combination. Looks like I have picked up a software bug.....thought it might have been a loose connection resetting and starting the rotation by itself....not so have it switched on and it's doing a dance without any input from me....Ghost's...
  7. X

    Arduino control for a 3” rotary table

    Didn't work Foozer....no response from anything...I think I have tried every possibility accept the right one. Bad luck about your getting bit by a washing machine....hope you have had a tetanus shot lately.
  8. X

    Arduino control for a 3” rotary table

    99% success with cheating, Hi Foozer...Kids are more important than anything else....good luck with the washing machine. Played around this morning adding and subtracting bits of code...use some of Foozer's and hashed it around a bit....Success with first upload....yahoo...just one...
  9. X

    Arduino control for a 3” rotary table

    Hi Foozer, tried 4 iterations of your code adjusted in the original version, can't get it running...check and once again no errors seem to jump out at me. /* 4x4 matrix keypad amd a 20 x 4 LCD. Edit StepsPerRotation & TableRatio(# of turns for 360 degrees)in line 29 M542 driver * dir-...
  10. X

    Arduino control for a 3” rotary table

    We HAVE ROTATION....at last. Now we know the board, drive and motor work. Cheers
  11. X

    Arduino control for a 3” rotary table

    Example code...I get small movements... // testing a stepper motor with a Pololu A4988 driver board // on an Uno the onboard led will flash with each step // as posted on Arduino Forum at http://forum.arduino.cc/index.php?topic=208905.0 byte directionPin = 3; byte stepPin = 2; int numberOfSteps...
  12. X

    Arduino control for a 3” rotary table

    I altered the pins again to46,48,50....no go. Found an example sketch and uploaded...got the stepper moving in very small increment...but moving just the same...yahoo. cross examined code and change pin nos again, removed const int with byte...but wouldn't compile. will post both codes i have...
  13. X

    Arduino control for a 3” rotary table

    Hi Foozer, Followed your steps, set different pins and named them step,dir,en...no change....changed code to numbering the pins rather than naming them....gave cogging when activated and no cogging when turned off. Ran a few example sketches like blink etc to make sure Mega was working....seems...
  14. X

    Arduino control for a 3” rotary table

    Swapped connections around....no cogging now....definate motor clicking sound when Mega reset is pressed. not sure where I go from here. Cheers
  15. X

    Arduino control for a 3” rotary table

    Hi Rod, Unpluged the enable connector....still has strong cogging. Increased delay to 150...no movement at all. Must be getting close to this running.....i put a DMM on the pins and there is no voltage showing on the meter...on Pul+, Dir+, and EN+...would have thought something would have...
  16. X

    Arduino control for a 3” rotary table

    I have -en, dir-, pul- all to gnd here is my pin layout...12 and 13 PWM, 22 Digital // SCL - 21, SDA - 20, VCC - +5, Gnd - Gnd //setup vars const int stp = 12; // connect pin 12 to step const int dir = 13; // connect pin 13 to...
  17. X

    Arduino control for a 3” rotary table

    Whoops meant to say....wonder why "Const int" is used whilst I have observed "Define "as being used in other sketches.. See I have no Idea Cheers.
  18. X

    Arduino control for a 3” rotary table

    Tried both Uno and Mega...currently Mega Connected, Nema 23 425 oz/in , Sutia M542 driver - 48 volt in, A+-red, A- Blue, B+ - green, B- black, Pul- bridged to Dir - bridged to Gnd Pul+ to Pin 12, Dir+ to Pin13.....no Enable connection. I have checked everything numerous times, I have looked at...
  19. X

    Arduino control for a 3” rotary table

    Well ..spent most of the day reading up about stepper drivers etc and tried wiring in different configurations to run the motor I have. I swapped out the driver for a higher capacity than a M542 driver...just to see if it was a faulty M542...doesn't seem to be as both drivers not rotating...
  20. X

    Arduino control for a 3” rotary table

    Just a reminder for anyone using this code is to change table ratio...in my case it is 90 to 1. And of course this is a code slightly modified but based on the code submitted by Bmac 2...thanks.
Back
Top