element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Pi IoT
  • Challenges & Projects
  • Design Challenges
  • Pi IoT
  • More
  • Cancel
Pi IoT
Blog PiIoT - The perfect reading place #15 [tech]: Stepper motors and controller testing
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: balearicdynamics
  • Date Created: 7 Aug 2016 9:41 PM Date Created
  • Views 1186 views
  • Likes 8 likes
  • Comments 10 comments
  • l298
  • internet of things
  • dynamics surface
  • unipolar stepepr motor
  • piiot
  • gearbest.com
  • stepper motor
  • geared stepper motor
  • iot
  • lorenzo p. merlo
  • 28bj-48
  • motor controller
  • art-a-tronic
Related
Recommended

PiIoT - The perfect reading place #15 [tech]: Stepper motors and controller testing

balearicdynamics
balearicdynamics
7 Aug 2016

Introduction

image

The moving parts of the Art-a-tronic opera (created from an original digital-art of Lorenzo P. Merlo) and the Dynamic surface (coming soon) uses a 28BYJ-48 geared stepper motor and a L298 motor controller offered by the second sponsor of the project Gearbest.com

For more details on the hardware please see the attached datasheet

 

Motors and controllers fast-testing

Before starting the firmware development on the microcontroller that will manage a multiple set of motors (based on the PSoC4PSoC4 by Cypress) a fast performance test has been done with the ArduinoUNOArduinoUNO board (I am very proud of this one that has been sent me by spannerspencer on Christmas 2015) I use for testing.

imageimage

For testing I have used a very simple sketch as it is shown below

 

/* 
 Stepper Motor Control - one step at a time


 This program test the Gearbest.com 28BJ-48 unipolar stepper motor.
 The motor is attached to digital pins 3,5,6,9 of the Arduino.
 */


#include <Stepper.h>


// initialise the stepper library
Stepper myStepper(stepsPerRevolution, 3,5,6,9);            


int stepCount = 0;         // number of steps the motor has taken


void setup() {


}


void loop() {
  // step one step:
  myStepper.step(-1);


  delay(50); // Hz frequency of the motor = 1000/delay
}

 

Changing the delay() value is possible to test the motor speed at different PWM frequencies (in the example it is set to 20 Hz)

 

Performance and powering notes

image

Far to be an exhaustive test I have focused the attention to the parameters I am interested for this specific application.

The stepper motor result very interesting for this application because it has a low power consumption. In this case we should power many motors (and controllers) so the powering is a key factor.

Due to the low power the geared stepper motor has the advantage to be very precise but rotate slow. This is not a problem as movements should be fluid and slow in both the cases where the motors will be used.

The nominal max PWM frequency of the motors declared on the datasheet is 100 Hz. With the Arduino (not so reliable) the higher frequency reached was 90 Hz; a more precise evaluation of this parameter will be reached with the PSoC firmware.

Attachments:
image28BYJ-48.pdf
imageL298_H_Bridge.pdf
  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 9 years ago +3
    News to hand ... World shortage of stepper motors is linked to a Design Challenge being run by element14. A spokesman for element14 said " THAT is an impressive amount of stepper motors! ". They are a…
  • jomoenginer
    jomoenginer over 9 years ago +1
    Enrico, This is awesome! You are really making me wish I had a 3d printer. I'm very interested in seeing the implementation of the Cypress board and all of the moving parts. Jon
  • element14Dave
    element14Dave over 9 years ago in reply to balearicdynamics +1
    We believe in you!
Parents
  • element14Dave
    element14Dave over 9 years ago

    THAT is an impressive amount of stepper motors! Great job so far @balearicdynamics keep up the good work!

     

    Dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 9 years ago in reply to element14Dave

    Hey Dave !

     

    The problem will be according all together... And it is only a sub-project of the entire architecture image Sigh.

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • balearicdynamics
    balearicdynamics over 9 years ago in reply to element14Dave

    Hey Dave !

     

    The problem will be according all together... And it is only a sub-project of the entire architecture image Sigh.

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • element14Dave
    element14Dave over 9 years ago in reply to balearicdynamics

    We believe in you!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 9 years ago in reply to element14Dave

    Thank you Dave! I need also some luck. The last news is that to the end of August - corresponding with the end of the challenge - we make a pre-install testing on site at the MuZIEum shooting etc. Then a day that should be confirmed - maybe 1 or 8 next Dec - there will be the official presentation. I hope someone of E14 can be present image More details on one of the next posts.

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube