Main > Project Announcements
Hoping for a neato idea.
<< < (3/5) > >>
PL1:

--- Quote from: Zakk on June 18, 2024, 11:41:19 am ---I'll just hunt for a stepper motor that will work no questions. Cost is not an issue, I just wanted to use what I have on hand, since those little motors were $$$ and didn't work as advertised. I'll get something industrial where I can see the operating parameters.

--- End quote ---
In that case, move up to a NEMA 23 motor and driver.   ;D

You can use a combination of the AccelStepper library, the bounce sketch demonstrated at the end of the first video, and my sketch for the limit and emergency switches.






--- Quote from: Zakk on June 18, 2024, 11:41:19 am ---Lazy susan might work. It would give me something to hold the tubing, probably just cross bolt across the top of it, attach the gearing, and bob's yer uncle.

--- End quote ---
The other thing that you'll need is a way to mount the magnets for the Hall-effect sensors and a tab (green) to hit the emergency reverse microswitch (red) -- didn't show those in the earlier diagram.

The larger the rotation radius of the tab for the emergency switch and mounting the magnets, the closer you can get to 360 degrees of rotation. (blue)


Scott
PL1:
You might be able to get away with not using the Hall-effect sensors and take advantage of the acceleration control available in the AccelStepper library.

In the main program loop, have the motor go X steps CW then X steps CCW.

In the interrupt code for the emergency switch, have the motor stop then go X + Y steps CCW.
- The Y value gives you room so when the main program loop resumes you won't hit the emergency switch again until the next time you power the system on.

Will a sudden stop triggered by the interrupt cause any damage to the mech?
- If so, Hall-effect limit sensors may have enough range to allow for a safe rapid deceleration, but you'll still want to keep an emergency microswitch.

Pretty sure the command that you need for relative motion of the motor is move().


Scott
Zakk:
I gotta be honest, I was straight up just going to use 2 microswitches. I have some that are silent, pretty simple to send a reverse signal that way I would think, just register a keypress.
I'm also toying with using a controller I have here, I used it to run an entire reef tank, so I'm familiar with the coding and sensors. There's a simple breakout box that accepts simple analogue signals AND I have a multitude of controllable 120 outlets. I can wire in a dedicated 20A line to the controller, and then I can run a fairly heavy load. I'm thinking about controlling more than just that disco ball. In fact, what hit my brain was adding a motion sensor, active during certain hours, which would cold-start everything in the room, the lights on the bar, the arcade machine, the pinball and maybe even an ice machine. During the winter it would fire up the electric fireplace.  The controller is just sitting here (since you just can't have a reef aquarium in the forest), so it's wasting away, and I was hesitant to sell it if I can find a use for it. MUCH more expensive than an arduino, but I already have it.

chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://help.neptunesystems.com/downloads/docs/APEX_manual.pdf

It's actually fairly impressive what that thing can do right out of the box.
PL1:

--- Quote from: Zakk on June 19, 2024, 02:59:48 pm ---I was straight up just going to use 2 microswitches.

--- End quote ---
It seems like a regular microswitch could take quite a beating, especially if you aren't using AccelStepper to decelerate the motor before impact.   :scared

Another option to consider:  Do you have any proximity or beam-break optical sensors?

Something like these Adafruit 2167 3mm beam break sensors would be great.




--- Quote from: Zakk on June 19, 2024, 02:59:48 pm ---I'm also toying with using a controller I have here, I used it to run an entire reef tank, so I'm familiar with the coding and sensors. There's a simple breakout box that accepts simple analogue signals AND I have a multitude of controllable 120 outlets.

--- End quote ---
Sounds interesting.

Hope you can get that controller to play nice with a NEMA23 driver/motor and your 6 lb. disco cube.   :cheers:


Scott
Zakk:
I think it will have to be tested. I'm thinking at such a slow speed, impact would be negligible, although I might 3d print some bumper stops in flexible pla...
Trying to just keep it as simple as possible. I did order one of those drives though, seems like a good little motor. I'll likely start with printed gearing, but if need be, I'll get gears either routed out of something solid, OR have the cad files cnc'd. Again, trying to keep it simple. The less pieces, the less to go wrong sort of thing.

Until I get the motor, and build a mockup I really don't know what problems I'm going to have. I haven't found a nice bearing yet either, I'm thinking a proper roller bearing, perhaps even a packed one, would be less rickety than a lazy susan roller. The smoother the bearing, the less likely I'll have issues with the gearing. Again, until I can muck about with that motor, I won't know what I have to work with. I have about 5" of working space for the apparatus. That motor I believ is under 3" so that is perfect.

Compounding things, I'm also levelling a backyard, and cutting a road into the mountain to make a beach down by the creek. It's crazy that I seem to have less time now than I did when I worked full time :)
Navigation
Message Index
Next page
Previous page

Go to full version