Hello, I use libery AccelStepper version 1.6.1 to control 2 stepper motors. I created the software with the Arduino IDE 1.8.15. Everything works fine. But when I flash the processor with the Arduino IDE 2.3.1, the stepper motors don't turn, regardless of whether I use Accelstepper 1.6.1 or the current version 1.6.4. I notice that the motors are getting power, but they are not turning. It can't be my source code because everything works with the old Arduiono IDE.
Welcome to the forum
Please post a complete sketch that illustrates the problem so that other users can try it for themselves
Which Arduino board are you using and how is the project powered ?
8 posts were split to a new topic: Accelstepper library examples don't open with Arduino IDE 2.3.1
The sketch I am using is running well since 2 years, only with the new IDE I have the issue.
Update:
I downloaded AccelStepper.zip and installed it, no improvement
This morning I removed the IDE 2.3.1 and installed version 1.8.15 and all is working fine. So question is now why AccelStepper is not working on IDE 2.3.1
It works fine on my Windows 8 PC. on my WIndows 10 system I still have the issue, that AccelStepper is not working
AccelStepper seems to be ok in IDE 2.2.1, so perhaps something changed between 2.2.1 and 2.3.1 to cause a problem.
Hi @HoleHand. I'm going to ask you to provide the compilation output from compiling the sketch using Arduino IDE 1.8.15 and Arduino IDE 2.3.1. By comparing the two, we might be able to identify the cause of the different behavior of the resulting programs.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Get output from Arduino IDE 1.8.15
- Select File > Preferences... (or Arduino > Preferences... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open. - Check the box next to "Show verbose output during: ☐ compilation" in the "Preferences" dialog.
- Click the "OK" button.
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- Wait for the compilation to finish.
- Click on the black console panel at the bottom of the Arduino IDE window.
- Press the Ctrl+A keyboard shortcut (Command+A for macOS users) to select all the text.
- Press the Ctrl+C keyboard shortcut (Command+C for macOS users).
This will copy the selected text to the clipboard. - Open a forum reply here by clicking the "Reply" button.
- Click the
<CODE/>icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the compilation output is correctly formatted.

- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block. - Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to post the output.
Get output from Arduino IDE 2.3.1
- Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open. - Check the box next to "Show verbose output during: ☐ compilation" in the "Preferences" dialog.
- Click the "OK" button.
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- Wait for the compilation to finish.
- Right click on the black "Output" panel at the bottom of the Arduino IDE window.
- From the context menu, click Copy All.
- Open a forum reply here by clicking the "Reply" button.
- Click the
<CODE/>icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.

- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block. - Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:
- Open any text editor program.
- Paste the copied output into the text editor.
- Save the file in
.txtformat. - Open a forum reply here by clicking the "Reply" button.
- Click the "Upload" icon (
) on the post composer toolbar:

The "Open" dialog will open. - Select the
.txtfile you saved from the "Open" dialog. - Click the "Open" button.
The dialog will close. - Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.
Sorry code is limited by 120000 characters, my code ist more than 520000
In this case where the code exceeds the forum's post length limit, it is OK to provide the file as an attachment in a reply here on this forum thread.
- Open a forum reply here by clicking the "Reply" button.
- Click the "Upload" icon (
) on the post composer toolbar:

The "Open" dialog will open. - Select the file from the "Open" dialog.
- Click the "Open" button.
The dialog will close. - Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (2) - (4) above, you can simply drag and drop the file onto the post composer field to attach it.
Attached please find two files. One is the output from my Windows 8 PC with IDE 1.5.15 which works fine (File named Fubctional Windows8). Second file (called Not Fuctional) is the output from my PC Windows 10 and IDE 2.3.1.
Not Functional.txt (275.5 KB)
Functional_Windows8.txt (565.6 KB)
I see that you have different versions of your sketch dependencies installed on the computer used by each IDE:
Using core 'esp32' from platform in folder: C:\Users\aehrh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14
Bibliothek BluetoothSerial in Version 2.0.0 im Ordner: C:\Users\aehrh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\BluetoothSerial wird verwendet
Bibliothek Preferences in Version 2.0.0 im Ordner: C:\Users\aehrh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\Preferences wird verwendet
Bibliothek PWMOT im Ordner: C:\Users\aehrh\Documents\Arduino\libraries\PWMOT (veraltet) wird verwendet
Bibliothek AccelStepper in Version 1.64 im Ordner: C:\Users\aehrh\Documents\Arduino\libraries\AccelStepper wird verwendet
Bibliothek SPI in Version 2.0.0 im Ordner: C:\Users\aehrh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\SPI wird verwendet
Bibliothek Wire in Version 2.0.0 im Ordner: C:\Users\aehrh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\Wire wird verwendet
Bibliothek MPU6050_light in Version 1.2.1 im Ordner: C:\Users\aehrh\Documents\Arduino\libraries\MPU6050_light wird verwendet
Using core 'esp32' from platform in folder: C:\Users\Andreas\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6
Bibliothek BluetoothSerial in Version 1.0 im Ordner: C:\Users\Andreas\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\BluetoothSerial wird verwendet
Bibliothek Preferences in Version 1.0 im Ordner: C:\Users\Andreas\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\Preferences wird verwendet
Bibliothek PWMOT im Ordner: C:\Users\Andreas\Documents\Arduino\libraries\PWMOT (legacy) wird verwendet
Bibliothek AccelStepper in Version 1.61 im Ordner: C:\Users\Andreas\Documents\Arduino\libraries\AccelStepper wird verwendet
Bibliothek SPI in Version 1.0 im Ordner: C:\Users\Andreas\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\SPI wird verwendet
Bibliothek Wire in Version 1.0.1 im Ordner: C:\Users\Andreas\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\Wire wird verwendet
Bibliothek MPU6050_light in Version 1.2.1 im Ordner: C:\Users\Andreas\Documents\Arduino\libraries\MPU6050_light wird verwendet
My hypothesis is that the cause of the different behavior you are seeing between the program from the sketch compiled with each IDE version is actually differences in these dependencies rather. The fact that a different IDE version is used in each environment is irrelevant.
You can test this by installing the same versions of the dependencies on the computer where you are using Arduino IDE 2.3.1 as you have installed in the "functional" environment on the Windows 8 PC.
I'll provide instructions you can follow to do that:
Install "esp32" Boards Platform Version 1.0.6
- Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
- Scroll down through the list of boards platforms until you see the "esp32" entry.
- Select "1.0.6" from the drop-down menu in the "esp32" entry.
- Click the "INSTALL" button at the bottom of the entry.
- Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully installed platform ...
Install "AccelStepper" Library Version 1.61
- Select File > Quit from the Arduino IDE menus if it is running.
- Delete the folder at the following path:
C:\Users\aehrh\Documents\Arduino\libraries\AccelStepper
Please be careful when deleting things from your computer. When in doubt, back up! - Start Arduino IDE.
- Select Sketch > Include Library > Manage Libraries... from the Arduino IDE menus to open the "Library Manager" view in the left side panel.
- Type
AccelStepperin the "Filter your search..." field. - Scroll down through the list of libraries until you see the "AccelStepper" entry.
- Click the ˅ icon on the right side of the version selector in the "AccelStepper" entry.
The version selector dropdown will open. - Select "1.61.0" from the dropdown.
- Click the "INSTALL" button at the bottom of the entry.
- Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
ⓘ Successfully installed library ...
After doing that, upload the sketch to your board again. Does the program now behave as expected?
Hello ptillisch, after changing the settings it works now with IDE 2.3.2. and esp32 Version1.06 .
I still can not open any example of AccelStepper. However, most important is that it works now. The issue is that with eps32 Version 2.0 onwards AccelStepper is not working. Thanks for your Support.
You are welcome. I'm glad it is working now. Thanks for taking the time to post an update with your findings!
Since it is completely unrelated to the runtime problem you had with the AccelStepper library, discussion of the inability to open the example sketches in Arduino IDE was split into a separate forum topic:
Please see the update I posted over there. If anyone would like to discuss that subject further, please use the other topic.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.