From abeddd58ea20c85c72405fae079c1361b0b7bb18 Mon Sep 17 00:00:00 2001 From: Mikkel Jeppesen <2756925+Duckle29@users.noreply.github.com> Date: Mon, 15 Mar 2021 01:33:57 +0100 Subject: [PATCH 1/2] Update library.properties --- library.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library.properties b/library.properties index cfcb341..e038649 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ name=CheapStepper -version=0.2.1 +version=0.2.2 author=Tyler Henry maintainer=Tyler Henry sentence=A library for the cheap but useful 28BYJ-48 5v stepper motor with ULN2003 driver board paragraph=Library uses half-stepping for fine control (default: 4096 mini-steps per rotation), and supports blocking and non-blocking moves. The total number of steps is also adjustable (e.g. 4076 steps for 63.68395:1 measured gear ratio). category=Device Control url=https://github.com/tyhenry/CheapStepper -architectures=* \ No newline at end of file +architectures=* From b30445f7550bbea1b3037690f49e7389afdce106 Mon Sep 17 00:00:00 2001 From: Mikkel Jeppesen <2756925+Duckle29@users.noreply.github.com> Date: Wed, 17 Mar 2021 02:26:47 +0100 Subject: [PATCH 2/2] Update CheapStepper.cpp --- CheapStepper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CheapStepper.cpp b/CheapStepper.cpp index 914cd91..8259157 100644 --- a/CheapStepper.cpp +++ b/CheapStepper.cpp @@ -170,9 +170,10 @@ void CheapStepper::off() { ///////////// int CheapStepper::calcDelay (int rpm){ - + #ifndef IGNORE_LIMITS if (rpm < 6) return delay; // will overheat, no change else if (rpm >= 24) return 600; // highest speed + #endif unsigned long d = 60000000 / (totalSteps* (unsigned long) rpm); // in range: 600-1465 microseconds (24-1 rpm)