Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Re: timelapse - accelStepper with LCD library on: April 26, 2011, 03:10:58 am
Hi Terry, thanks for the reply.

Your project looks great. I was just looking at the motors you use, does your stepper motor have enough torque for the application? I am using a stepper with a holding torque of 9Ncm and it still struggles at high speeds...

Here is a video of the very early stages of my project -

Sorry, I was working with a separate sketch to my main sketch so hadn't included the LCD header file! (I included it in the accelStepper.cpp file instead)

The code I am trying to implement within the runSpeed() function is:
Code:
lcd.setCursor(6,2);
lcd.print(stepCount);
stepCount++;

Simple enough, but I still get the following error:
Code:
/Applications/Arduino.app/Contents/Resources/Java/libraries/AccelStepper/AccelStepper.cpp: In member function 'boolean AccelStepper::runSpeed()':

I also get two other errors saying 'LCD' and 'stepCount' were not declared (the same errors in my original post). Obivously, these are declared in my sketch but do I need to declare them in accelStepper.cpp file too?
2  Using Arduino / Project Guidance / Re: timelapse - accelStepper with LCD library on: April 25, 2011, 05:07:43 pm
anyone? i'm sure it is a really simple issue, i've just never done anything like this before...
3  Using Arduino / Project Guidance / timelapse - accelStepper with LCD library on: April 25, 2011, 03:04:55 pm
Hello, i'm building a timelapse/dolly controller.

I've recently started using the accelStepper library, which is perfect for my use, however I need to update the number of shots taken and time left for the timelapse.

Is there a way to incorporate this in to the runSpeed() method of the accelStepper library? I.e. modifying the accelStepper to include a statement which would update my step count and time and print that to the LCD.

I tried including the "LiquidCrystal.h" into the accelStepper.cpp file and then using lcd.print(stepCount) within the runSpeed() function. However when I try to run this I get the following errors:

Code:
/Applications/Arduino.app/Contents/Resources/Java/libraries/AccelStepper/AccelStepper.cpp:8:55: error: LiquidCrystal.h: No such file or directory
/Applications/Arduino.app/Contents/Resources/Java/libraries/AccelStepper/AccelStepper.cpp: In member function 'boolean AccelStepper::runSpeed()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/AccelStepper/AccelStepper.cpp:31: error: 'lcd' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/AccelStepper/AccelStepper.cpp:32: error: 'stepCount' was not declared in this scope

This would save me a lot of trouble if I could get this working. Does anyone know the correct way I should do this?

Thanks.

Michael
4  Using Arduino / Motors, Mechanics, and Power / Timelapse controller - accelStepper on: April 22, 2011, 09:23:43 am
Hello,

i'm building a timelapse controller (consisting of 2 buttons, 2 potentiometers and an LCD). I'm planning to use the accelStepper since it looks like a great library for my needs.

Originally, I had been using the standard stepper library (that comes with the IDE) with the following code:

Code:
    if (millis() >= waitStep) {
      myStepper.step(1);     
      lcd.setCursor(7,1);
      lcd.print(stepCount);
      stepCount++;
      waitStep = millis() + stepDelay;
    }     

However, if i'm using the accelStepper library is it possible to modify the library to include the lcd instructions (set cursor and print), so that I could just have
Code:
  myStepper.runSpeed();
within my startTimelapse() function.

If i insert this code into the accelStepper.cpp, do I need to also include the LCD library in that file, or in the header file (or both?)

Thanks in advance,

Michael
5  Using Arduino / Project Guidance / Re: SLA7026 - stepper driver on: April 06, 2011, 12:29:10 pm
I connected up the reference pins as shown in the datasheet - NPV's were 680 ohms on the top (to +5V) and 100 on the bottom (to ground), giving me 0.6V on the reference pins. This had no effect on the output at all. I'm starting to think that the chip is faulty since outputs B and notB are constantly on (these are controlled by half of the device) and any changes I make on the reference pins has no effect on these outputs...
6  Using Arduino / Project Guidance / Re: SLA7026 - stepper driver on: April 06, 2011, 09:11:00 am
With my current circuit (the one at the top of the page) i've hooked up four LED's on the outputs to simulate the stepper motor coils. At the moment, outputs 3 and 4 are constantly on, and outputs 1 & 2 flash on/off alternately - they are on for 3/4 of the logic sequence I am sending the driver inputs.
7  Using Arduino / Project Guidance / Re: SLA7026 - stepper driver on: April 06, 2011, 09:03:43 am
I'm confused, I only need a total of 2 Arduino pins to control the stepper? I had hooked up 4 pins from the Arduino and connected the 4 output pins from the SLA7026 to the motor (as in my circuit diagram). So how do the motor wires connect to the driver?

Regards,

Michael
8  Using Arduino / Project Guidance / Re: 12V PCB connector on: April 06, 2011, 06:20:27 am
Great, thanks a lot for the reply! That's what I was thinking of going with, i'll look into it more!
9  Using Arduino / Project Guidance / Re: SLA7026 - stepper driver on: April 06, 2011, 06:18:37 am
Does anyone have any suggestions?
10  Using Arduino / Project Guidance / Re: 12V PCB connector on: April 06, 2011, 03:22:09 am
Done. Any ideas on my original question?..
11  Using Arduino / Project Guidance / Re: 12V PCB connector on: April 06, 2011, 03:16:34 am
Sorry, this post would be great. I will only post under one topic from now.
12  Topics / Robotics / Re: SLA7026 - stepper driver on: April 06, 2011, 03:08:55 am
That's actually my post as well just in a different topic smiley I thought I could get a reply quicker that way!

Does anyone have a suggestion for this though?
13  Using Arduino / Project Guidance / 12V PCB connector on: April 06, 2011, 03:05:54 am
Hello,

I'm designing a PCB in Eagle for a timelapse and dolly controller. I'm powering my stepper motor driver from a 12V SLA battery, but what is the best/easiest connector for the PCB?
Should I go for a DC barrel power jack? Or a Wago connector?....

Cheers,
Michael
14  Topics / Robotics / SLA7026 - stepper driver on: April 06, 2011, 02:57:27 am
Does anyone have any experience with the SLA7026M unipolar stepper motor driver working with Arduino? I'm using a 2A, 6 wire unipolar stepper motor, and i'm supplying it with +12V. I got it working earlier but now the motor doesn't want to rotate properly - it just steps backwards and forwards! Here is a quick Eagle schematic I made once I had it working: http://www.flickr.com/photos/61504193@N08/5593139631/

The Off-time pins don't seem to have any effect whether they are connected or not. Originally I had grounded the reference pins but this doesn't seem to allow any current through and the motor doesn't move at all.
Could anyone help me out with schematics they may have used in the past?

Cheers,

Michael
15  Using Arduino / Project Guidance / Re: SLA7026 - stepper driver on: April 05, 2011, 06:06:37 pm
Thanks for the reply Mike. Here is a quick Eagle schematic I made (my first post so hopefully this will link properly?) - http://www.flickr.com/photos/61504193@N08/5593139631/

I assume it is something stupid like confused wires but I've been over it so many times and still no success!

The input pins connect to 4 Arduino pins. The two common wires of the stepper are connected to +12V. The off-time delay pins don't seem to have any effect if they're connected or not.

I guess you need to look at the SLA7026M datasheet really (don't know how I can link that), but i'm driving it in Full Step operation according to the datasheet, which is:

Sequence         0       1       2       3       0
Input A            H       L       L       H       H
Input notA       L       H       H       L       L
Input B            H      H      L        L       H
Input notB       L       L       H       H       L

Hope this helps?

Pages: [1] 2