Recent content by OldRon

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. OldRon

    Arduino Rotary Table for Dummies

    This is my prototype in C++. It features accumulated error management and regardless of the number of indexing divisions it goes 0 to 360º. My servo motor requires 2048 pulse per revolution so here's the logic: Seconds in 360º: 1296000 My motor ppr: 2048 My gear ratio: 4:1 low backlash gear...
  2. OldRon

    Automating Rotary Table

    pyromancer, I did not have any problem with the Arduino UNO other than it being limited to single precision. In the calculations some index increments return a whole number while others return a fractional value. Obviously it is not possible to send a fraction of a pulse so I rounded the...
  3. OldRon

    Automating Rotary Table

    Progress is slow due to work load. The shaft on the Vertex HV6 will not carry a sprocket so I made a tool steel sleeve to put over the rotary table spigot (for lack of a better word). A heavy duty 20mm wide needle bearing in the sprocket will run on the sleeve. The outer sprocket flange will be...
  4. OldRon

    Automating Rotary Table

    awake, As they say, "The Proof is In the Pudding". That is 360º / 34 divisions. That is exactly what my debug loop in MS VS 2019 ended up with..... but it wouldn't do that a couple of hours ago. I declared the function getSteps() as long because steps ends up as a long value. However by using...
  5. OldRon

    Automating Rotary Table

    The answer to the closing question is NONE. The Arduino UNO rev3's only limitation at this time is that while it will accept double precision variables the level of precision remains single precision. I used to chuckle every time that I saw something about the Arduino and now here I am playing...
  6. OldRon

    Automating Rotary Table

    The three of you continuously cited problems that did not exist. For a reason that I will never understand Cogsy had a problem with me using native units of Geometrical measurement. Assigning an arbitrary number of units to the table per revolution does not and cannot change the givens. I could...
  7. OldRon

    Automating Rotary Table

    The result from the calculation is returned to the display before my finger clears the key. That's fast enough for me.
  8. OldRon

    Automating Rotary Table

    (IF) floating point numbers present a problem then all that I have to do is ditch the native Geometric unit of measure, seconds and substitute the servo motor ppr at the final drive which is 921600 ((2048 * 5) * 90). Divide the circumference of a 6" diameter circle by 921600 and that equals...
  9. OldRon

    Automating Rotary Table

    awake, There is no cmath.h in VS 2019. As I explained if the function is not within the scope of a library then the library will not search other libraries for the function. If a function in a library calls for a function in another library then that library will be included in the library that...
  10. OldRon

    Automating Rotary Table

    There's no disputing that the round function resides in cmath. However, when I can rename cmath to cmathX and successfully compile code that calls for the round function then that tells me that cmath is not the sole source for the round function. By renaming the library I eliminated the...
  11. OldRon

    Automating Rotary Table

    When indexing with fractional increments none of the steps are an absolute value until they have been rounded. However, where each step represents 1.40625 seconds then the maximum linear error on the circumference of a 6" diameter circle would be .0000204531". That is derived from ((6 * π) /...
  12. OldRon

    Automating Rotary Table

    I tried moving MS VS 2010 C++ library files into the Arduino libraries folder taking care not to trample on the native library files and the Arduino IDE would have nothing to do with that. I wrote a recursive folder and file search program and with a little tweaking I was able to compile a list...
  13. OldRon

    Automating Rotary Table

    MS VS 2019 has the round function. In the code below I'm comparing the Degrees input with the Degrees output, dividing the difference by 360, and multiplying the circumference of a 6" diameter circle by that decimal fraction. I think that it would acceptable in Rocket Science. See attached...
  14. OldRon

    Automating Rotary Table

    Cogsy, The number of degrees in the debug code have no relevance. The degree of accuracy is limited by the givens. As for shorty being an integer value: 360º * 60 *60 = 1296000" Servo motor ppr: 2048 Servo motor gearhead ratio 5:1 Servo motor ppr at final drive: 10240 Rotary table gear ratio...
Back
Top