SparkFun Forums 

Where electronics enthusiasts find answers.

Search found 18 matches

 Go to advanced search

ir tracking to trigger start playing different audio files.

 by MICyborg ¦  Wed May 20, 2015 8:38 am ¦  Forum: Projects ¦  Topic: ir tracking to trigger start playing different audio files. ¦  Replies: 1 ¦  Views: 393

Hi, i will make a new instrument that starts playing by just moving by or evan more accurat with ir reflecting tapes on the moving fingers. It should track at least 4 different blob signals from a camera and use them to trigger the start of playing different audio files, depending on the coordinat p...

Lily pad mp3 project works only after upload.

 by MICyborg ¦  Wed Nov 26, 2014 3:40 am ¦  Forum: Arduino ¦  Topic: Lily pad mp3 project works only after upload. ¦  Replies: 0 ¦  Views: 216

I got this art project where an old phone is made up to ring randomly and if you pick it up it plays a audiofile and another one if you pick it up during not ringing time. That was a little tricky for me cuz i dont had a clue at all befor this project and i was a beginner. Now that it works i got a ...

Re: lilypad mp3, how to run a while loop for 30 sec and mp3?

 by MICyborg ¦  Tue Nov 18, 2014 6:23 am ¦  Forum: SparkFun Product Questions ¦  Topic: lilypad mp3, how to run a while loop for 30 sec and mp3? ¦  Replies: 4 ¦  Views: 363

ok. it was still wrong. this is it. :D #include <SPI.h> // To talk to the SD card and MP3 chip #include <SdFat.h> // SD card file system #include <SdFatUtil.h> #include <SFEMP3Shield.h> // MP3 decoder chip //name the pins, elapsed time and output. pin1 = A0, pin2 = A4, pin3 = A5, pin4=1, pin5 = 0 co...

Re: lilypad mp3, how to run a while loop for 30 sec and mp3?

 by MICyborg ¦  Fri Nov 14, 2014 6:29 am ¦  Forum: SparkFun Product Questions ¦  Topic: lilypad mp3, how to run a while loop for 30 sec and mp3? ¦  Replies: 4 ¦  Views: 363

It works... thank you so much Mee n Mac. i had to make the ringing period with 2500ms delays after 15 pulses in it so it sounds like the original phone. did this by using my old code (with the while loop) at this section. So, it works and the A4 triggers the TRIGGER2, dont know why but it is like th...

lilypad mp3, how to run a while loop for 30 sec and mp3?

 by MICyborg ¦  Thu Nov 13, 2014 9:27 am ¦  Forum: SparkFun Product Questions ¦  Topic: lilypad mp3, how to run a while loop for 30 sec and mp3? ¦  Replies: 4 ¦  Views: 363

i try different ways to do this but i cant make it working. //name the pins, elapsed time and output. pin1 = A0, pin2 = A4, pin3 = A5, pin4=1, pin5 = 0 const int ringerPin = A0; //const int offhook = A4; const int onhook = A4; unsigned long beginRing; //double beginRing = -40000; void setup(){ pinMo...

Re: Lilypad mp3,how to connect a relay to switch a elektroma

 by MICyborg ¦  Thu Nov 13, 2014 6:43 am ¦  Forum: SparkFun Product Questions ¦  Topic: Lilypad mp3,how to connect a relay to switch a elektromagnet ¦  Replies: 17 ¦  Views: 1798

cant get my timing funcion runin. const int ringerPin = A0; //const int offhook = A4; const int onhook = A4; long timerTime = 0; long startRinging = 0; void setup(){ pinMode(ringerPin, OUTPUT); //pinMode(offhook, INPUT); pinMode(onhook, INPUT); randomSeed(analogRead(0)); // this starts Arduino's ran...

Re: Lilypad mp3,how to connect a relay to switch a elektroma

 by MICyborg ¦  Wed Nov 12, 2014 6:04 am ¦  Forum: SparkFun Product Questions ¦  Topic: Lilypad mp3,how to connect a relay to switch a elektromagnet ¦  Replies: 17 ¦  Views: 1798

OK, now i learned a little about for and while and random and elapsed time but the use of the audio engine is still a secret. Maybe you got an idea where to find a good anser or any suggestions. There are two code descriptions with "???" at the end. If i solve this two questions, i got it :dance: co...

Re: Lilypad mp3,how to connect a relay to switch a elektroma

 by MICyborg ¦  Sat Nov 08, 2014 4:24 pm ¦  Forum: SparkFun Product Questions ¦  Topic: Lilypad mp3,how to connect a relay to switch a elektromagnet ¦  Replies: 17 ¦  Views: 1798

the best way to describe it is in form of code. const int ringerPin = A0; const int offhook = A4; const int onhook = A5; void setup(){ pinMode(ringerPin, OUTPUT); pinMode(offhook, INPUT); pinMode(onhook, INPUT); randomSeed(analogRead(0)); } int randCall = random(60000, 3600000); // generate a random...

Re: Lilypad mp3,how to connect a relay to switch a elektroma

 by MICyborg ¦  Sat Nov 08, 2014 6:34 am ¦  Forum: SparkFun Product Questions ¦  Topic: Lilypad mp3,how to connect a relay to switch a elektromagnet ¦  Replies: 17 ¦  Views: 1798

Ok, first anser about the trigger control..last posting. it was very easy. i looked at the trigger sketch example and found the right name for the different pins. here they are: const int TRIG1 = A0; const int TRIG2 = A4; const int TRIG3 = A5; const int TRIG4 = 1; const int TRIG5 = 0; :idea: so i us...

Re: Lilypad mp3,how to connect a relay to switch a elektroma

 by MICyborg ¦  Fri Nov 07, 2014 1:41 pm ¦  Forum: SparkFun Product Questions ¦  Topic: Lilypad mp3,how to connect a relay to switch a elektromagnet ¦  Replies: 17 ¦  Views: 1798

OK... its still strange, but its workin now :-) i use pin 1 but the output is at pin 4 working now :-D const int ringerPin = 1; void setup(){ pinMode(ringerPin, OUTPUT); } void loop() { for(int x = 0; x < 500; x++){ digitalWrite(ringerPin, HIGH); // turn the solenoid on (HIGH is the voltage level) d...

Re: Lilypad mp3,how to connect a relay to switch a elektroma

 by MICyborg ¦  Fri Nov 07, 2014 11:50 am ¦  Forum: SparkFun Product Questions ¦  Topic: Lilypad mp3,how to connect a relay to switch a elektromagnet ¦  Replies: 17 ¦  Views: 1798

i tryed a lot of different setings. pin4 always does the same. it turns on for 1 sec and then off again. The other pins are just turning on without turning off again. but i also testet the mp3 player sketch that is working with all pins like it should :-| maybe its possible if it works inside the tr...

Re: Lilypad mp3,how to connect a relay to switch a elektroma

 by MICyborg ¦  Fri Nov 07, 2014 7:26 am ¦  Forum: SparkFun Product Questions ¦  Topic: Lilypad mp3,how to connect a relay to switch a elektromagnet ¦  Replies: 17 ¦  Views: 1798

i am geting in to the coding stuff but i got a problem that is not logical to me. if i use this code the ringer just does one ringprocess with a delay of 1 second aproximatly. this means i got an output thats on for 1 sec. if i use another pin it doesnt turn off again. it just stays on. what the hac...

lilypad mp3, randomly- trigger a transistor and -play audio?

 by MICyborg ¦  Wed Nov 05, 2014 5:53 am ¦  Forum: MSP Microcontrollers ¦  Topic: lilypad mp3, randomly- trigger a transistor and -play audio? ¦  Replies: 0 ¦  Views: 1569

finaly i got all components set up like in the pic. https://forum.sparkfun.com/download/file.php?id=3338 so the programming of this device is new to me and i cant find a good example or tutorial for my needs. Its about to let the ringer ring so i need the code for transform the digital pin (lets say...

Re: Lilypad mp3,how to connect a relay to switch a elektroma

 by MICyborg ¦  Wed Nov 05, 2014 5:43 am ¦  Forum: SparkFun Product Questions ¦  Topic: Lilypad mp3,how to connect a relay to switch a elektromagnet ¦  Replies: 17 ¦  Views: 1798

finaly i got all components set up like without a relay like the second idea of you. so the programming of this device is also new to me and i cant find a good example or tutorial for my needs. Its about to let the ringer ring so i need the code for transform the digital pin (lets say pin3) of the a...

Re: Lilypad mp3,how to connect a relay to switch a elektroma

 by MICyborg ¦  Mon Oct 27, 2014 8:59 am ¦  Forum: SparkFun Product Questions ¦  Topic: Lilypad mp3,how to connect a relay to switch a elektromagnet ¦  Replies: 17 ¦  Views: 1798

U R great

thanx in advance ...... i think i can do this now - lets hope.

i gona let you know :-D