Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: 16x2 LCD with Arduino UNO on: August 01, 2011, 05:34:26 am
Hey All,

Sorry I'm only posting now....a bit buzy. smiley smiley-grin

It worked....an it made me simplify my code even more.

Thanks all.

2  Using Arduino / Programming Questions / Re: 16x2 LCD with Arduino UNO on: July 26, 2011, 12:06:30 pm
Hey Paul and Liudr,

Thanks a mil for the advice. (ah yeah, i saw the double lcd inclusion) I will definitely follow it. Will let you know how it went.

May take a couple of days.
3  Using Arduino / Programming Questions / 16x2 LCD with Arduino UNO on: July 26, 2011, 09:48:14 am
 smiley-sad-blue  smiley-sad-blue  smiley-sad-blue  smiley-sad-blue  smiley-sad-blue  smiley-sad-blue
I need some advice on coding something is strange
I have written couple of apps using the LCD and never had this issue
i'm not sure if my app is getting too big for the Uno or not
but there seems like i reach some point then the arduino does funny things
but as soon as i remove 1 line for the LCD
it works. There are other lcd.Print code lines which all work fine, but I really do not know what is going on.

Perhaps it's my structures or the way i initialize them. Can someone help?

Heard of anything like that?

You will see i have attached two files. one with code that is working, the other with code that is not working. The only difference is in the Non Working code i enable the following line   
 
        lcd.print("Loading done..");

But the Arduino resets before this line and restarts.
4  Using Arduino / Storage / Re: Change eeprom value without loosing main flash program on: February 28, 2011, 06:08:45 am
Thanks a mil. I will look into it.
5  Using Arduino / Storage / Re: Inerfacing with smart card on: February 24, 2011, 08:35:01 am
Sorry forgot also:
6) All SC's initial baud rate is 9600, then you can get the max baud rate available from the ATR.
7) Atr's are much longer than 4 bytes most of the time. like :
   00 31 C0 71 D6 65 13 0D 01 81 01 83 
 
6  Using Arduino / Storage / Re: Inerfacing with smart card on: February 24, 2011, 08:31:52 am
Hi There,
There  are a few things you need to be aware of with smart cards:
1) Know if the card is just a memory chip or a proper microprocessor card.
2)Smartcards (SC's) have two protocols T0 and T1. The comms from the chip is different for both.
3)Checkout http://www.cardwerk.com/smartcards
4) the bottom two contacts (4 and smiley-cool are not used = RFU
5) Some SC's work on lower voltages than 5v, so just be carefull not to pop the device.
7  Using Arduino / Storage / Windows xp Command line Compiling and uploading with version 0021 on: February 24, 2011, 08:23:56 am
Can anyone tell me how to do Windows xp Command line Compiling and uploading with version 0021? smiley-kiss
8  Using Arduino / Storage / Change eeprom value without loosing main flash program on: February 24, 2011, 08:22:32 am
Hi there,
I want to be able to change the Arduinio / Atmega328 's epprom values whithout changing the scetch / firmware I have uploaded initially. Any ideas?
 smiley-confuse.
Forexample, I have uploaded initial values in eeprom positions 10,20 and 40. But at a later stage i want to change these values without having to reload the whole sketch again.
Regards,
9  Forum 2005-2010 (read only) / Syntax & Programs / Re: Compiling with version 0021 on: December 07, 2010, 06:59:59 am
Hey Pauls,

Thanks, i removed the include for the WString and it compiled.

Thanks smiley
10  Forum 2005-2010 (read only) / Syntax & Programs / Re: Compiling with version 0021 on: December 07, 2010, 06:18:31 am
#include <Streaming.h>
#include <WString.h>
#include <EEPROM.h>

int addr = 0;
int StringLen=1;
char myStrings[1]="";
char ATR_RESULT[1]="";
long Command=0;
int i=0;
long Flashlen;//=100;5
long GOODATR=20;
long BADATR=100;
int LEDPin = 13;
boolean FLED=false;
char* pntr=0;
volatile int state = LOW;
int iPIN2=2;
 int MBM_ATR_SIG=0;
int R=-1;
boolean ATR_TEST_BUSY=false;

void setup(){
 
  pinMode(iPIN2,INPUT);
  Serial.begin(115200);
  pinMode(LEDPin,OUTPUT);
}

void loop(){
   pntr=0;
  Command=0;
  i=0;
  
  MBM_ATR_SIG = digitalRead(iPIN2);
  if (MBM_ATR_SIG==HIGH && ATR_TEST_BUSY==false){
      //Do ATR REQUEST
      RQST_ATR_TEST();
      //Get Result
      GetATR_RESULT();
    }
  FlashLED();
  
}

void FlashLED(){
   digitalWrite(LEDPin,HIGH);
   delay(500);
   digitalWrite(LEDPin,LOW);
   delay(500);
   return;
}

void RQST_ATR_TEST(){
 // noInterrupts();
 ATR_TEST_BUSY=true;
  Serial.flush();
  Serial << "00010101\n";
  Serial.flush();  
}

void GetATR_RESULT(){
  Serial.flush();
  int readchr=0;
  memset(ATR_RESULT,0,sizeof(ATR_RESULT));
  do{    
    if(Serial.available() > 0){
    ATR_RESULT[readchr]= Serial.read();
    readchr++;
  }
  }while(readchr<StringLen);
  
  R= atoi(ATR_RESULT);
  Serial << "\nR VAL = " << R;
  
  switch (R){
    case 0:
     // digitalWrite(LEDPin,HIGH); //GOOD ATR
    Serial << "\nGOOD ATR RECEIVED\n";
    ATR_TEST_BUSY=false;
    break;
    case 1:
     // digitalWrite(LEDPin,LOW); //BAD ATR
     ATR_TEST_BUSY=false;
    Serial << "\nBAD ATR RECEIVED\n";
    break;
    case -1:
    Serial << "\nNO ATR RESPONSE RECEIVED\n";
    ATR_TEST_BUSY=false;
    break;
  }
loop;
}
11  Forum 2005-2010 (read only) / Syntax & Programs / Compiling with version 0021 on: December 07, 2010, 05:30:56 am
Hi All,

I have downloaded the new Arduino 0021 version and tried to compile a sketch that is already compiling and working under the Arduino 0018 version.

in this sketch i am using the libraries :
#include <Streaming.h>
#include <WString.h>
#include <EEPROM.h>

The error below is:

d:\My Documents\My Projects\Embedded_Development\Arduino\arduino-0021\libraries\String\WString.cpp:34: error: prototype for 'String::String(int)' does not match any in class 'String'

And many errors follows. I there a new updated version of WString for 0021?

What is the issue here?

Regards,

Thanks :smiley
12  Forum 2005-2010 (read only) / Development / Re: Dowload AVR libraries on: December 06, 2010, 02:35:46 am
Thanks, i will have a look
13  Forum 2005-2010 (read only) / Development / Dowload AVR libraries on: December 02, 2010, 03:44:12 am
Hi there,

I did something stupid. I accidentally deleted my who [glow]AVR libraries directory[/glow]. I can not find it where i downloaded it last. Were can i download it as i want to start using the interrupts on my arduino

Thanks all
Pages: [1]