Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CheapStepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name=CheapStepper
version=0.2.1
version=0.2.2
author=Tyler Henry
maintainer=Tyler Henry <tyler@tylerhenry.com>
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=*
architectures=*