Show Posts
Pages: 1 [2] 3 4 5
16  Forum 2005-2010 (read only) / Interfacing / Re: Connecting Arduino to iPhone/iPod serial on: October 13, 2008, 03:30:10 am
I know that if you jailbreak you can use Java or Python to interface with the slot, my friend managed to figure this out after wringing a simple python program to capture the data being transfered when he used a remote control with it. smiley-wink
But as far as the SDK i doubt it as apple didn't even allow you to change the brightness of the screen.
17  Forum 2005-2010 (read only) / Interfacing / Re: Connecting Arduino to iPhone/iPod serial on: October 12, 2008, 05:06:57 am
Hi,
Both me and my friend have iPod touch's he managed to break his data pin using 6V so i would look at reducing the power somehow. better idea is to get bluetooth Arduino and using an iPhone to control it.
He had his iPod touch repaired for $50 Au
18  Forum 2005-2010 (read only) / Interfacing / Re: Pull up resitor? on: August 15, 2009, 07:49:05 pm
Thanks very much!
19  Forum 2005-2010 (read only) / Interfacing / Pull up resitor? on: August 15, 2009, 09:05:31 am
Hi,
i have a 5v rail and a 3v rail, but i need to get a 2v output (which will have almost no current draw on it), any ideas on how to go about doing this?
Thanks Ben
20  Forum 2005-2010 (read only) / Interfacing / Re: Laser X-Y-Axis control on: October 15, 2008, 12:13:40 am
What if you were to modify this design of a laser pattern generator could we use varible speeds to some effect?
PCB by itself http://jaycar.com.au/productView.asp?ID=KG9098&CATID=&keywords=laser&SPECIAL=&form=KEYWORD&ProdCodeOnly=&Keyword1=&Keyword2=&pageNumber=&priceMin=&priceMax=&SUBCATID=
Whole unit http://jaycar.com.au/productView.asp?ID=Sl2924&CATID=&keywords=laser&SPECIAL=&form=KEYWORD&ProdCodeOnly=&Keyword1=&Keyword2=&pageNumber=&priceMin=&priceMax=&SUBCATID=
21  Forum 2005-2010 (read only) / Interfacing / Re: Laser X-Y-Axis control on: October 14, 2008, 04:03:29 am
Would a dvd dual layer be more accurate?
22  Forum 2005-2010 (read only) / Interfacing / Re: Laser X-Y-Axis control on: October 13, 2008, 05:19:09 pm
I think he actually wanted to draw pictures not just patterns.
 smiley-wink
23  Forum 2005-2010 (read only) / Interfacing / Re: Help using melody.. on: March 14, 2009, 07:54:11 pm
Thank you very much works a lot better now, it doesnt get stuck on that note..  smiley smiley
24  Forum 2005-2010 (read only) / Interfacing / Re: Help using melody.. on: March 14, 2009, 05:18:27 am
Okay its a lot better but it still freezes at a point towards the end BTW this is the song im trying to do http://www.steamgames.com/v/img/whatsnew/StillAlive.pdf
and the code is:
Code:
byte speakerPin = 9;

byte length = 80; // the number of notes
char notes[] = "GFEEF   GFEEG DEa  aEFGFCDEaaaG   GFEEF  aGFEE GE Fa   EFGECDE aDEGFED  abCGFEED          "; // a space represents a rest
byte beats[] = { 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; //81*2 = 162 bytes with int 81 bytes with bytes

char names[] = { 'c', 'd', 'e', 'f', 'g', 'a', 'b', 'C', 'D', 'E', 'F', 'G', 'A', 'B' };
unsigned int tones[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956, 587, 659, 698, 784, 880, 988 };

//Above is the beats the note plays for
byte tempo = 900;

void playTone(int tone, int duration) {
  for (long i = 0; i < duration * 1000L; i += tone * 2) {
    digitalWrite(speakerPin, HIGH);
    delayMicroseconds(tone);
    digitalWrite(speakerPin, LOW);
    delayMicroseconds(tone);
  }
}

void playNote(char note, int duration) {

  // play the tone corresponding to the note name
  for (int i = 0; i < 14; i++) {
    if (names[i] == note) {
      playTone(tones[i], duration);
    }
  }
}

void setup() {
  pinMode(speakerPin, OUTPUT);
}

void loop() {
  for (int i = 0; i < length; i++) {
    if (notes[i] == ' ') {
      delay(beats[i] * tempo); // rest
    } else {
      playNote(notes[i], beats[i] * tempo);
    }
    // pause between notes
    delay(tempo / 2);
  }
}
  

25  Forum 2005-2010 (read only) / Interfacing / Help using melody.. on: March 14, 2009, 12:12:57 am
Hi all,
Me and my friend are fiddling around with the melody example, but we cant get this tune to play properly... heres the code:
Code:

int speakerPin = 9;

int length = 80; // the number of notes
char notes[] = "GFEF GFEG DEa aEFGFCDEaG  GFEF aGFEE GE Fa EFGECDE aDEGFED abCGFEED "; // a space represents a rest
int beats[] = { 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, };
//Above is the beats the note palys for
int tempo = 50;

void playTone(int tone, int duration) {
  for (long i = 0; i < duration * 1000L; i += tone * 2) {
    digitalWrite(speakerPin, HIGH);
    delayMicroseconds(tone);
    digitalWrite(speakerPin, LOW);
    delayMicroseconds(tone);
  }
}

void playNote(char note, int duration) {
  char names[] = { 'c', 'd', 'e', 'f', 'g', 'a', 'b', 'C', 'D', 'E', 'F', 'G', 'A', 'B' };
  int tones[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956, 587, 659, 698, 784, 880, 988 };
  
  // play the tone corresponding to the note name
  for (int i = 0; i < 8; i++) {
    if (names[i] == note) {
      playTone(tones[i], duration);
    }
  }
}

void setup() {
  pinMode(speakerPin, OUTPUT);
}

void loop() {
  for (int i = 0; i < length; i++) {
    if (notes[i] == ' ') {
      delay(beats[i] * tempo); // rest
    } else {
      playNote(notes[i], beats[i] * tempo);
    }
    
    // pause between notes
    delay(tempo / 2);
  }
}

Any ideas?
26  Forum 2005-2010 (read only) / Interfacing / Re: Really slow fade in on: November 23, 2008, 12:55:06 am
Ive tried using the fade in example and adding a delay between it making the number and writing it to the led...


i want to run about 4 led's. and i meant to use an out put, i'm going to hook it up to my ipod dock so it stops playing the music when the lights are fully lit.
27  Forum 2005-2010 (read only) / Interfacing / Really slow fade in on: November 20, 2008, 01:34:43 am
Hi,
I'm wanting to make a light to fade in over 10 minutes then stay on for 15 minutes then turn an input to high for 1 second.
Any ideas on how to code this?
Thanks in advance.
28  Forum 2005-2010 (read only) / Interfacing / Re: DC Fan Control | Battery Shield on: November 20, 2008, 02:45:45 am
Sorry im still thinking of what i did before when i was using the small motors out of model helicopters to do things..
29  Forum 2005-2010 (read only) / Interfacing / Re: DC Fan Control | Battery Shield on: November 20, 2008, 01:26:10 am
If it is a really low voltage motor you can hook it up to 2 digital pins and set one HIGH and one LOW and reverse which one HIGH/LOW to change direction.
30  Forum 2005-2010 (read only) / Interfacing / Re: Lantronix MatchPort b/g on: November 02, 2008, 01:10:37 am
Try to follow the tracks if they go through a hole put a pin through the hole gently so you dont get the wrong one!
Pages: 1 [2] 3 4 5