@will Well I figure the motor is still under warranty! 🙂 Got to get it back on task and get it to go 1500 RPM under a single rotation. The RPM gauge only works if the motor is spinning continuously and you have to put reflective tape to get it to work. Don't know enough about software to get the motor at 1500 RPM under a single rotation.
It's great to tip your server unless you work in the Server Room!
@clark77494 Just a thought, I would google 'howto make xyz motor turn at 1500rpm using an arduino' replace xyz with your motor descriptor.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
By "get it to go 1500 RPM under a single rotation", if you mean spinning it up from standing idle to rotating at 1500RPM by the end of the first rotation - I seriously doubt that's possible considering the weight of the rotating part of the motor and it's consequent inertia.
You can wait until the motor spins up to speed and then use the tach, I don't understand why you need to test it immediately on startup ? For this kind of rotational speed I think should always ramp the motor up gradually to avoid stalling, burning out the coils or otherwise damaging it.
Also note that you're still (according to the videos) driving an unloaded motor, so the speed will drop as the load increases. Also note that the centrifugal force increases as the square of the (load) radius, so doubling speed will quadruple the force. In other words - stand clear and wear eye protection (better still, a face shield) when testing under load.
Anything seems possible when you don't know what you're talking about.
@will @clark77494 Is this of any help.
https://forum.arduino.cc/t/nema-23-stepper-motor-speed/653143
There is code there, it looks very straightforward.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
@will @clark77494 Is this of any help.
The new crusher is going to use a NEMA34 not a '23 and he's already had it up to over 4000RPM using a speedTest sketch.
Anything seems possible when you don't know what you're talking about.
@will I would assume translating from 23 to 34 is not difficult, no?
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
No it's not unless there's a radical change in drivers. The point is that he's already achieved more than the 1500 RPM speed, albeit unloaded 🙂
Anything seems possible when you don't know what you're talking about.
@zander Thank you for the code. Just waiting for parts for the NEMA 34 from "Send Cut Send" Will wrote me some speed test code and got it to over 4,000 RPM! Here is the video! 🙂 I tried the piston based can crusher using a NEMA 23 and when I put on the 6" disk the motor didn't have enough torque to get it to go.
NEMA 23 Motor Test:
NEMA 34 RPM Test:
It's great to tip your server unless you work in the Server Room!
@will I found some new stepper code using the AccelStepper.H running into the same issues. The limitation of the software library Stepper.h and AccelStepper.h seems to be 32,767 steps. Here is a simple AccelStepper.h program I found. AccelStepper.h seems to run a little slower then Stepper.h the only advantage is the is a slow down command.
#include <AccelStepper.h> AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3 void setup() { stepper.setMaxSpeed(40000); stepper.setSpeed(40000); } void loop() { stepper.runSpeed(); }
It's great to tip your server unless you work in the Server Room!
You haven't given it a target position.
Change "stepper.runSpeed();" to "stepper.runToNewPosition(35000);"
Anything seems possible when you don't know what you're talking about.
@will It's running at less then 1 RPM with the new command.
It's great to tip your server unless you work in the Server Room!
Try setting speed and max speed to 3000 which is inside the allowable range (AccelStepper doesn't support speeds above 4000).
Anything seems possible when you don't know what you're talking about.
It's great to tip your server unless you work in the Server Room!
@will I was thinking the speed test code you gave me would work perfectly. I just need to set the correct frequency and use a loop statement that would turn off the code after just one cycle. When I was using GW Basic I used "For Next Loops" statements all the time. Not sure how to implement it in the code however.
It's great to tip your server unless you work in the Server Room!