Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: TLC5940 Arduino library documentation on: November 19, 2011, 06:07:14 am
Thanks!

somehow missed the email address. Good point.

Will post it here if I get some documentation.
2  Using Arduino / Programming Questions / Re: TLC5940 Arduino library documentation on: November 18, 2011, 01:02:46 pm
There is only so much information out there, starting a new thread won't magically produce more information.

Ok. just to clarify. I have no intention to milk any info out of helpful people. I should have phrased it more clearly. I am wondering if anyone has this documentation info somewhere. As it has been available in the webpage, but for unknown reason is not anymore.

For clarity's sake I was thinking it's probably better idea to start a new thread than to ask it as an OT in another thread.

I am sorry if I somehow offended some people by asking...
3  Using Arduino / Programming Questions / Re: TLC5940 Arduino library documentation on: November 17, 2011, 02:55:45 pm
Were you hoping that starting a new thread would get more results?
http://arduino.cc/forum/index.php/topic,75775

Well, yes intact I was. Also I thought it's not nice to steal someones thread.

I think this is a valid question as libraries should come with documentation. And it's good to point that some links are not working. Or do you think otherwise?
4  Using Arduino / Programming Questions / TLC5940 Arduino library documentation on: November 17, 2011, 01:31:29 pm
I recently noticed that the TLC5940 library's documentation lead to a dead webpage. Does anyone have this documentation somewhere? Google has cached the main page of the documentation, but there's nothing else.

Would be great to obtain the documentation.
5  Using Arduino / Programming Questions / Re: TLC5940 on: November 16, 2011, 02:01:45 pm
ah fair cop
I see what you mean now

well here's a plan
the best way to learn is by teaching
so why don't you make notes as you get to grips with it!  smiley
sorry - bit cheeky!

 smiley-grin

Well, don't really have time for it. I was asking this for a student in my course so she could better understand it.
-So yes, I'm already teaching smiley-wink
6  Using Arduino / Programming Questions / Re: TLC5940 on: November 16, 2011, 01:52:47 pm
I didn't mean the data sheet of tlc5940 but rather the documentation for the tlc5940 library, sorry didn't make myself clear.
Datasheet is easily found and also the library. And it's workable with just the examples, or reading source code, but would be great to have documentation available also.
7  Using Arduino / Programming Questions / Re: TLC5940 on: November 16, 2011, 01:12:16 pm
Problem is that the link to the documentation doesn't work anymore. It's possible to use the library and learn from the examples, but the online documentation pages don't exist anymore. (Google has the main page cached, but not the rest)

Eould be lovely if someone could provide with the documentation,
8  Topics / E-Textiles and Craft / Re: Lilypad simple on: October 09, 2011, 02:00:07 pm
Oh, yes, why didn't I figure that one...  smiley-fat
Thanks!!
9  Topics / E-Textiles and Craft / Re: Lilypad simple on: October 09, 2011, 01:13:16 pm
Lilypad Simple link
10  Topics / E-Textiles and Craft / Lilypad simple on: October 07, 2011, 01:06:03 pm
Hi,

This is just a simple question but can't find anywhere which pins on Lilypad Simple are pwm-pins? I understood theres 6 of them.
There's really little documentation of it.
11  Forum 2005-2010 (read only) / Interfacing / Re: Controlling 2 dc-motors with l293ne on: October 11, 2010, 02:31:28 pm
Thanks to all the replies! Yesterday I managed to fix the problem. And YES the problem was the 9volt battery powering the motors. I changed that to better powersource and put capacitor to smooth the values and then everything worked smiley
And yes I have now different powersources for arduino and motors. Theres 9volt battery powering arduino and IC and AA-batteries for the motors.
code works perfectly but I refined it a little, but is still very simple and a work in process. It is meant to be very simple because I'll use it on some courses, but for my own amusement and interest I plan to work on it more...
if anyones interested, it's here

Code:
/* "RANDOM SWITCH CASE DRAWING ROBOT"
 2010 Tomi Dufva
 Uses l293ne IC-chip (H-bridge, for info look:http://www.ecs.umass.edu/ece/m5/tutorials/H-Bridge_tutorial.html
 and http://luckylarry.co.uk/arduino-projects/control-a-dc-motor-with-arduino-and-l293d-chip/)
 for driving 2 simple dc-motors on random directions. */

int moottori1a = 3; //pin 2 on l293
int moottori1b = 4; //pin 7 on l293:
int moottori2a = 5; //pin 10 on l293
int moottori2b =6; //pin 15 on l293:
int enablePin1 = 9; //pin 1 onl293
int enablePin2 = 9; //pin 9 on l293
int ledPin = 13; //LED which blinks when arduino resets, great visual to see if theres some short or other trouble
int ledPin2 = 12; // Led which blinks whenever Switch switches to new case
int liike = 0; //Variable for determining which way robot should go. ie. Which case it takes.



void setup(){
  Serial.begin(9600); // debugging
  pinMode(moottori1a, OUTPUT);
  pinMode(moottori1b, OUTPUT);
  pinMode(moottori2a, OUTPUT);
  pinMode(moottori2b, OUTPUT);
  pinMode(ledPin, OUTPUT);
  pinMode(ledPin2, OUTPUT);

  digitalWrite(enablePin1, HIGH); // Putting IC on and motors running
  digitalWrite(enablePin2, HIGH);// Putting IC on and motors running

  // blink the LED 3 times. This should happen only once.
  // if you see the LED blink three times, it means that the module
  // reset itself,. probably because the motor caused a brownout
  // or a short.
  blink(ledPin, 7, 100);
}

void loop () {

  int liike = random(1,7); // Assigns randomw value from 1-7 to liike variable
  Serial.println(liike); // Prints assigned number to serial to see if it works

  switch (liike) {
  case 1: // Both motors forward

    blink (ledPin2,2,100);

    digitalWrite(moottori1a, LOW);
    digitalWrite(moottori1b, HIGH);
    analogWrite(enablePin1, 100);
    digitalWrite(moottori2a, LOW);
    digitalWrite(moottori2b, HIGH);


    analogWrite(enablePin2, 100); // Assigning the speed of the motor

    delay (1000);
    break;

  case 2: //Right motor forward left backward

    blink (ledPin2,2,100);
    digitalWrite(moottori1a, LOW);
    digitalWrite(moottori1b, HIGH);

    analogWrite(enablePin1, 100); // Assigning the speed of the motor

    digitalWrite(moottori2a, HIGH);
    digitalWrite(moottori2b, LOW);

    analogWrite(enablePin2, 100); // Assigning the speed of the motor

    delay (1000);
    break;
  case 3: //Right motor forward, left stop

    blink (ledPin2,2,100);
    digitalWrite(moottori1a, LOW);
    digitalWrite(moottori1b, HIGH);

    analogWrite(enablePin1, 100); // Assigning the speed of the motor

    digitalWrite(moottori2a, LOW);
    digitalWrite(moottori2b, LOW);

    analogWrite(enablePin2, 100); // Assigning the speed of the motor

    delay (1000);
    break;

  case 4: //Right motor backward, left forward

    blink (ledPin2,2,100);

    digitalWrite(moottori1a, HIGH);
    digitalWrite(moottori1b, LOW);

    analogWrite(enablePin1, 100); // Assigning the speed of the motor

    digitalWrite(moottori2a, LOW);
    digitalWrite(moottori2b, HIGH);

    analogWrite(enablePin2, 100); // Assigning the speed of the motor

    delay (1000);
    break;

  case 5: //Right motor backward, left stop

    blink (ledPin2,2,100);
    digitalWrite(moottori1a, HIGH);
    digitalWrite(moottori1b, LOW);

    analogWrite(enablePin1, 100); // Assigning the speed of the motor

    digitalWrite(moottori2a, LOW);
    digitalWrite(moottori2b, LOW);

    analogWrite(enablePin2, 100);

    delay (1000);
    break;

  case 6: //Right motor stop left forward

    blink (ledPin2,2,100);
    digitalWrite(moottori1a, LOW);
    digitalWrite(moottori1b, LOW);

    analogWrite(enablePin1, 100); // Assigning the speed of the motor

    digitalWrite(moottori2a, LOW);
    digitalWrite(moottori2b, HIGH);

    analogWrite(enablePin2, 100); // Assigning the speed of the motor

    delay (1000);
    break;

  case 7: //Right motor stop, left backward

    blink (ledPin2,2,100);
    digitalWrite(moottori1a, LOW);
    digitalWrite(moottori1b, LOW);

    analogWrite(enablePin1, 100); // Assigning the speed of the motor

    digitalWrite(moottori2a, HIGH);
    digitalWrite(moottori2b, LOW);

    analogWrite(enablePin2, 100); // Assigning the speed of the motor
    delay (1000);
    break;
  }

}
void blink(int whatPin, int howManyTimes, int milliSecs) {
  int i = 0;
  for ( i = 0; i < howManyTimes; i++) {
    digitalWrite(whatPin, HIGH);
    delay(milliSecs/2);
    digitalWrite(whatPin, LOW);
    delay(milliSecs/2);
  }
}

12  Forum 2005-2010 (read only) / Interfacing / Re: Controlling 2 dc-motors with l293ne on: October 09, 2010, 01:45:00 pm
Well that made it lot clearer. It's like old people yelling to foreigners if tvey dont understand the language; maybe if I yell they get it...  :smiley

I have used 9volt batteries with good results in many arduino projects. They are cheap and can be found everywhere. So I wouldnt say they are useless.
But ok, with dc-motors im total newbie and didnt understand that they take that much current.
13  Forum 2005-2010 (read only) / Interfacing / Re: Controlling 2 dc-motors with l293ne on: October 09, 2010, 01:32:45 pm
Sorry for the stupid question, but why should I use 6v source instead of 9v? I have understood that l293 should be able to take it. That also leaves some space for voltage drops if using 2motors?
14  Forum 2005-2010 (read only) / Interfacing / Re: Controlling 2 dc-motors with l293ne on: October 09, 2010, 01:17:32 pm
Great, thanks. Will try that tomorrow!
15  Forum 2005-2010 (read only) / Interfacing / Re: Controlling 2 dc-motors with l293ne on: October 09, 2010, 01:04:25 pm
pwillard: you have a very good vision, so youre not blind! I forgot to put those in scheme. But yes I am connecting those pins. They go to +5v from arduino.
Im a bit puzzled about the the powering problem. I have checked quite many tutorials and in those the +5volts from arduino (when powered from ext. power source) is enough to drive a motor. But still it is suggested to drive them from different power source. I would like to make my design as simple and light as possible, so do you guys think its possible to power them from the arduinos +5v?

Anyway, I'll try again to power the motors from different 9volt battery.

I have tried the motors with different code. Controlling with pot worked for few seconds, then it stopped. Alsothe lower speeds didnt turn the motor, it just stopped with some electric noise buzzing, so I could actually hear it was getting differetn amount of current, but the motor just didnt turn..

newbie: in your code, theres no pins for enabling the l293? But thanks for the code and trouble!
Pages: [1] 2