Show Posts
|
|
Pages: [1]
|
|
1
|
Topics / Interactive Art / Re: need urgent help in programming arduino to drive Chladni Plate (deadline 22th 03
|
on: March 23, 2011, 03:54:08 am
|
 found on a russian site #define R3_PIN A0 #define SPEAKER_PIN 11
#define T2_WGM 0b010 #define T2_COMA 0b01 #define T2_CS 0b111
void setup() { TCCR2A = (T2_COMA << 6) | (T2_WGM & 0b011); TCCR2B = ((T2_WGM & 0b100) << 1) | T2_CS; OCR2A = 255; pinMode(R3_PIN, INPUT); pinMode(SPEAKER_PIN, OUTPUT); } void loop() { OCR2A = map(analogRead(R3_PIN), 0, 1023, 0, 255); }
sounds good and loud. But without change frequency after interval. It is analogue. PS still can't launch IDE on my fedora netbook ] 
|
|
|
|
|
2
|
Using Arduino / Installation & Troubleshooting / Re: Can't upload sketch on UNO in Fedora14 - avrdude bug
|
on: March 22, 2011, 05:23:40 am
|
Clean everything AGAIN. Remove all preferences, all programs. Install avr-binutils, gcc-avr and other stuff, download and unpack IDE-0022. Still don't work: check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL
now i try to make IDE from src ]  hate bugs!
|
|
|
|
|
5
|
Using Arduino / Installation & Troubleshooting / Re: Can't upload sketch on UNO in Fedora14 - avrdude bug
|
on: March 21, 2011, 04:26:55 pm
|
it is working on win-computer. On my main comp avrdude print avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check. this firmware: wget --no-check-certificate https://github.com/arduino/Arduino/raw/master/hardware/arduino/firmwares/arduino-usbserial/Arduino-usbserial-uno.hex
md5sum Arduino-usbserial-uno.hex
dfu-programmer at90usb82 erase
dfu-programmer at90usb82 flash Arduino-usbserial-uno.hex
dfu-programmer at90usb82 reset
then i reinstall everything concerned with Arduino and AVR. But all this does not help me. Avrdude prints about invalid signature. And IDE0022 from site print many symbols: ~/Arduino> ./arduino Experimental: JNI_OnLoad called. Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_group_uucp(): error testing lock file creation Error details:Отказано в доступеcheck_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL
 my arduino and IDE works fine today... Without this bugs.
|
|
|
|
|
6
|
Using Arduino / Installation & Troubleshooting / Can't upload sketch on UNO in Fedora14 - bugs with IDE 0021 and 0022
|
on: March 21, 2011, 02:31:23 pm
|
well, today I "brick" my new UNO (serial connection bug). After reflashing (instructions from this forum), reinstalling IDE and updating my Fedora14 distribution, the ttyACM0 returned, the board visible again... BUT! The problem is: Binary sketch size: 1020 bytes (of a 32256 byte maximum) /usr/bin/avrdude -C/etc/avrdude/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P/dev/ttyACM0 -b115200 -D -Uflash:w:/tmp/build5870022447805682951.tmp/Blink.cpp.hex:i
avrdude: Version 5.10, compiled on Mar 2 2011 at 22:07:09 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/etc/avrdude/avrdude.conf" User configuration file is "/home/zaq/.avrduderc" User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM0 Using Programmer : stk500v1 Overriding Baud Rate : 115200 avrdude: Send: 0 [30] [20] Blink.cpp.o: file not recognized: File truncated collect2: ld returned 1 exit status Binary sketch size: 1020 bytes (of a 32256 byte maximum) /usr/bin/avrdude -C/etc/avrdude/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P/dev/ttyACM0 -b115200 -D -Uflash:w:/tmp/build5870022447805682951.tmp/Blink.cpp.hex:i avrdude: Send: 0 [30] [20]
avrdude: Version 5.10, compiled on Mar 2 2011 at 22:07:09 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/etc/avrdude/avrdude.conf" User configuration file is "/home/zaq/.avrduderc" User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM0 Using Programmer : stk500v1 Overriding Baud Rate : 115200 avrdude: Send: 0 [30] [20] avrdude: Send: 0 [30] [20] avrdude: Recv: . [10] avrdude: stk500_getsync(): not in sync: resp=0x10 avrdude: Send: 0 [30] [20]
avrdude done. Thank you.
avrdude: Send: 0 [30] [20] avrdude: ser_recv(): programmer is not responding avrdude: stk500_recv(): programmer is not responding
avrdude done. Thank you.
IDE write something like "avrdude not understand the device. Try -C to <something>" What to do??? Thank You!
|
|
|
|
|
10
|
Topics / Interactive Art / Re: need urgent help in programming arduino to drive Chladni Plate (deadline 22th 03
|
on: March 21, 2011, 01:34:03 am
|
well... It was the mix of different programs. It is hard to understand  So, I tried to make the new code from the scratch. It is the early draft  char buffer[18]; //input buffer int red, green, blue;
int RedPin = 9; // red LED int GreenPin = 10; //green LED int BluePin = 11; // Blue LED int spkr = 13; // speaker output int button = 7; // button int numChar = Serial.available(); long previousMillis = 0; //interval long interval = 5000;
void setup() { Serial.begin(9600); //serial port Serial.flush(); pinMode(RedPin, OUTPUT); pinMode(GreenPin, OUTPUT); pinMode(BluePin, OUTPUT); pinMode(spkr, OUTPUT); pinMode(button, INPUT);
/*I can't manage with serial control of the tones. And has a difficulties with logical operations to control a button (I mean - if you press the button the frequency changes. If not - "the interval" change the frequency) The code to change the power of LEDs - not the problem. I will add it later */
} void loop() { tone (spkr, 1000, 2000); // tone 1 //here must be the code to change the colour of LEDs if (millis() - previousMillis > interval); tone (spkr, 2000, 2000); // tone 2 if (millis() - previousMillis > interval); tone (spkr, 3000, 2000); // tone 3 if (millis() - previousMillis > interval);
tone (spkr, 4000, 2000); // tone 4 if (millis() - previousMillis > interval); tone (spkr, 5000, 2000); // tone 5 if (millis() - previousMillis > interval); tone (spkr, 6000, 2000); // tone 6 if (millis() - previousMillis > interval); tone (spkr, 7000, 2000); // tone 7 if (millis() - previousMillis > interval); tone (spkr, 8000, 2000); // tone 8 if (millis() - previousMillis > interval); tone (spkr, 9000, 2000); // tone 9 if (millis() - previousMillis > interval); tone (spkr, 10000, 2000); // tone 10 if (millis() - previousMillis > interval); tone (spkr, 11000, 2000); // tone 11 if (millis() - previousMillis > interval);
tone (spkr, 12000, 2000); // tone 12 if (millis() - previousMillis > interval); }
|
|
|
|
|
11
|
Topics / Interactive Art / Re: need urgent help in programming arduino to drive Chladni Plate (deadline 22th 03
|
on: March 20, 2011, 08:44:38 am
|
|
I need a device to command a mechanical plate driver. so, it must produce 12 different sound frequencies. Every frequency must change in some minutes, AND has an option to change "manually", by pressing a key. Every frequency must have a "unique" colour-combination of the LEDs (this LEDs are lighten the plate).
Code... I tried a code from the arduino tutorials: mood lamp (works fine), serial controlled buzzer (don't want to work), buzzer (works fine).
My problem that when I combine the code from different programs, set the names of the variables - the code doesn't want to work
I will show my program in Monday, when I get to my working computer - the code is there
Now the Arduino only buzz on 6000Hz for 10 seconds, wait for a 30 seconds and buzz again
|
|
|
|
|
12
|
Topics / Interactive Art / need urgent help in programming arduino to drive Chladni Plate (deadline 22th 03
|
on: March 20, 2011, 07:14:30 am
|
Sorry for disturbing! But I need help! I made a project for my design studies. It is a kind of a electric Chlandi Plate which must work as a time indicator (another words - a clock)  picture from Instructables I made my generator, but stuck on programming an Arduino. Please, help my to made a program! My design idea is to change the patterns on a plate in two ways: 1)automatically after a certain period of time 2) manually - when press the button at the same time the LEDs, which lighten the plate must change their colours. Plus, to choose the correct frequencies of generator i need a Serial Console. My problem is - that I have bought the Arduino 2 weeks ago and still learn how to program it. And I need to finish this object to 22th of March - in two days! Thank You for Your attention!
|
|
|
|
|