Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library Enhancement - 8-pin control for 2x 4-pin Stepper Motors #46

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tuneersaha
Copy link

This pull request contains code that will enable the library to have 8-pin control which would translate for 2x 4-pin Stepper Motors to be able to work in tandem. This will help Arduino boards to run rovers in front-wheel or rear-wheel drive using stepper motors.

… stepper motors together both rolling at opposite directions to give effects like front wheel drive or rear wheel drive -- useful for making rovers on Arduino using Stepper Motors
@CLAassistant
Copy link

CLAassistant commented Dec 22, 2023

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Dec 23, 2023
@tuneersaha

This comment was marked as resolved.

@tuneersaha

This comment was marked as resolved.

@tuneersaha tuneersaha closed this Jan 2, 2024
@tuneersaha tuneersaha reopened this Jan 2, 2024
@per1234

This comment was marked as resolved.

@tuneersaha

This comment was marked as resolved.

Copy link

Memory usage change @ 1e666b3

Board flash % RAM for global variables %
arduino:avr:leonardo 🔺 +314 - +314 +1.1 - +1.1 🔺 +6 - +6 +0.23 - +0.23
arduino:avr:mega 🔺 +314 - +314 +0.12 - +0.12 🔺 +6 - +6 +0.07 - +0.07
arduino:avr:nano 🔺 +314 - +314 +1.02 - +1.02 🔺 +6 - +6 +0.29 - +0.29
arduino:mbed_nano:nano33ble 🔺 +256 - +256 +0.03 - +0.03 🔺 +8 - +16 0.0 - +0.01
arduino:mbed_nano:nanorp2040connect 🔺 +292 - +292 0.0 - 0.0 🔺 +12 - +12 0.0 - 0.0
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:megaavr:nona4809 🔺 +370 - +370 +0.75 - +0.75 🔺 +6 - +6 +0.1 - +0.1
arduino:megaavr:uno2018 🔺 +370 - +370 +0.76 - +0.76 🔺 +6 - +6 +0.1 - +0.1
arduino:sam:arduino_due_x_dbg 🔺 +232 - +240 +0.04 - +0.05 N/A N/A
arduino:samd:arduino_zero_edbg 🔺 +292 - +292 +0.11 - +0.11 🔺 +12 - +12 +0.04 - +0.04
arduino:samd:mkrzero 🔺 +292 - +292 +0.11 - +0.11 🔺 +12 - +12 +0.04 - +0.04
arduino:samd:nano_33_iot 🔺 +292 - +292 +0.11 - +0.11 🔺 +12 - +12 +0.04 - +0.04
Click for full report table
Board examples/MotorKnob
flash
% examples/MotorKnob
RAM for global variables
% examples/stepper_oneRevolution
flash
% examples/stepper_oneRevolution
RAM for global variables
% examples/stepper_oneStepAtATime
flash
% examples/stepper_oneStepAtATime
RAM for global variables
% examples/stepper_speedControl
flash
% examples/stepper_speedControl
RAM for global variables
%
arduino:avr:leonardo 314 1.1 6 0.23 314 1.1 6 0.23 314 1.1 6 0.23 314 1.1 6 0.23
arduino:avr:mega 314 0.12 6 0.07 314 0.12 6 0.07 314 0.12 6 0.07 314 0.12 6 0.07
arduino:avr:nano 314 1.02 6 0.29 314 1.02 6 0.29 314 1.02 6 0.29 314 1.02 6 0.29
arduino:mbed_nano:nano33ble 256 0.03 16 0.01 256 0.03 16 0.01 256 0.03 8 0.0 256 0.03 8 0.0
arduino:mbed_nano:nanorp2040connect 292 0.0 12 0.0 292 0.0 12 0.0 292 0.0 12 0.0 292 0.0 12 0.0
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:megaavr:nona4809 370 0.75 6 0.1 370 0.75 6 0.1 370 0.75 6 0.1 370 0.75 6 0.1
arduino:megaavr:uno2018 370 0.76 6 0.1 370 0.76 6 0.1 370 0.76 6 0.1 370 0.76 6 0.1
arduino:sam:arduino_due_x_dbg 240 0.05 N/A N/A 240 0.05 N/A N/A 240 0.05 N/A N/A 232 0.04 N/A N/A
arduino:samd:arduino_zero_edbg 292 0.11 12 0.04 292 0.11 12 0.04 292 0.11 12 0.04 292 0.11 12 0.04
arduino:samd:mkrzero 292 0.11 12 0.04 292 0.11 12 0.04 292 0.11 12 0.04 292 0.11 12 0.04
arduino:samd:nano_33_iot 292 0.11 12 0.04 292 0.11 12 0.04 292 0.11 12 0.04 292 0.11 12 0.04
Click for full report CSV
Board,examples/MotorKnob<br>flash,%,examples/MotorKnob<br>RAM for global variables,%,examples/stepper_oneRevolution<br>flash,%,examples/stepper_oneRevolution<br>RAM for global variables,%,examples/stepper_oneStepAtATime<br>flash,%,examples/stepper_oneStepAtATime<br>RAM for global variables,%,examples/stepper_speedControl<br>flash,%,examples/stepper_speedControl<br>RAM for global variables,%
arduino:avr:leonardo,314,1.1,6,0.23,314,1.1,6,0.23,314,1.1,6,0.23,314,1.1,6,0.23
arduino:avr:mega,314,0.12,6,0.07,314,0.12,6,0.07,314,0.12,6,0.07,314,0.12,6,0.07
arduino:avr:nano,314,1.02,6,0.29,314,1.02,6,0.29,314,1.02,6,0.29,314,1.02,6,0.29
arduino:mbed_nano:nano33ble,256,0.03,16,0.01,256,0.03,16,0.01,256,0.03,8,0.0,256,0.03,8,0.0
arduino:mbed_nano:nanorp2040connect,292,0.0,12,0.0,292,0.0,12,0.0,292,0.0,12,0.0,292,0.0,12,0.0
arduino:mbed_portenta:envie_m7:target_core=cm4,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:megaavr:nona4809,370,0.75,6,0.1,370,0.75,6,0.1,370,0.75,6,0.1,370,0.75,6,0.1
arduino:megaavr:uno2018,370,0.76,6,0.1,370,0.76,6,0.1,370,0.76,6,0.1,370,0.76,6,0.1
arduino:sam:arduino_due_x_dbg,240,0.05,N/A,N/A,240,0.05,N/A,N/A,240,0.05,N/A,N/A,232,0.04,N/A,N/A
arduino:samd:arduino_zero_edbg,292,0.11,12,0.04,292,0.11,12,0.04,292,0.11,12,0.04,292,0.11,12,0.04
arduino:samd:mkrzero,292,0.11,12,0.04,292,0.11,12,0.04,292,0.11,12,0.04,292,0.11,12,0.04
arduino:samd:nano_33_iot,292,0.11,12,0.04,292,0.11,12,0.04,292,0.11,12,0.04,292,0.11,12,0.04

@tuneersaha

This comment was marked as resolved.

@arduino-libraries arduino-libraries deleted a comment from github-actions bot Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants