-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* restructure openclino * Setup 2.0 dev and object * classes functional * testing AccelStepper * test accelStepper, unit test spin_degs * spin_degs calibrated, spin_continuous broken * circuit design 1 * label circuit diagram * Remove requirements * docs and rename directories * rename docs * rm colab * rm archive * link docs * add back RPM * typos and errors * convention
- Loading branch information
Showing
7 changed files
with
211 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# Version 0.2.0 29/11/2024 | ||
|
||
- Changed pulley diameters to pulley teeth | ||
- Added `float epsilon` for calibrating substeps. | ||
- Added circuit diagram. | ||
- Updated documentation and README.md | ||
- updated `spin_degs()` if statements and compensation. | ||
- Added unit tests `calibrate_pulley_teeth()` and `test_spin_degs_multi()`. | ||
|
||
# Version 0.1.0 22/11/2024 | ||
|
||
Initial release. Development till 22/11/2024. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# OpenClino Documentation | ||
|
||
This document provides reference information about the functions used to control stepper motors in the Arduino project. Each function is described with its purpose, parameters, and behavior. | ||
|
||
## Functions | ||
|
||
### `void yClockwise(bool foo)` | ||
|
||
Sets the direction of the Y-axis motor. | ||
|
||
- **Parameters:** | ||
- `foo` (bool): If `true`, sets the direction to clockwise; if `false`, sets it to counterclockwise. | ||
|
||
--- | ||
|
||
### `void spin_continuous(float speedRPMX = 60, float speedRPMY = 60, int finalDelay = 100)` | ||
|
||
Spins the X and Y motors continuously at specified speeds until a button is pressed. | ||
|
||
- **Parameters:** | ||
- `speedRPMX` (float, default = 60): Speed of the X-axis motor in RPM. | ||
- `speedRPMY` (float, default = 60): Speed of the Y-axis motor in RPM. | ||
- `finalDelay` (int, default = 100): Delay in milliseconds after stopping the motors. | ||
|
||
--- | ||
|
||
### `void spin_degs(float degX, float degY, float speedX = 10, float speedY = 10, int finalDelay = 100)` | ||
|
||
Spins the X and Y motors by specified degrees at specified speeds. | ||
|
||
- **Parameters:** | ||
- `degX` (float): Degrees to rotate the X-axis motor. | ||
- `degY` (float): Degrees to rotate the Y-axis motor. | ||
- `speedX` (float, default = 10): Speed of the X-axis motor in RPM. | ||
- `speedY` (float, default = 10): Speed of the Y-axis motor in RPM. | ||
- `finalDelay` (int, default = 100): Delay in milliseconds after stopping the motors. | ||
|
||
--- | ||
|
||
### `void RPM()` | ||
|
||
Placeholder function for future implementation. | ||
|
||
--- | ||
|
||
### `void calibrate_pulley_teeth()` | ||
|
||
Calibrates the pulley teeth by rotating the motors in specific patterns. | ||
|
||
--- | ||
|
||
### `void test_spin_degs_multi()` | ||
|
||
Tests the `spin_degs` function with multiple rotations. | ||
|
||
--- | ||
|
||
### `void setup()` | ||
|
||
Initializes the Arduino pins and serial communication, and prints a welcome message. | ||
|
||
--- | ||
|
||
### `void loop()` | ||
|
||
Main loop that reads the button state and performs actions based on the button press. | ||
|
||
- **Behavior:** | ||
- Turns off motors when the button is not pressed. | ||
- When the button is pressed, it turns on the motors, lights up the built-in LED, and runs calibration and test functions. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.