Show Posts
Pages: [1] 2
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino 006 Won’t Start on: November 15, 2006, 09:52:58 am
XP Profesional
Version 2002
Service Pack 2

It doesn`t happened anything.
The san clock runs for a second and them nothing
No process is created also.
2  Forum 2005-2010 (read only) / Troubleshooting / Arduino 006 Won’t Start on: November 15, 2006, 06:31:31 am
I´ve checked in the Forum, and I´ve seen some topic related to this problem when the version 2 was released.
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1139929466
I think it is happening because I have installed the new Java Update.
Any help?
:'(

3  Forum 2005-2010 (read only) / Portugues / HELP Ferrugem on: January 03, 2008, 09:14:20 am
Oi
Eu moro no rio e procuro com urgencia alguem que me empreste um arduino por dois o tres dias
Os meus enferrujaram e tenho que apresentar um trabalho logo.
Obrigado.

4  Forum 2005-2010 (read only) / Troubleshooting / Re: UPLOADING Errors: stk500_getsync() / stk500_di on: January 03, 2008, 07:51:05 am
Yes , it is blinking tree times.

5  Forum 2005-2010 (read only) / Troubleshooting / UPLOADING Errors: stk500_getsync() / stk500_disabl on: December 24, 2007, 02:18:13 pm
I a,m getting these erros at uploading a program to Arduino

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51  

I read some Topics in the forum , but hasnt help a lot.

I have tryed everithing.


I tryed whit Arduinos Bt and Mini.
The wiring is operfest.
Everething is suplyed grounded correctly.
The COM port is the right one.

Well , i am lost.

The weird think is  that it doesnt happend before, neither in the computer, neither with the same arduinos i am ussin now.


HEEEEELP....


smiley-wink

6  Forum 2005-2010 (read only) / Troubleshooting / Re: digitalWrite pins 0 and 1 on: October 15, 2006, 05:11:16 am
Great
Did work.
I own u one.
 smiley-grin
7  Forum 2005-2010 (read only) / Troubleshooting / Re: digitalWrite pins 0 and 1 on: October 13, 2006, 02:42:14 pm
neither does it.

In function 'void setup()':
error: 'UCSRB' was not declared in this scope
8  Forum 2005-2010 (read only) / Troubleshooting / Re: digitalWrite pins 0 and 1 on: October 13, 2006, 08:04:22 am
It doesnt compile.

 In function 'void setup()':
error: 'outb' was not declared in this scope

 smiley-sad
9  Forum 2005-2010 (read only) / Troubleshooting / Re: digitalWrite pins 0 and 1 on: October 12, 2006, 09:32:32 am
I found that , but doesnt solve my problem.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1138285049

10  Forum 2005-2010 (read only) / Troubleshooting / digitalWrite pins 0 and 1 on: October 12, 2006, 08:59:50 am
Hello
I am trying to use the digital pins 0 and 1 (RX, TX) like one of the other ones.
I upload the program led blink but with led_pin = 0.
Then I reset the board, desconect the USB cable but the pin doesn´t blink.
Any help?
I have to use pins 0 and 1because I need at least 13 OUTPUT digital pins for my installation.

Any help?

11  Forum 2005-2010 (read only) / Bugs & Suggestions / Lib Eagle Fie on: November 23, 2006, 01:10:36 pm
I wish i can have a lib file for arduino mini to be used in Eagle.
Does anyone have it?
smiley
12  Forum 2005-2010 (read only) / Interfacing / Re: Shifting Out a String on: September 30, 2007, 04:38:10 pm
I´ve seen the shiftOut function, but i need to shift out a long string ( 93 values ) , and i don't want to break the string into 8 bit chunks.
I made some corrections in the code and now works, but the re is some delay.
Any suggestions?
Again , if someone is reeeeeeeeally interested in helping, please , mail me to
juliolucio@yahoo.com , and i will send u the files to test it.
Cheers

Here is the code for arduino.
////////////////////////////////////////////////////////////////
int stringSize = 8;
char serInString[ 8 ];

int latchPin = 2;
int clockPin = 3;
int dataPin = 4;

int debugPin1 = 5;


boolean dataReady = false;

void setup() {
  Serial.begin(57600);  //setup serial conversation at 19200 bauds
  pinMode(latchPin, OUTPUT);
  pinMode(clockPin, OUTPUT);
  pinMode(dataPin, OUTPUT);  
  pinMode(debugPin1, OUTPUT);

  digitalWrite(clockPin, LOW);
  digitalWrite(latchPin, LOW);
  digitalWrite(dataPin, LOW);

}

void loop () {
  readSerialString();
  if( dataReady )
    shiftOutString();
  delay( 100);
}

void blinkDebug( int times , int pin ){
  int t;
  for( t =  0 ; t < times ; t++ ){
    digitalWrite(pin, HIGH );
    delay( 100 );
    digitalWrite(pin, LOW );
    delay( 100 );
  }
}

boolean isStringEmpty(){
  if (serInString[0] == 0)
    return true;
  else                               
    return false;
}

void readSerialString (){
  int i = 0;
  if(serialAvailable()){
    while( serialAvailable()){
      serInString = Serial.read();
      i++;
    }
    dataReady = true;
   // blinkDebug( 2 , debugPin1);

  }
}

void shiftOutString(){
  int i=0;

  //start shifting
  digitalWrite(latchPin, LOW);
  delay(10);

  for( i = stringSize-1 ; i > -1 ; i-- )  {
    digitalWrite(clockPin, HIGH);

    if( serInString[ i ] == 'f' ){
      digitalWrite(dataPin, LOW);
    }
    if( serInString[ i ] == 'n' ){
      digitalWrite(dataPin, HIGH);
    }
    delay( 10);
    //register shifts bits on upstroke of clock pin  
    digitalWrite(clockPin, LOW);
    //zero the data pin after shift to prevent bleed through
    delay(10);
    
  }
  digitalWrite(clockPin, HIGH);
  delay( 10);
  digitalWrite(clockPin, LOW);
  digitalWrite(latchPin, HIGH);
  delay(30);
  digitalWrite(clockPin, HIGH);
  delay(10);
  digitalWrite(clockPin, LOW);
  digitalWrite(latchPin, LOW);
  delay(10);
  dataReady = false;
}
///////////////////////////////////////////////////////////////////////
13  Forum 2005-2010 (read only) / Interfacing / Re: Shifting Out a String on: September 28, 2007, 04:49:23 pm
Ups
I sent the wrong code for the test
Here it is:
///////////////////////////////////////////////
int numeroDeJanelas = 8;
char serInString[ 8 ];

int latchPin = 2;
int clockPin = 3;
int dataPin = 4;

int debugPin1 = 5;
int debugPin2 = 6;
int debugPin3 = 7;

boolean dataReady = false;

void setup() {
  Serial.begin(57600);  //setup serial conversation at 19200 bauds
  pinMode(latchPin, OUTPUT);
  pinMode(clockPin, OUTPUT);
  pinMode(dataPin, OUTPUT);  

  pinMode(debugPin1, OUTPUT);
  pinMode(debugPin2, OUTPUT);
  pinMode(debugPin3, OUTPUT);
}

void loop () {
  readSerialString(serInString);
  if( dataReady )
    shiftOutString(serInString , numeroDeJanelas );
  delay( 1000 );
}

void blinkDebug( int times , int pin ){
  int t;
  for( t =  0 ; t < times ; t++ ){
    digitalWrite(pin, HIGH );
    delay( 100 );
    digitalWrite(pin, LOW );
    delay( 100 );
  }
}

boolean isStringEmpty(char *strArray){
  if (strArray[0] == 0)
    return true;
  else                               
    return false;
}

void readSerialString (char *strArray){
  int i = 0;
  if(serialAvailable()){
    while( serialAvailable()){
      strArray = Serial.read();
      i++;
    }
    dataReady = true;
  }
}

void shiftOutString(char *strArray , int stringSize ){
  int i=0;
  //start shifting
  digitalWrite(latchPin, LOW);
  //shifting out the data along the register
  digitalWrite(dataPin, LOW);
  digitalWrite(dataPin, LOW);
  for( i = stringSize ; i != 0 ; i-- )  {
    digitalWrite(clockPin, LOW);

    if( strArray[ i ] == 'f' ){
      digitalWrite(dataPin, LOW);
    }
    if( strArray[ i ] == 'n' ){
      digitalWrite(dataPin, HIGH);
    }
    //register shifts bits on upstroke of clock pin  
    digitalWrite(clockPin, HIGH);
    //zero the data pin after shift to prevent bleed through
    digitalWrite(dataPin, LOW);
  }
  //stop shifting
  digitalWrite(clockPin, LOW);
  //end shifting and puting data in outputs
  digitalWrite(latchPin, HIGH);
  dataReady = false;
}
//////////////////////////////////////////////////////////////////
14  Forum 2005-2010 (read only) / Interfacing / Re: Shifting Out a String on: September 28, 2007, 12:11:33 pm
I discovered why it wasn't doing anything. I missed to change the state of the latch PIN.

It is still not working.
If u want to help me , mail me and i will send u the files for testing it.
Thanks a lot.

smiley

juliolucio@yahoo.com


/////////////////////////////////////////////////////
int tested = 0;
char serInString[8];

void setup() {
  Serial.begin(57600);  //setup serial conversation at 19200 bauds
  for (int i=2; i<=8; i++) {
    pinMode(i, OUTPUT);      // sets the digital pins 2-9 as output
  }
}

void loop () {

  if( !tested ){
    //testing
    for( int i= 0 ; i < 8 ; i ++ ){
      digitalWrite(i+2,LOW);
    }
    for( int i= 0 ; i < 8 ; i ++ ){
      digitalWrite(i+2,HIGH);
      delay( 200 );
      digitalWrite(i+2,LOW);
    }
    tested = 1;
  }


  readSerialString(serInString);

  //recived a string
  for( int i= 0 ; i < 8 ; i ++ ){
    if( serInString[ i ] == 'f' ){
      digitalWrite(i+2,LOW);
    }
    if( serInString[ i ] == 'n' ){
      digitalWrite(i+2,HIGH);
    }
  }
  delay( 100 );
}


boolean isStringEmpty(char *strArray){
  if (strArray[0] == 0)
    return true;
  else                               
    return false;
}

void readSerialString (char *strArray){
  int i = 0;
  if(serialAvailable())
    while( serialAvailable()){
      strArray = Serial.read();
      i++;
    }
}
///////////////////////////////////////////////////////



15  Forum 2005-2010 (read only) / Interfacing / Re: Shifting Out a String on: September 20, 2007, 08:50:33 am
I dont thin this ids the problem , in the shift out function in the examples the information is sent bit a bit too.
smiley-sad
Pages: [1] 2