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 & Partners
    Products & Partners
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
Arduino
  • Products & Partners
  • More
Arduino
Arduino Forum Have a question about Arduino? Ask me!
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 1914 replies
  • Subscribers 527 subscribers
  • Views 70084 views
  • Users 0 members are here
  • jeremy_blum
  • expert
  • student
  • arduino
Related

Have a question about Arduino? Ask me!

sciguy14
sciguy14 over 15 years ago

This thread has been closed to new questions.

However, we welcome you to Post Your Questionabout Arduino in the element14 Community Arduino group.  You'll find many fellow members and experts who have just the answer you're looking to find! 

 

Thank You, Your Friends at element14 Community


image

Jeremy Blum

Jeremy is an Electrical and Computer Engineering Student at Cornell University. He has been building microcontroller projects since high school, from a prototype prosthetic hand with a novel control scheme, to a nerf gun that fires at the intruders and uploads their picture to the web.
  • Sign in to reply
  • Cancel

Top Replies

  • billabott
    billabott over 13 years ago in reply to e14 Contributor +2
    @Brendan Your video is somewhat adequate for the intended purpose, however, from an engineer's point of view it is lacking in providing pertinent facts. Such as the part number, data sheet, and source…
  • e14 Contributor
    e14 Contributor over 15 years ago +1
    Jeremy, thanks for your intro videos. I am just getting started myself in Arduino though I have done some simple electronics projects using Atmel chips. Here is an example using ATTiny13 chips. www.youtube…
  • e14 Contributor
    e14 Contributor over 15 years ago +1
    Hi Jeremy I've built a device (see picture) with an Arduino and Ethernet shield that connects to our Network Monitor (Nagios) and moves an arrow to indicate if any of the computers we monitor are not responding…
Parents
  • e14 Contributor
    e14 Contributor over 15 years ago

    Jeremy, you might be the wrong expert to contact about this but since your an arduino exper and im utilizing an arduino uno in my project i thought i might give it a shot, im trying to build a micro cnc laser engraver, the only problem im expiriencing right now is that the stepper motors i salvaged out of an old dvd drive have no labels on the 4 contacts that come out of them, im not really sure how to connect them or how to test which terminal is which without burning anything. I also looked online trying to find any type of documentation for the motor i got but there is nothing out there, the numbers that are on it are : s42 7917c3a, im not really sure if thats a serial or model number. If you have any idea how i could test it out i would greatly appreciate your help, i will be driving them with an arduino uno and an easy driver i got from spark fun.

    thanks

    bart

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 15 years ago in reply to e14 Contributor

    I think you are going to have a lot of fun with this project that you have in mind.

    The motors are probably usually driven with 12 volts from the PC, so do not try and use more than that, unless you buy some really good driver chips (either to build your own driver, its not difficult, or you buy PCBs already built and tested....) that handle current adjustment, which will allow higher voltages also to be used. Allegro make some good chips, I can recommend the Allegro family chips, especially the latest ones that do not need external sense resistors......Look at the SLA707X family of chips.

    You need to be careful in adjusting just how much current is sent to the motors, may I suggest not more than say 250 ma at first, and if the motors get hot, both cool them and use less current. The current is adjusted by setting up a specific chip voltage using a pot. The chips come in various max currents up to 3 amps per motor, you only need the chip with the lowest current range, 1 amp range.....

    Then you will need usually 3 axis for engraving, so that means 3 motors and 3 driver PCBs. (Change to 4 if needed!)

    Then, assuming you want to get going fairly quickly and have an easy interface to faultfind, go for a Parallel Printer Breakout Board (often just called a PPP) and an older (cheaper) PC with a PPP, or one where you can by a plugin card with a port on it.

    DON'T GO FOR USB, learn to walk before you run. Also USB costs far more in both $$$ and nerves!

    Then find and download an Ubuntu Unix install with EMC2 (all free from Sourceforge). Read here first:-

    http://en.wikipedia.org/wiki/SourceForge

    Join the EMC forums and get yourself up to speed.

    Look for other forums CNCZONE and the like, read all you can.

    If you buy or make a breakout PCB, make sure it has opto isolation. To read more on this, join the yahoo group:-

    http://groups.yahoo.com/group/DIY_CNC_Interfacing/

    You will eventually need to get a good CAD program, there are some free ones around. Then the drawing needs to be converted to GCode for your CNC machine. You can read more about GCode here:-

    http://en.wikipedia.org/wiki/Gcode

    If you have any further questions I and others here can help, just ask.

    regards

    Andy

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 15 years ago in reply to e14 Contributor

    I forgot to mention that with an Arduino, you can contrly MOSFETs to drive the stepper motor directly, sorry!!

    Maybe someone has already developed code that you can use or adapt.

    As your motor has 4 connections, that is a BIPOLAR Stepper Motor. Not a Unipolar!!! Never forget that!!

    Its easy to identify both coils simply by using an Ohmeter on Ohms. Each coil will have two connections, label them coil A and coil B. If the motor ever drives the "wrong" direction, you only need to reverse the connections to ONE COIL ONLY!

    Sorry that I forgot so much.....

    regards

    Andy

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • sciguy14
    sciguy14 over 15 years ago in reply to e14 Contributor

    Yes, Andrew is correct.  Referring to this diagram might help you understand better: http://www.robotgear.com.au/Cache/Files/ProductImageOriginals/679_Bipolar%20stepper%20motor%20wiring%20diagram.jpg  You can use the continuity function of a multimeter to identify the wires.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • sciguy14
    sciguy14 over 15 years ago in reply to e14 Contributor

    Yes, Andrew is correct.  Referring to this diagram might help you understand better: http://www.robotgear.com.au/Cache/Files/ProductImageOriginals/679_Bipolar%20stepper%20motor%20wiring%20diagram.jpg  You can use the continuity function of a multimeter to identify the wires.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • e14 Contributor
    e14 Contributor over 15 years ago in reply to sciguy14

    Im actually trying to follow this instructible: http://www.instructables.com/id/Pocket-laser-engraver/ this is my first project with an Arduino or any type of a micro controller but i thought it would be a good prelude to building a full size cnc router, anyways i can identify the two seperate coils on the motor but how do i know which is contact is a, c, d, b? i tried applying voltage (first 3.5 V then 5V) to each one of the coils but i got no movement out of them, also i thought that dvd drives run or 5v instead of 12v so i will try applying 12v tomorrow, if it burns out then too bad i can always salvage another motor out of a different drive. I was also think about just running some g code to the controllers so it would be constantly putting out a signal to the motor and breadboarding my easy driver so i could easly plug in the wires from the motor and just try different combinations im just afraid of damaging the driver board so please let me know if thats a bad idea. i will try to get  apicture of my motor as soon as my camera charger comes in as i lost it on vacations and my battery died compleatly, once again thanks for all the great help!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 15 years ago in reply to e14 Contributor

    Stepper motors ONLY understand a complex sequence of pulses, on one or the other coils in either of two directions, you cannot drive them with DC power!! You may just burn out a coil and destroy the motor completely.....

     

    TIP. Never apply power to something you don't understand.......it can even be dangerous to you personally, but not in this case, it was only dangerous to the motors......

     

    There are no contacts in a stepper motor.

     

    A picture is unlikely to help further.

     

    Look for tutorials and the like on the web, read before proceeding further.....

     

    Best wishes.

     

    Andy

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 15 years ago in reply to e14 Contributor

    Hi, what is the   pin number ATMEGA328P-PUATMEGA328P-PU  input power, and ground, I have connect output 0 led positive, and ground negative, how connect correct wire to atmega's pins?, final led blinked.

    Thanks for answer

    Bye

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tronixstuff
    tronixstuff over 15 years ago in reply to e14 Contributor

    You should download yourself an Arduino board schematic so you can see what goes where.The design files (.pdf and Eagle) can be downloaded from here:

    http://arduino.cc/en/Main/ArduinoBoardUno

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube