Show Posts
Pages: [1]
1  Using Arduino / Audio / Re: RF transmitters/receivers to turn audio file on Wave Module V1.0 ON/OFF on: March 08, 2013, 06:05:56 am
Sorry about the cross-post.

As the file I want to loop is just a voice command, I decided to repeat it multiple times with the pauses in between for a surplus duration of what I require at this site:
http://www2.research.att.com/~ttsweb/tts/demo.php

This eradicates the need to programme it to loop and so now I simply need to turn the file ON or OFF via 2 RF transmitters and 1 receiver.

The video you posted was really helpful and I hope to adapt the receiver code. 1 transmitter will be dedicated to turning it ON, the other OFF, each transmitter will be coupled with an Encoder and a tilt switch.

Here is the code I'm using to play the Wave Module:

int RST = 3;
int CLK = A5;
int DAT = A4;
   
   
void setup() {   
   
   
    pinMode(RST, OUTPUT);
    pinMode(CLK, OUTPUT);
    pinMode(DAT, OUTPUT);
   
   
    digitalWrite(RST, HIGH);
    digitalWrite(CLK, HIGH);
    digitalWrite(DAT, HIGH);
   
    digitalWrite(RST, LOW);
    delay(5);
    digitalWrite(RST, HIGH);
    delay(300);
}

void loop() {

  send(0x0000);//play file 0000
  delay(10000);//delay 10 seconds
 
  send(0xfff0);//set voice volumn to 0 (turn off)
  delay(3000);
 
  send(0xfff4);//set voice volumn to 4
  delay(3000);
 
  send(0xfff7);//set voice volumn to 7
  delay(3000);
 
  send(0xfffe);// pause
  delay(5000);
  send(0xfffe);//play
 
 
 
  while(1);
}
void send(int data)
{
  digitalWrite(CLK, LOW);
  delay(2);
  for (int i=15; i>=0; i--)
  {
    delayMicroseconds(50);
    if((data>>i)&0x0001 >0)
      {
        digitalWrite(DAT, HIGH);
        //Serial.print(1);
      }
    else
       {
         digitalWrite(DAT, LOW);
        // Serial.print(0);
       }
    delayMicroseconds(50);
    digitalWrite(CLK, HIGH);
    delayMicroseconds(50);
   
    if(i>0)
    digitalWrite(DAT, LOW);
    else
    digitalWrite(DAT, HIGH);
    delayMicroseconds(50);
   
    if(i>0)
    digitalWrite(CLK, LOW);
    else
    digitalWrite(CLK, HIGH);
  }
 
  delay(20);
}



However I don't know how I would combine the two codes for what I require :S
2  Using Arduino / Audio / Re: Can't get Wave Module V1.0 to work, please help!! on: March 07, 2013, 08:33:13 pm
UPDATE: I used the Demo code once more and realised in the manual it was because the file needed to be called 0000.wav, if it is a wave file.

I can hear the voice file now however it has really loud static which almost make it inaudible and I get this error message when uploading it to arduino:

avrdude: stk500_recv(): programmer is not responding

How do I solve this? & what command do I need to loop the file?

Thank you
3  Using Arduino / Audio / Can't get Wave Module V1.0 to work, please help!! on: March 07, 2013, 08:10:29 pm
I recently purchased this wave module:
http://www.ebay.com/itm/Wave-Sound-Shield-Module-V1-0-Arduino-Compatible-/270941553333?ssPageName=ADME:L:OC:GB:3160

I would like to know how to play one file on a loop?

but I have no idea how to write the code, could anyone help me?
4  Using Arduino / Audio / Re: RF transmitters/receivers to turn looped audio file on Wave Shield ON/OFF on: March 07, 2013, 08:06:11 pm
guys I have bought a wave module V1.0 to play the sound:

http://www.ebay.com/itm/Wave-Sound-Shield-Module-V1-0-Arduino-Compatible-/270941553333?ssPageName=ADME:L:OC:GB:3160

But I can't get it to work, I have no idea how to code it.

What do I need to write if I only want it to play 1 file on a loop????
5  Using Arduino / Audio / Re: RF transmitters/receivers to turn looped audio file on Wave Shield ON/OFF on: March 03, 2013, 05:59:45 pm
thank you so much!
6  Using Arduino / Audio / Re: RF transmitters/receivers to turn looped audio file on Wave Shield ON/OFF on: February 19, 2013, 07:55:06 am
Yes they're the ones

Thank you, I'll check it out
7  Using Arduino / Audio / RF transmitters/receivers to turn audio file on Wave Module V1.0 ON/OFF on: February 18, 2013, 06:35:44 pm
Hi guys, I am a complete beginner to arduino..

I've bought two low cost RF transmitters and a receiver, and I was hoping to use a set up where one transmitter would turn on a looped voice message stored on a wave shield to play every 5 seconds..

and then the signal from the other transmitter would turn this off.

How would I go about doing this? smiley-eek-blue

Thank you
8  Using Arduino / Networking, Protocols, and Devices / Re: Message sent via Wifi signal that smartphones can detect on: January 12, 2013, 07:22:59 pm
thank you

hmmm

what if the message was sent via ad-hoc network,
could I make an App that would automatically connect to a specific ad-hoc network when in range?
9  Using Arduino / Networking, Protocols, and Devices / Re: Message sent via Wifi signal that smartphones can detect on: January 12, 2013, 05:46:56 pm
Instead of Wifi then, is there any other ways I could send a message wirelessly?
10  Using Arduino / Networking, Protocols, and Devices / Wireless Device that broadcasts message via Wifi to App on smartphone on: January 12, 2013, 05:42:59 pm
Hey guys, I have no knowledge in programming etc and I need your help.

I'm doing a project on level crossing safety for pedestrians.

I want to make a device that is turned on and off by 2 wireless sensors (when a train passes)

When the device is ON, it will broadcast a message wirelessly (i'm guessing it needs to be via Wifi) to the app on the users smartphone.

Now I don't want the device to do anything fancy - just a simple message to activate the App when in range.

What components do I need to build this device? thank you, Jon
11  Using Arduino / Networking, Protocols, and Devices / Message sent via Wifi signal that smartphones can detect on: January 12, 2013, 05:11:57 pm
I want to make an App that is automatically triggered when the user walks in range of wireless signal..

I'm doing a project about level crossing safety, and I only want this signal to broadcast when a train is approaching - also to save battery life.

So i'll use 2 wireless sensors on the track, first is triggered by the train and then turns device on that will broadcast the signal to users phones.

The 2nd wireless sensor turns the broadcasting off.

What set up do I need to send this Wifi signal?
Pages: [1]