Show Posts
Pages: 1 [2] 3 4 ... 17
16  Using Arduino / Motors, Mechanics, and Power / Re: EasyDriver stepper motor driver not fast on: September 11, 2013, 09:48:08 am
Yes the clip is what the code does. It's working fine but I need it to go faster.

The wiring diagram is exactly like in this link:http://bildr.org/2011/06/easydriver/

I'm going to try it with a12v PSU to see what happens.
17  Using Arduino / Motors, Mechanics, and Power / Re: EasyDriver stepper motor driver not fast on: September 11, 2013, 04:23:49 am
Here is a clip of it on the cluster. It goee about 270 degrees.

https://www.youtube.com/watch?v=hrXkIfIyvt8&feature=youtube_gdata_player

It's only getting power from the arduino.

It's a car stepper motor so theoretically should go pretty fast. I haven't got much info on it.

I've tried longer periods of up to 5 seconds without any luck.

Thanks.
18  Using Arduino / Motors, Mechanics, and Power / EasyDriver stepper motor driver not fast on: September 11, 2013, 12:48:36 am
Hi.

I have been using the bildr's tutorial for Easydriver stepper motor driver to run a stepper motor on my car cluster.

bildr.org/2011/06/easydriver/

It works fine to go back and forth but only at speeds of up to 0.3. For example:   rotate(4200, 0.3);

If I make it any faster "rotate(4200, 1);" , you can see that it tries to move but it doesn't at all! I need it to move as fast as possible. Is there any solutions at all?

Here is the code:

Code:
#define DIR_PIN 2
#define STEP_PIN 3

void setup() {

  pinMode(DIR_PIN, OUTPUT);
  pinMode(STEP_PIN, OUTPUT);
}

void loop(){

  //rotate a specific number of microsteps (8 microsteps per step)
  //a 200 step stepper would take 1600 micro steps for one full revolution
  rotate(1600, 1); //reverse
  delay(1000);

  rotate(1600, 1);
  delay(1000);
}



void rotate(int steps, float speed){
  //rotate a specific number of microsteps (8 microsteps per step) - (negitive for reverse movement)
  //speed is any number from .01 -> 1 with 1 being fastest - Slower is stronger
  int dir = (steps > 0)? HIGH:LOW;
  steps = abs(steps);

  digitalWrite(DIR_PIN,dir);

  float usDelay = (1/speed) * 70;

  for(int i=0; i < steps; i++){
    digitalWrite(STEP_PIN, HIGH);
    delayMicroseconds(usDelay);

    digitalWrite(STEP_PIN, LOW);
    delayMicroseconds(usDelay);
  }
}

void rotateDeg(float deg, float speed){
  //rotate a specific number of degrees (negitive for reverse movement)
  //speed is any number from .01 -> 1 with 1 being fastest - Slower is stronger
  int dir = (deg > 0)? HIGH:LOW;
  digitalWrite(DIR_PIN,dir);

  int steps = abs(deg)*(1/0.225);
  float usDelay = (1/speed) * 70;

  for(int i=0; i < steps; i++){
    digitalWrite(STEP_PIN, HIGH);
    delayMicroseconds(usDelay);

    digitalWrite(STEP_PIN, LOW);
    delayMicroseconds(usDelay);
  }
}
19  Using Arduino / General Electronics / Re: Reading Car Indicators Signal with Arduino on: August 07, 2013, 04:02:46 am
Anybody?
20  Using Arduino / General Electronics / Re: Reading Car Indicators Signal with Arduino on: August 02, 2013, 02:52:25 pm
Using a colour LCD to build a selection of warning light to be shown on it. I'd like to get the signals from the lights on the dashboard. I also wanna show the indicators on this.

Hope this helps.
21  Using Arduino / General Electronics / Re: Reading Car Indicators Signal with Arduino on: August 02, 2013, 03:26:20 am
Thanks for the reply. Much appreciated.

I now how to program LCDs etc, no worries there. Is voltage dividers the only way?

Thanks.
22  Using Arduino / General Electronics / Reading Car Indicators Signal with Arduino on: August 01, 2013, 11:28:22 am
Hi everyone.

What's the best way of reading car indicator signals with an Arduino preferably via the digital pins?

This is then used to show some sign on an LCD.

Any help would be appreciated.

Thanks.
23  Using Arduino / Sensors / Re: MAX31855 thermocouple always reading zero on: June 03, 2013, 01:42:27 am
I've checked the wiring over and over again many times.
24  Using Arduino / Sensors / Re: MAX31855 thermocouple always reading zero on: June 02, 2013, 07:03:37 pm
Both internal temp and sensor temp read 0.

I only have the chip connected, nothing else.
25  Using Arduino / Sensors / Re: MAX31855 thermocouple always reading zero on: June 01, 2013, 09:03:35 am
Hi and thanks for your reply.

How do you do that?
26  Using Arduino / Sensors / MAX31855 thermocouple always reading zero on: May 31, 2013, 03:19:48 pm
I've got a MAX31855K chip and followed the datasheet to make a circuit. I've connected it to my Arduino Duemilanove and powered it with 3.3v. I've got a K-type TC sensor connected also .I've used the Adafruit's library to get values out of it, but I always get 0 for both internal and TC sensors.

https://github.com/adafruit/Adafruit-MAX31855-library

Any ideas?
27  Using Arduino / Displays / Re: 4D Systems μLCD-μLED-μVGA Serial_LCD Library Suite on: May 09, 2013, 06:24:14 am
Obsolescence Notice
 
The Serial_LCD Library Suite was designed for 4D Systems screens on serial SGC mode.
 
4D Systems has launched new screens and a major update of its Workshop 4 IDE with an outstanding feature: ViSi-Genie. ViSi-Genie provides a graphical environment to design a user interface in just a couple of minutes.
 
The new serial connection SPE2 mode is not compatible with SGC, making the Serial_LCD Library Suite obsolete. 4D Systems provides new libraries for the Arduino, PixAxe, Raspberry Pi, Pascal and C platforms.
 
 
Links
Workshop 4 IDE with ViSi Genie
Libraries for SP2 serial connection GitHub repository
• Serial_LCD Library Suite reference and maintenance on a case by case basis

Hi,

Can the PmmC file not be updated on these new ones to turn it into a serial salve device like before so we can still use your library?
28  Using Arduino / General Electronics / Re: Frequency Measurement Library Zero Frequency on: December 03, 2012, 07:45:49 am
Thanks for your reply.

I'm not sure how to do that to be honest  smiley-confuse
29  Using Arduino / General Electronics / Frequency Measurement Library Zero Frequency on: December 03, 2012, 05:41:38 am
I am using the Frequency Measurement Library: http://interface.khm.de/index.php/lab/experiments/frequency-measurement-library/

I am trying to measure frequecy from 0-500 To then connect to my RPM and speed frequency signal wires on my car to convert the frequency values to the correct speed and RPM values.

The problem I have is that when RPM is 0 or speed is 0 the library either doesn't give me anything or gives random values. How can I measure 0 frequency? Or in other words set frequency at zero when there are no counts?

I don't have to use this particular library either.

Any help is appreciated.

Thanks.
30  Topics / Science and Measurement / Re: Frequency Counter Library on: December 02, 2012, 05:21:16 am
How can I do this with a car? Especially the engine rpm?
Pages: 1 [2] 3 4 ... 17