Show Posts
|
|
Pages: [1] 2 3
|
|
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!
|
|
|
|
|
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: 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.
|
|
|
|
|
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: 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 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 #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; } }
|
|
|
|
|
12
|
Forum 2005-2010 (read only) / Interfacing / Re: interfacing led matrix in live mode
|
on: June 04, 2006, 12:49:37 pm
|
 It works nowbut with analog in, the 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!
|
|
|
|
|
14
|
Forum 2005-2010 (read only) / Interfacing / Re: interfacing led matrix in live mode
|
on: June 01, 2006, 05:45:28 am
|
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  this is what i get so far but nothing works /* 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?
|
|
|
|
|