Thanks Thanks:  0
Needs Pictures Needs Pictures:  0
Picture(s) thanks Picture(s) thanks:  0
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2006
    Location
    Heidelberg, Victoria
    Age
    79
    Posts
    2,251

    Default Arduino uno R3 stepper motor control

    What I need is a tutorial on writing code to control an Arduino + Adarfruit stepper motor controller to drive a nema17 stepper motor.

    Simple controls such as a 3 position switch to select forward, stop and reverse plus a potentiometer to control speed.

    I know absolutely nothing about programming so would appreciate with each line of code, an explanation of what's occurring together with the meanings of each character.

    I've seen many lines of code and as far as I'm concerned, I might as well be trying to read Greek.

    I reckon I've got the physical wiring down pat from Google, just need the code.

    If you can spare the time to explain things, I would be extremely grateful

    Ken

    Edit

    Once I have the code, how do I get it into my computer, and then into the Arduino?
    Last edited by neksmerj; 8th November 2014 at 05:18 PM. Reason: More questions

  2. # ADS
    Google Adsense Advertisement
    Join Date
    Always
    Location
    Advertising world
    Age
    2010
    Posts
    Many





     
  3. #2
    Join Date
    Nov 2006
    Location
    Heidelberg, Victoria
    Age
    79
    Posts
    2,251

    Default Surely someone has Arduino experience

    This is unbelievable, 101 views and not one comment.

    Surely one of our members has some experience with programming Arduino boards.

    I'm getting more support from the metalwork forum, and this is an electronics topic.

    Ken

  4. #3
    Join Date
    Sep 2006
    Location
    Wandong
    Age
    60
    Posts
    453

    Default

    Sorry Ken, I can't help...

    I might be able to resurrect my MCS51 memories if I tried hard (it's been 15 years since I used that particular family of chips, so my machine code brain cells have probably rusted away), or maybe I could help with some code for PIC Micro's - mainly the 16F series which I used a couple of years ago. Not the Arduino stuff though, sorry.
    For what you're trying to do (re - the camera slider), I'd probably use a simple pulse generator with a dedicated stepper drive. Even a 555 chip would do it simply enough, but you might have some variations in the time base for reliable duplication.
    For me, I'd go with a 16Fxx micro and generate a pulse stream from that.

    Maybe ask here - http://forum.arduino.cc/. I'm sure someone there will know how to do it...

  5. #4
    Join Date
    Jun 2010
    Location
    Canberra
    Posts
    769

    Default

    I think you've got no responses because you've asked a hell of a lot. It's like saying I've got zero experience with metalworking, but I've bought a lathe and I want to make this part, can you give me step-by-step instructions how to do it. By the way, how do you get the lathe to hold the work?

    The normal approach to getting up to speed on an Arduino is to read a few of the many tutorials on how to get started - this will cover how to connect it to your PC, how to write, compile and upload sketches and make it do basic things like flash an LED.

    Then you'd hunt down some sample code for the stepper shield you have, try it out and see what it does. Then you'd start to modify it bit-by-bit until it does what you want it to.

  6. #5
    Join Date
    Nov 2006
    Location
    Heidelberg, Victoria
    Age
    79
    Posts
    2,251

    Default Have read tutorials

    Hi RustyArc,

    I've ploughed through many programs, but without knowing what each step does and what each character means, I might as well be trying to read Greek.

    I was just hoping one of our members had a program for controlling a stepper motor, forward, stop reverse and speed using Arduino.

    Don't reckon I'm asking too much.

    Ken

  7. #6
    Join Date
    Apr 2009
    Location
    Tas
    Age
    66
    Posts
    40

    Default

    http://www.youtube.com/user/makecourse/videos

    Ken

    YouTube has some detailed tutorials
    for example the ones linked above. These run from Arduino basics through to programming steppers

  8. #7
    Join Date
    Sep 2014
    Location
    Australia
    Posts
    660

    Default

    I have looked at some ardunio code and it looks very c like to me. I dont do much c anymore outside of windows drivers, but the go to book is kernaghan and ritchies book "the c programming language".

    Understand that with c and everything microcontrollers, you need some basic understanding of the processor architecture, so you will need to back up the programming book with the data sheet for the particular processor.

Similar Threads

  1. Remote control by Arduino
    By pmcgee in forum WOODWORK - GENERAL
    Replies: 2
    Last Post: 10th October 2014, 09:29 AM
  2. stepper motor control
    By azzrock in forum ELECTRONICS
    Replies: 14
    Last Post: 18th March 2013, 08:52 AM
  3. Stepper Motor Id
    By wbleeker in forum CNC Machines
    Replies: 3
    Last Post: 3rd June 2011, 02:11 AM
  4. help with what i need to setup stepper motor.
    By weisyboy in forum CNC Machines
    Replies: 10
    Last Post: 6th December 2010, 12:54 AM
  5. FREE: Stepper motor drivers
    By snowyskiesau in forum CNC Machines
    Replies: 1
    Last Post: 11th April 2010, 09:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •