Write a sketch of Arduino

Employer
[no-member:pro]Yury[/no-member:pro]
Project parameters
Type of cooperationPeriodic employment
SectionSoftware development
Prepaymentprepayment is possible
Payment methodsBank transfer
Acceptance of requestsfrom Feb 7, 2022 until Feb 22, 2022
Project description
Offering additional income for the programmer. The services of a Sketch Arduino writing specialist are required. I need a sketch by Arduino Nano.
Rotate 2 step nema17 drivers A4988. Approximately 1 rotation per second.
DIR, ENABLE and division of step 1/16 on the driver are physically sealed, only STEP is used.
The second step rotates slower than the first, about 2 times, the division coefficient is set in SETUP.
The speed of the first and, accordingly, the second engines is regulated by a potentiometer, the min mach is installed in SETUP.
After making N steps, approximately 6-10 turns of the first engine, there is a pause in the rotation of the engines, for 0.2-2 seconds.
N steps are set by a potentiometer, min mach is installed in SETUP.
The pause time is set by a potentiometer, the min mach is set in SETUP.
During a pause on one of the outputs of the arduino, a log 1 signal is issued.
Between taking N steps in step X to a separate output of the arduino, a log 1 signal is issued for a duration of 0.2-1 sec, this time is set in SETUP, while the engines continue to rotate, the duration of this signal does not depend on other processes.
The number of steps X is determined by a potentiometer and never exceeds N. Through MAP.
After a pause, the process is repeated.
Rotate 2 step nema17 drivers A4988. Approximately 1 rotation per second.
DIR, ENABLE and division of step 1/16 on the driver are physically sealed, only STEP is used.
The second step rotates slower than the first, about 2 times, the division coefficient is set in SETUP.
The speed of the first and, accordingly, the second engines is regulated by a potentiometer, the min mach is installed in SETUP.
After making N steps, approximately 6-10 turns of the first engine, there is a pause in the rotation of the engines, for 0.2-2 seconds.
N steps are set by a potentiometer, min mach is installed in SETUP.
The pause time is set by a potentiometer, the min mach is set in SETUP.
During a pause on one of the outputs of the arduino, a log 1 signal is issued.
Between taking N steps in step X to a separate output of the arduino, a log 1 signal is issued for a duration of 0.2-1 sec, this time is set in SETUP, while the engines continue to rotate, the duration of this signal does not depend on other processes.
The number of steps X is determined by a potentiometer and never exceeds N. Through MAP.
After a pause, the process is repeated.