Show Posts
Pages: [1] 2 3
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino.exe doesn't work on my fresh Windows X on: March 01, 2007, 12:50:21 pm
Quote
So there's no output in the editor console (the message area also used by the serial monitor) and no "Done compiling." message in the status bar?  Does the play button stay highlighted (yellow)?
Nothin is displayed only "Could not determine program size". The play button is yellow!



2  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino.exe doesn't work on my fresh Windows X on: February 28, 2007, 04:41:32 am
Quote
when you replace the entire avr directory, what happens when you press the Verify button?  The upload button?

Nothing, the errors aren't displayed anymore, but skech still doesn't compile.
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino.exe doesn't work on my fresh Windows X on: February 27, 2007, 12:26:24 pm
I had same problem on my laptop, but installing latest java and deleting "java" directory solved that. Now i have slightly difrent problem, when I try to compile my sketch, error appears

avr-gcc.exe - Entry Point Not Found
The procedure entry point _impure_ptr could not be located in the dynamic link library cygwin1.dll.

and
                  
avr-size.exe - Entry Point Not Found
The procedure entry point _fcnt|64 could not be located in the dynamic link library cygwin1.dll.

When I tried to replace cygwinl.dll from winavr which works, the error disapears but sketch doesn't compile either! Also tried replacing avr-gcc.exe and entire avr directory. But still nothing!
4  Forum 2005-2010 (read only) / Troubleshooting / Re: Little help needed on: May 23, 2006, 11:21:56 am
Done!
5  Forum 2005-2010 (read only) / Troubleshooting / Little help needed on: May 14, 2006, 06:51:52 am
Heloo everybody!

Can someone compile atmegaboot.c for me! Settings I would like to change are speed, that should be 8000000hz and baudrate 9600! please replay to pm thanks!
6  Forum 2005-2010 (read only) / Bugs & Suggestions / Arduino 0008 error on: June 13, 2007, 07:09:29 am
Hello!

When I run arduino, i get following error:
Code:
In file included from C:/Programiranje/arduino-0008/lib/targets/arduino/WProgram.h:5,
                 from Stepper.cpp:48:
/cygdrive/c/Programiranje/arduino-0008/tools/avr/bin/../lib/gcc/avr/4.0.2/../../../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete.  Use <avr/interrupt.h>."
In file included from C:/Programiranje/arduino-0008/lib/targets/arduino/WProgram.h:7,
                 from Stepper.cpp:48:
C:/Programiranje/arduino-0008/lib/targets/arduino/wiring.h:60:1: warning: "abs" redefined
In file included from C:/Programiranje/arduino-0008/lib/targets/arduino/WProgram.h:1,
                 from Stepper.cpp:48:
/cygdrive/c/Programiranje/arduino-0008/tools/avr/bin/../lib/gcc/avr/4.0.2/../../../../avr/include/stdlib.h:116:1: warning: this is the location of the previous definition
In file included from utility\twi.c:25:
/cygdrive/c/Programiranje/arduino-0008/tools/avr/bin/../lib/gcc/avr/4.0.2/../../../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete.  Use <avr/interrupt.h>."
In file included from C:/Programiranje/arduino-0008/lib/targets/arduino/WProgram.h:5,
                 from Stepper.cpp:48:
/cygdrive/c/Programiranje/arduino-0008/tools/avr/bin/../lib/gcc/avr/4.0.2/../../../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete.  Use <avr/interrupt.h>."
In file included from C:/Programiranje/arduino-0008/lib/targets/arduino/WProgram.h:7,
                 from Stepper.cpp:48:
C:/Programiranje/arduino-0008/lib/targets/arduino/wiring.h:60:1: warning: "abs" redefined
In file included from C:/Programiranje/arduino-0008/lib/targets/arduino/WProgram.h:1,
                 from Stepper.cpp:48:
/cygdrive/c/Programiranje/arduino-0008/tools/avr/bin/../lib/gcc/avr/4.0.2/../../../../avr/include/stdlib.h:116:1: warning: this is the location of the previous definition
In file included from utility\twi.c:25:
/cygdrive/c/Programiranje/arduino-0008/tools/avr/bin/../lib/gcc/avr/4.0.2/../../../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete.  Use <avr/interrupt.h>."
. I didn't try compiling sketch.
7  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: add ability to write to EEPROM on: June 23, 2006, 10:54:20 am
How to write over 255 i use intiger but somehow it cant compile if i don't use char?
8  Forum 2005-2010 (read only) / Syntax & Programs / Re: GICR |= (1<<INT0) on: February 08, 2007, 05:14:36 am
HI!

I've got error vhen i use this code:
Code:
 const prog_uint8_t BitMap[5] = {   // store in program memory to save RAM
        B1100011,
        B0010100,
        B0001000,
        B0010100,
        B1100011
    };

error says

error: 'prog_uint8_t' does not name a type In function 'void blink()':

code for function blink

Code:
           byte data = (byte) pgm_read_byte (&kombinacije1[x]);   // fetch data from program memory
            for (byte y=0; y<7; ++y) {
                if (data & (1<<y)) {
                    digitalWrite(y+6, HIGH);
                } else {
                    digitalWrite(y+6, LOW);
                }
            }
9  Forum 2005-2010 (read only) / Syntax & Programs / Re: multiple variables from Max to Serial.read() on: June 20, 2006, 07:16:25 am
this might also help
Code:
#include <avr/eeprom.h>

int adress;
int var;
int numadress;
int prekinitve;
long previousMillis = 0;        // will store last time LED was updated
long interval = 300000;  
void setup() {
    beginSerial(9600);        // use the serial port to send the values back to the computer
    Serial.println("Termometer v 1.0");
    Serial.print("Incializacija ");
    numadress=eeprom_read_byte(0);
    Serial.print("*");
    adress=numadress+1;
    Serial.print("*");
    eeprom_write_byte((unsigned char *)adress, (analogRead(0)-556)/2); // fill each address with its own value
    Serial.print("*");
    eeprom_write_byte((unsigned char *)0, adress); // fill each address with its own value
    Serial.println("*");
}

void loop()
{
  if (millis() - previousMillis > interval) {
    previousMillis = millis();   // remember the last time we blinked the LED
    numadress=eeprom_read_byte(0);
    adress=numadress+1;
    eeprom_write_byte((unsigned char *)adress, (analogRead(0)-556)/2); // fill each address with its own value
    //Serial.print("merjeno=");
    //Serial.println((analogRead(0)-556)/2);
    //Serial.print("naslov=");
    //Serial.println(adress);
    eeprom_write_byte((unsigned char *)0, adress); // fill each address with its own value
  }

  if (Serial.available() > 0) {
    if(Serial.read()==49)
      while(prekinitve < numadress+2)
      {
        var = eeprom_read_byte((unsigned char *) prekinitve);
        Serial.print("adresa[");
        Serial.print(prekinitve);
        Serial.print("]=");
        Serial.println(var);
        prekinitve++;
      }

  }
  if (prekinitve == numadress+2)
  {
    prekinitve=0;
  }
}
10  Forum 2005-2010 (read only) / Interfacing / Drawing graph in processing on: June 04, 2006, 05:46:54 am
Does anybody kwoh how to display realtime graph in processing?
11  Forum 2005-2010 (read only) / Interfacing / Re: interfacing led matrix in live mode on: June 04, 2006, 01:00:37 pm
http://www.sensacell.com/ aplication
http://monome.org/index.php?m=faq aplication
12  Forum 2005-2010 (read only) / Interfacing / Re: interfacing led matrix in live mode on: June 04, 2006, 12:49:37 pm
 smiley-grin smiley-grin smiley-grin smiley-grin
It works nowbut with analog in, the code:
Code:
/* BILED
Janez Troha

Controling bi directional leds
*/

int cajt;
void setup(void) {
//Serial.begin(57600);
}

void loop(void) {
pinMode(2, OUTPUT); //anode
pinMode(3, OUTPUT); //cathode
digitalWrite(2, HIGH); //anode of led
digitalWrite(3, LOW); //cathode of led
delay(1);
digitalWrite(2, LOW); //anode of led
digitalWrite(3, HIGH); //cathode of led
delay(10);
digitalWrite(3, LOW); //cathode of led
pinMode(3, INPUT); //cathode
cajt = analogRead(0);
if (cajt > 75)
{
pinMode(13, OUTPUT); //cathode
digitalWrite(13, HIGH); //anode of led
}
if (cajt < 74)
{
pinMode(13, OUTPUT); //cathode
digitalWrite(13, LOW); //anode of led
}
//Serial.println(cajt);
//delay(100);
}

but the led sensing is very unstable, but it works now, I am using red LED, 20mA!
13  Forum 2005-2010 (read only) / Interfacing / Re: interfacing led matrix in live mode on: June 04, 2006, 11:27:38 am
At http://projects.dimension-x.net/technology-and-projects/ledsensors/ is documentation how its done with pic!
14  Forum 2005-2010 (read only) / Interfacing / Re: interfacing led matrix in live mode on: June 01, 2006, 05:45:28 am
Quote
also a BIDIRECTIONAL LED MATRIX which can function as an input/output device has been demonstrated in make magazine and hackaday. (link soon) if anyone knows how to implement this in arduino it would be awesome! (even for 2-3 leds)

check my http://www.google.com/notebook/public/04067928292063431351/BDRwbSwoQhdb3s7Uh in reserch papers smiley
this is what i get so far but nothing works
Code:
/* BILED
Janez Troha

Controling bi directional leds
*/

unsigned long val;
void setup(void) {
//Serial.begin(57600);
}

void loop(void) {
pinMode(2, OUTPUT); //anode
pinMode(3, OUTPUT); //cathode
digitalWrite(2, HIGH); //anode of led
digitalWrite(3, LOW); //cathode of led
delayMicroseconds(60);
digitalWrite(2, LOW); //anode of led
digitalWrite(3, HIGH); //cathode of led
pinMode(3, INPUT); //cathode
val =  pulseIn(3, HIGH);
//printInteger(val);
//printNewline();
//delay(100);
}

iam also thinking of use pulsein, but uc hangs when it comes to that, any thoughts?
15  Forum 2005-2010 (read only) / Interfacing / Re: Talk to a USB Memory Stick on: June 03, 2006, 03:21:45 pm
you could use cf or mmc, i think there is a script in avrlib, look there!
Pages: [1] 2 3