Is there anyone who can help me?

I would like to ask you if you could program my UNO board for me. I have tried it many times but it always worked badly, I am not good at such things.
I have a UNO board + 28byj-48+ULN2003 and I need the motor to spin non-stop at 15rpm. It only spins in one direction at maximum speed.
Would it be possible please?

Ask chatGPT and give it credit for cheating doing your homework. This is simple.
No one here will likely do your homework for you.

Alternatively there are dozen of tutorials for something similar, so study those, learn the basics of programming and be proud of what you’ll be able to build.

Some efforts are required…

I'm good at other things but unfortunately I need this too. I have no idea in which chatGPT I should ask but thank you anyway.

No.

There is a section for paid work. Using it and referring to it no company will contract You.

There is a tutorial about the 28byj48 stepper motor at: lastminuteengineers.com/28byj48-stepper-motor-arduino-tutorial.

They show example code that turns the stepper at 5rpm in one direction, and then reverses it at 10rpm.

It wouldn't be difficult to modify it to do 15rpm in one direction.

I've been to that page several times and, as you write, I tried to edit the code... if I had succeeded, I wouldn't be asking for it here. I've probably been to all the pages with this content.

  • We always ask you to show your proposed schematic, good images of your wiring connections, and your attempt at writing the sketch (use code blocks).

  • This helps us evaluated things and saves a huge amount of our time.

Here's the code I was talking about:

//Includes the Arduino Stepper Library
#include <Stepper.h>

// Defines the number of steps per rotation
const int stepsPerRevolution = 2048;

// Creates an instance of stepper class
// Pins entered in sequence IN1-IN3-IN2-IN4 for proper step sequence
Stepper myStepper = Stepper(stepsPerRevolution, 8, 10, 9, 11);

void setup() {
  // Nothing to do (Stepper Library sets pins as outputs)
}

void loop() {
  // Rotate CW slowly at 5 RPM
  myStepper.setSpeed(5);
  myStepper.step(stepsPerRevolution);
  delay(1000);

  // Rotate CCW quickly at 10 RPM
  myStepper.setSpeed(10);
  myStepper.step(-stepsPerRevolution);
  delay(1000);
}

You just need to take the part of the code that is in loop(), that makes it go in the required direction (but without the 'delay(1000)').

Like so:

//Includes the Arduino Stepper Library
#include <Stepper.h>

// Defines the number of steps per rotation
const int stepsPerRevolution = 2048;

// Creates an instance of stepper class
// Pins entered in sequence IN1-IN3-IN2-IN4 for proper step sequence
Stepper myStepper = Stepper(stepsPerRevolution, 8, 10, 9, 11);

void setup() {
// Nothing to do (Stepper Library sets pins as outputs)
}

void loop() {
  myStepper.setSpeed(15);
  myStepper.step(stepsPerRevolution);
}

EDIT,
I had suggested that the code to make it run at 15rpm could be put in setup().
That is wrong it does need to be in loop for continuous rotation.

I am working on a project and I have to use a 28byj-48 stepper motor because I haven't found one as quiet as this one on the market. But for me, the programming is an obstacle. Among other things, I would like to ask if it is possible to program the UNO so that the motor starts at 8:00 in the morning and stops at 17:00 in the evening. And this is how it should work every day. If it can't be programmed for a daily cycle, it doesn't matter, I solved it with a timing module like in the photo.

And now he enlarges the requirements.

where do you see the expansion of requirements?? I just asked if it was possible

but it doesn't work like that, it will do one turn and stop

It's implied. The UNO does NOT have the ability to do that. It could if some additional components were added or if a different board was used, like the new UNO R4 and others.

Last week I ordered two UNO mega R3s, I didn't know there was an R4 that also handles timing, now I know, thank you.

Sorry, I worked that out after I posted.
The part of the code that I said could be in setup() has to remain in loop for continuous rotation.

I've edited that post now. hope that doesn't cause too much confusion.
(It's what we tell posters NOT to do).

The best way to do that is to use a real time clock (rtc) module like the ds3231.

I would not recommend using an UNO R4 for its rtc.

Thank you, it works! And thank you for your patience, I want to pay you, I just don't know how to connect.

You've clicked the like button, that will do for me.

A big ask from a motor that tops at 10-12RPM.
15RPM could be unreliable and has little or no torque.
Leo..

Edit: Adafruit has a motor with lower gearing, which in theory can do twice the speed of common versions

thanks for the advice