Jump to content
 

HVT Dave

Members
  • Posts

    3
  • Joined

  • Last visited

HVT Dave's Achievements

2

Reputation

  1. Hi Ray, Looks like you and Ian made the jump to 0.9° steppers. I wonder if the one you ordered will have enough torque, but with your gear reduction I suspect it might. The one I got was this one from Stepperonline.com which has 400 steps per rotation. Max speed is set at 100 and acceleration at 70 and it is silky smooth. BTW the sketch in Step 5 results in 90° back and forth motion so I adjust all the setting in these sketches by a factor of 2. 3,200 steps is 180°, 4,800 steps is 270°, etc. I'm using an HO 72' ExactRail plate girder bridge trimmed down for the bridge on my turntable and the pit is not yet built. I have a CUI AMT203-V absolute encoder instead of the Hall Effect sensor (long story) for auto-align during startup. Will need to add the CUI sketch to the modified Cambriancoaster sketch but that will have to wait a few days. Preparing and loading two small portable layouts for a train show this weekend in Lehi, Utah. Will post the sketch when I get the bugs worked out. Thanks again for all you have done. Dave St George, Utah
  2. Ray, Thanks for the prompt response. Yes, the Cambriancoasters sketch works correctly when setCurrentPosition(0) is commented out. Thank you. I missed understanding that when reading the sketch. Now I need to add back in the auto-align on startup. I have a CUI absolute encoder attached and working, will need to add that code to the sketch as well. One interesting thing, the motor I am using is a bipolar 0.9° stepper and it has 6,400 positions per revolution when microstepping. I do have it set to AFMStop.getStepper(400, 2). That is some pretty fine resolution. Again, Ray, I want to thank you for sharing your talents with the code and support that you have provided. @ ianjeffery, thanks for the link to the keypad. However, I am using a Mega so plenty of pins available, and I want to use a red switch for the head and black for the tail with the two switches placed on the respective ray track on the local panel. Simple and intuitive is my objective. (control booth has a red metal roof) Warmest Regards, Dave
  3. Help needed to modify the sketch. Ray, et al, Would someone help me modify Ray's Seven Road Turntable sketch Part 7, message #48, page 2, so that it will run from 8 push switches connected to pins 4-11 rather than controlled by DCC? The bridge rotates successfully using Part 5 but I would prefer it to be controlled from a local panel rather than by DCC. Cambriancoaster provided a sketch in message #194, page 8 that used push button input, but it went a specified distance from last position rather than to an absolute position. The bridge needs 8 distinct positions, 4 ray tracks and each end of the bridge. I understand the 'switch...case' concept but have not been able to successfully replace the DCC/address code with digital pin inputs. Your help will be deeply appreciated. Warmest Regards, Dave
×
×
  • Create New...