Show Posts
Pages: 1 2 3 [4] 5 6 ... 13
46  Using Arduino / Storage / Re: Arduino EEPROM Programmer: Burning a ROM image on: November 06, 2012, 06:16:05 pm
Excellent topic! I recommend this brilliant blog posthttp://www.nycresistor.com/2012/07/07/stick-a-straw-in-its-brain-and-suck-how-to-read-a-rom/
47  Using Arduino / Audio / Re: Sound recorder/player ICs on: October 14, 2012, 07:04:23 pm
Thank you Eibert!
48  Using Arduino / General Electronics / EEPROM writer with Arduino on: September 25, 2012, 04:33:39 am
I want to be able to burn ROM file on 28256 type of parallel EEPROMs. It seems to me that it's pretty simple: the chip enable and the output enable pins have to be held high while the write enable pin has to be set low momentarily to finish a writing cycle. I assume the .rom file I want to program on the memory consists of memory addresses followed by data/instruction. Therefor, for each cycle I need two bytes: address+data. I wonder how long the delay should be between each writing cycle? How can I view the content of a .rom file? I want to use Processing or Python to be able to manage the .rom file and send it over serial. Also, many bytes the Arduino can transfer at a time? Can I read the RDY/BUSY pin of the EEPROM with the Arduino so that I know when each writing cycle finishes? Any ideas would be appreciated!
49  Using Arduino / Audio / Re: Sound recorder/player ICs on: September 16, 2012, 10:56:47 am
Thank you! I think the Nuvoton ones require an external microcontroller but will check it anyway. Found the APR9600 on Ebay, it's damn expensive unfortunately and it seems it's discontinued. Thank you for your help!
50  Using Arduino / Audio / Re: Sound recorder/player ICs on: September 13, 2012, 06:25:03 am
I need something without Arduino. In fact, I'm looking for a chip that does not require ISP or any kind of external controller. The APR series ICs are just like that but you can only buy them in Pakistan...
51  Using Arduino / Audio / Sound recorder/player ICs on: September 12, 2012, 11:09:27 am
Hi,

I wonder if anyone could recommend me a voice recorder IC with random access (8 sample). I found loads of ICs like this but I wonder if there's one with variable speed/pitch. The APR9600 looks promising and can be locked externally but I wonder if it can alter the speed or pitch of playback? Any ideas would be highly appreciated!
52  Using Arduino / Programming Questions / Re: 'for' looping problem on: March 12, 2012, 09:56:46 am
Works with the Arduino IDE serial monitor, now I just have to figure out how to format the message in Max/MSP. Thank you for all your help!
53  Using Arduino / Programming Questions / Re: 'for' looping problem on: March 12, 2012, 08:29:19 am
Worst, I could easily hard-code the values and skip the 'for' loops entirely. In fact, I was planning to use the Arduino to debug an 8-bit microcomputer. But now I just want to get the thing working, after all these efforts and help...
54  Using Arduino / Programming Questions / Re: 'for' looping problem on: March 12, 2012, 08:25:52 am
...yet it stil doesn't work. I can see the echo on the serial monitor but cannot see pin 7 set high when I send '7'. Grrrrrrrrrrrrrrrrr
55  Using Arduino / Programming Questions / Re: 'for' looping problem on: March 12, 2012, 08:21:57 am
Hah, finally I can echo on the serial monitor when I send ints. Thanks guys!
56  Using Arduino / Programming Questions / Re: 'for' looping problem on: March 12, 2012, 08:19:33 am
Shhhh*t... stupid error, thanks for noticing it guys!
57  Using Arduino / Programming Questions / Re: 'for' looping problem on: March 12, 2012, 08:06:47 am
Hm? The [] has nothing to do with the code error. Why the error?
58  Using Arduino / Programming Questions / Re: 'for' looping problem on: March 12, 2012, 07:43:59 am
Can you put your code in [ code ] tags please?

Doesn't seem to make much difference.
59  Using Arduino / Programming Questions / Re: 'for' looping problem on: March 12, 2012, 07:42:48 am
Why, oh why do I get this error even if incomingPin is declared before void setup????: serial_tester_thingy_2:17: error: 'incomingPin' was not declared in this scope

(moderator - need to use the # sign above - results in [ code ] paste_your_code [ / code ] (without the spaces) )
Code:
int pinCount = 12;
int digiPins[] = {
  2,3,4,5,6,7,8,9,10,11,12,13};
int thisPin;
//int  incomimgPin;  << oops - incoming mis-spelled

void setup() {
  Serial.begin(9600);

  for (int thisPin = 0; thisPin < pinCount; thisPin++){
    pinMode(digiPins[thisPin], OUTPUT);      
  }
}
void loop() {
  if (Serial.available() > 0){
    // read the byte, convert from ASCII character '5' for example to 0x05, check ASCIItable.com for the characters
    int incomimgPin = Serial.read();   << mis-spelled incoming here too
    Serial.println(incomingPin);

// test for range 2-9
    thisPin = incomingPin - 48;
    Serial.println(thisPin);

    if (thisPin >= 0 && thisPin <= 9)
    {
      digitalWrite (digiPins[thisPin], HIGH); // set the pin  high
      delay (1000); // hold it high for one second
      digitalWrite (digiPins[thisPin], LOW);  // and back low.
    }
// test for range A-F
thisPin = incomingPin - 65 + 10;  
    Serial.println(thisPin);
    if (thisPin >= 10 && thisPin <= 15)
    {
      digitalWrite (digiPins[thisPin], HIGH); // set the pin  high
      delay (1000); // hold it high for one second
      digitalWrite (digiPins[thisPin], LOW);  // and back low.
    }
  
  delay(1);
}
60  Using Arduino / Programming Questions / Re: 'for' looping problem on: March 11, 2012, 10:32:16 pm
Still doesn't work, tired it with Max/MSP and the Arduino IDE serial monitor. I can see the RX led blinking but the pins won't go high.


int pinCount = 12;
int digiPins[] = {
  2,3,4,5,6,7,8,9,10,11,12,13};
int thisPin;

void setup() {
  Serial.begin(9600);

  for (int thisPin = 0; thisPin < pinCount; thisPin++){
    pinMode(digiPins[thisPin], OUTPUT);     
  }
}
void loop() {
  if (Serial.available() > 0){
    // read the byte, convert from ASCII character '5' for example to 0x05, check ASCIItable.com for the characters
    thisPin = Serial.read() - 48;  // subtract 48 if pins are 0-9.
    Serial.println(thisPin);
    digitalWrite (digiPins[thisPin], HIGH); // set the pin  high
    delay (1000); // hold it high for 1/10th of a second?
    digitalWrite (digiPins[thisPin], LOW);  // and back low.
  }
  delay(1);
}
Pages: 1 2 3 [4] 5 6 ... 13