Pages: [1]   Go Down
Author Topic: Problems switching from solder less breadboard to soldered  (Read 335 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I connected the wires for a voice recording module from sparkfun (https://www.sparkfun.com/products/10653) on a solder less bread board and had it running just fine with this function.

Code:
long previousMillis = 0;        // will store last time LED was updated

// the follow variables is a long because the time, measured in miliseconds,
// will quickly become a bigger number than can be stored in an int.
long interval = 5000;           // interval at which to blink (milliseconds)
int SOUND = 1;
const int PULSE = 48;
int rec = 37;

void VOICE(){
   pinMode(48, OUTPUT);
   unsigned long currentMillis = millis();
   
 if(currentMillis - previousMillis > interval) {
    // save the last time you played the recording
    previousMillis = currentMillis;   


    if (SOUND == 1)
   SOUND = 0;
   else
  SOUND = 1;
   
  digitalWrite(PULSE, SOUND);
 }
}

I then transferred what was on the solder less breadboard onto one that I could solder and after that the function stopped working. Does anyone know why? and if so how I can fix it?
Logged

Offline Offline
Faraday Member
**
Karma: 66
Posts: 2571
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Check your wiring and/or maybe you cooked something.
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The module works without an arduino and I've tested it with only the wires and it still records and plays back. Whats odd is that I need to physically disconnect the wire thats connected from "REC" to the +5V pin and plug it back into the +5V in order to have it start playing back the message again.

Logged

Pages: [1]   Go Up
Jump to: