Show Posts
Pages: [1] 2
1  Using Arduino / Sensors / Temperature Sensor module to arduino Help! on: October 12, 2013, 12:56:30 am
Hello everyone i need your help, i have a temperature sensor module with 7 segment  display i need to get the value of the sensor then pass to the arduino to use relay then switch the appliance when temperature is high.



2  Using Arduino / Audio / arduino waveshield - servo motor problem on: December 16, 2012, 04:31:03 am
hi everyone smiley i need help im making my project with servo motors and waveshield. im having problem with waveshield when the servo motor is attach to arduino.. the sound is not working.. smiley-sad but when i remove the servo motors to my circuit the sounds work. i have 2 supply, one for servo motors and 1 for the whole circuit..

i used gizduino x arduino
http://www.e-gizmo.com/KIT/gizDuino%20X.html

and wave shield from ebay.
http://www.ebay.com/itm/Wave-Sound-Shield-Module-V1-0-Arduino-Compatible-/270941553333?pt=LH_DefaultDomain_0&hash=item3f156002b5

my source code

// waveshield
int RST = 3;
int CLK = 9;
int DAT = 8;
// left repulsor
int rightPin = 16;
int ledPin = 6;   
int button = 0;

//Right repulsor
int leftPin = 20;
int ledPin2 = 4;   
int button2 = 0;
//servo
#include <Servo.h>
//flaps
int swpinservo = 22;
Servo left;
Servo right;
//light
int boosterled = 11;

//helm
#include <Bounce.h>
#define BUTTON 14
#define LED 13
Servo helmet;
int ledValue = LOW;
Bounce bouncer = Bounce( BUTTON, 5 );



void pew(){
  //light dimming in
  analogWrite(ledPin, 5);
  delay(300);
  analogWrite(ledPin, 10);
  delay(300);
  analogWrite(ledPin, 15);
  delay(300);
  analogWrite(ledPin, 20);
  delay(300);
  analogWrite(ledPin, 25);
  delay(200);
  analogWrite(ledPin, 30);
  delay(200);
  analogWrite(ledPin, 35);
  delay(200);
  analogWrite(ledPin, 40);
  delay(200);
  analogWrite(ledPin, 45);
  delay(400);
 
  analogWrite(ledPin, 50);
  delay(300);
 
 
analogWrite(ledPin, 255);
delay(100);
analogWrite(ledPin, 0);
delay(100);
analogWrite(ledPin, 255);
delay(100);

analogWrite(ledPin,20);
delay(200);
 
         
 
}

void pewew(){
  //light dimming out
 
   analogWrite(ledPin, 20);
  delay(300);
  analogWrite(ledPin, 18);
  delay(300);
  analogWrite(ledPin, 16);
  delay(300);
  analogWrite(ledPin, 14);
 delay(300);
  analogWrite(ledPin, 12);
delay(300);
 
 
  analogWrite(ledPin, 10);
  delay(300);
  analogWrite(ledPin, smiley-cool;
  delay(300);
  analogWrite(ledPin, 6);
  delay(300);
  analogWrite(ledPin, 4);
 delay(300);
  analogWrite(ledPin, 2);
delay(300);

analogWrite(ledPin,0);
 
}


void setup() { 
    // wave shield
    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);

    // right repulsor
      pinMode(rightPin, INPUT);
    pinMode(ledPin, OUTPUT);
    digitalWrite(button, LOW); /* Set button initially as LOW */
    //left repulsor
      pinMode(leftPin, INPUT);
    pinMode(ledPin2, OUTPUT);
    digitalWrite(button2, LOW); /* Set button initially as LOW */
   
          //servo flaps
        left.attach(7);
        right.attach(5);
   pinMode(swpinservo, INPUT);
   pinMode(boosterled, OUTPUT);
         //status position
         left.write(128);
         right.write(44);
         
         //helmet
         pinMode(BUTTON,INPUT);
        pinMode(LED,OUTPUT);
        helmet.attach(1);
        helmet.write(0);




}

void loop() {

  //right repulosr
  if(digitalRead(rightPin) == HIGH && button == 0){
  delay(100); 
 
   button = 1;
 //sound
 
  send(0x0001);
  delay(100);
 
  send(0xfff7);
  delay(600);
   
  //light
 pew();
 send(0xfffe);// pause

 

  } 
  else if(digitalRead(rightPin) == LOW && button == 1){
    button = 0;
   
    pewew();
     
 
      send(0x0003);
      delay(350);
   

    send(0xfff7);
 

   }
   
 //left repulsor
if(digitalRead(leftPin) == HIGH && button2 == 0){
  delay(200);  /
 
   button2 = 1;
 //sound
 
  send(0x0002);
  delay(100);
 
 //light
analogWrite(ledPin2, 5);
  delay(100);
  analogWrite(ledPin2, 20);
  delay(100);
  analogWrite(ledPin2, 40);
  delay(100);
  analogWrite(ledPin2, 50);
  delay(100);
  analogWrite(ledPin2, 70);
  delay(100); 
analogWrite(ledPin2, 255);
delay(100);
analogWrite(ledPin2, 0);
delay(100);
analogWrite(ledPin2, 255);
delay(100);
 analogWrite(ledPin2,60);
 
 //stop
  delay( 200);
  send(0xfff7);//set voice volumn to 7
  delay(300);
   
 
 
 send(0xfffe);// pause

  } 
  else if(digitalRead(leftPin) == LOW && button2 == 1){
    button2 = 0;
  analogWrite(ledPin2, 20);
  delay(100);
 

   
  analogWrite(ledPin2, 12);
  delay(100);


  analogWrite(ledPin2, 6);
  delay(100);
  analogWrite(ledPin2, 0);


     
   }
 
  //------- air flaps function
              if (digitalRead(swpinservo) == HIGH)
             {
                  delay(50);
                   left.write(50);
               right.write(125);
              delay(200);
             
 
         digitalWrite(boosterled,HIGH);
             
               
}

   else{
                  left.write(128);
                 right.write(44);
         
            digitalWrite(boosterled,LOW);
      }
   
    //--------------- helmet function
      if ( bouncer.update() ) {
     if ( bouncer.read() == HIGH) {
       if ( ledValue == LOW ) {
         delay(10);
          helmet.write(4);
          delay(700);
         ledValue = HIGH;
       } else {
         helmet.write(175);
         ledValue = LOW;
       }
       
       digitalWrite(LED,ledValue);
     }
   }








 
}


//function of wave shield data
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);
}
3  Using Arduino / Motors, Mechanics, and Power / servo motors battery help on: December 15, 2012, 10:03:09 pm
hello everyone smiley i have problem on my servo motors i have 3 6.5kg servo motors and my battery is 2x 6v 1800mAh is that enough to power my servo in long time..? or should i add some component to my circuit to last long my battery..?
4  Using Arduino / Programming Questions / change mode when button press help on: October 14, 2012, 09:50:25 am
hello, i just need a little help on my coding, i have 2 set of mode of led blinks with sounds, with two buttons the 1st button is for executing the program and the sencond button is for changign mode, what i want is when the arduino starts the mode 1 select when i press the button#1 the sound file 1play  and then blink the led then off. when i press the button#2 it change to mode two, when i press the button#1 the other sound file with is the soundfile #2 play then the led blink the off. smiley thanks
i think i have a problem on the debounce code.


/
This code is show how Arduino Wave Module works with Arduino.
Code is not optimized. Any improving work on it is encouraged.
*/
int RST = 3;
int CLK = 9;
int DAT = 8;
int switchPin = 4;
int ledPin = 11;   
int switchPin2 = 10;
int button = 0;
//mode select code
int val;                        // variable for reading the pin status
int val2;                       // variable for reading the delayed/debounced status
int buttonState;
int lightMode = 0;
           

// mode 1
void mode1(){

 
  if(digitalRead(switchPin) == HIGH && button == 0){ /* if D2 is HIGH */
  delay(100);  /* Soft Debounce delay for 500mS */
 
   button = 1;
 //sound
 
  send(0x0001);//play file 0000
  delay(100);
  send(0xfff7);//set voice volumn to 7
  delay(500);
   
  //light
analogWrite(ledPin, 5);
  delay(300);
  analogWrite(ledPin, 10);
  delay(300);
  analogWrite(ledPin, 15);
  delay(300);
  analogWrite(ledPin, 20);
  delay(300);
  analogWrite(ledPin, 25);
  delay(200);
  analogWrite(ledPin, 30);
  delay(200);
  analogWrite(ledPin, 35);
  delay(200);
  analogWrite(ledPin, 40);
  delay(200);
  analogWrite(ledPin, 45);
  delay(500);
 
  analogWrite(ledPin, 50);
  delay(400);
 
 
analogWrite(ledPin, 255);
delay(100);
analogWrite(ledPin, 0);
delay(100);
analogWrite(ledPin, 255);
delay(100);

 analogWrite(ledPin,20);
 // light ^
 send(0xfffe);// pause

 

  } 
  else if(digitalRead(switchPin) == LOW && button == 1){
    button = 0;
   // light
   analogWrite(ledPin, 20);
  delay(300);
  analogWrite(ledPin, 18);
  delay(300);
  analogWrite(ledPin, 16);
  delay(300);
  analogWrite(ledPin, 14);
 delay(300);
  analogWrite(ledPin, 12);
delay(300);
 
 
  analogWrite(ledPin, 10);
  delay(300);
  analogWrite(ledPin, smiley-cool;
  delay(300);
  analogWrite(ledPin, 6);
  delay(300);
  analogWrite(ledPin, 4);
 delay(300);
  analogWrite(ledPin, 2);
delay(300);

analogWrite(ledPin,0);
     
 
      send(0x0003);
      delay(350);
    send(0xfffe);// pause

    send(0xfff7);//set voice volumn to 7
 

}
}

void mode2()
{
   if(digitalRead(switchPin) == HIGH && button == 0){ /* if D2 is HIGH */
  delay(200);  /* Soft Debounce delay for 500mS */
 
   button = 1;
 //sound
 
  send(0x0002);//play file 0000
  delay(100);//delay 10 seconds
 
 //light
analogWrite(ledPin, 5);
  delay(100);
  analogWrite(ledPin, 20);
  delay(100);
  analogWrite(ledPin, 40);
  delay(100);
  analogWrite(ledPin, 50);
  delay(100);
  analogWrite(ledPin, 70);
  delay(100);

 
analogWrite(ledPin, 255);
delay(100);
analogWrite(ledPin, 0);
delay(100);
analogWrite(ledPin, 255);
delay(100);
 analogWrite(ledPin,60);
 
 //stop
  delay( 200);
  send(0xfff7);//set voice volumn to 7
  delay(300);
   
 
 
 send(0xfffe);// pause

  } 
  else if(digitalRead(switchPin) == LOW && button == 1){
    button = 0;
  analogWrite(ledPin, 20);
  delay(100);
 
  analogWrite(ledPin, 12);
  delay(100);


  analogWrite(ledPin, 6);
  delay(100);
  analogWrite(ledPin, 5);
 
 
 
}
}

void setup() {   
   
   
    pinMode(RST, OUTPUT);
    pinMode(CLK, OUTPUT);
    pinMode(DAT, OUTPUT);
    pinMode(switchPin, INPUT);
    pinMode(ledPin, OUTPUT);
    digitalWrite(button, LOW); /* Set button initially as LOW */
    Serial.begin(9600);
    digitalWrite(RST, HIGH);
    digitalWrite(CLK, HIGH);
    digitalWrite(DAT, HIGH);
    pinMode(switchPin2, INPUT);
    digitalWrite(RST, LOW);
    delay(5);
    digitalWrite(RST, HIGH);
    delay(300);
 buttonState = digitalRead(switchPin2);

}




void loop() {
val = digitalRead(switchPin2);      // read input value and store it in val
  delay(10);                         // 10 milliseconds is a good amount of time
  val2 = digitalRead(switchPin2);     // read the input again to check for bounces
  if (val == val2) {                 // make sure we got 2 consistant readings!
    if (val != buttonState) {          // the button state has changed!
      if (val == LOW) {                // check if the button is pressed
        if (lightMode == 0) {          // if its off
          lightMode = 1;              // turn lights on!
              //mode
             
              mode1();
             
             
             
             
             
             
        } else {   
          lightMode = 0;
         
         
         
          mode2();
 
         
         
         
         
         
         
        }
      }
    }
    buttonState = val;                 // save the new state in our variable
  }
 
 

 Serial.print("Read switch input: ");
 Serial.println(digitalRead(switchPin2));    // Read the pin and display the value
  delay(100);
 
 
 
}


//function pew
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);
}
5  Using Arduino / Programming Questions / if else if help with time delay on: October 13, 2012, 12:45:21 pm
hello smiley
 i have a problem on my program, what i want is when i press the button the if statement execute then after 10 seconds the else if statement execute but before the 10 seconds time when i repress the button, if statement execute then the timer count again 10sec.
thanks smiley

sample video that i want when he didn't trigger the sensor after a few sencond the lights off smiley)



my program smiley
void loop() {

 
  if(digitalRead(switchPin) == HIGH && button == 0){ /* if D2 is HIGH */
  delay(200);  /* Soft Debounce delay for 500mS */
 
   button = 1;
 //sound
 
  send(0x0001);//play file 0000
  delay(100);//delay 10 seconds
 
  send(0xfff7);//set voice volumn to 7
  delay(300);
   
  //light
 pew();
 
 send(0xfffe);// pause

  } 
  else if(digitalRead(switchPin) == LOW && button == 1){
    button = 0;
     
     
   pewew();
     
   }
   

 
 
 
 
}
6  Using Arduino / Audio / Re: Ebay arduino waveshield on: October 10, 2012, 08:48:22 am
what is the error you get with button, what do you want to do with button ?

post your code (using # button) with errors, so we can help you a little bit more.

sir this is my edited code smiley there is no error but the its not working :/
/*
This code is show how Arduino Wave Module works with Arduino.
Code is not optimized. Any improving work on it is encouraged.
*/
int RST = 3;
int CLK = 9;
int DAT = 8;
int button = 4;
   
   
void setup() {   
   
   
    pinMode(RST, OUTPUT);
    pinMode(CLK, OUTPUT);
    pinMode(DAT, OUTPUT);
    pinMode(button, INPUT);

    digitalWrite(button, LOW); /* Set button initially as LOW */

    digitalWrite(RST, HIGH);
    digitalWrite(CLK, HIGH);
    digitalWrite(DAT, HIGH);
   
    digitalWrite(RST, LOW);
    delay(5);
    digitalWrite(RST, HIGH);
    delay(300);
}

void loop() {
if(digitalRead(button) == HIGH){ /* if D2 is HIGH */
  delay(500);  /* Soft Debounce delay for 500mS */
  send(0x0000);//play file 0000
  delay(1000);//delay 10 seconds
 
  send(0xfff7);//set voice volumn to 7
  delay(3000);
 
 
  }
 
 
}
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);
}

i want is when i push the button the sound play smiley then stop
7  Using Arduino / Audio / Ebay arduino waveshield on: October 03, 2012, 10:34:25 am
i buy wveshield in ebay
http://www.ebay.com/itm/Wave-Sound-Shield-Module-Arduino-Compatible-/270941558061?pt=LH_DefaultDomain_0&hash=item3f1560152d
 
they have a sample code:


/*
This code is show how Arduino Wave Module works with Arduino.
Code is not optimized. Any improving work on it is encouraged.
*/
int RST = 3;
int CLK = 9;
int DAT = 8;
   
   
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(0x0001);//play file 0001
  delay(10000);//delay 10 seconds
 
  send(0x0002);//play file 0002
  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);
}

but i try to edit this code to have a button it have a file error can i have help smiley thanks thanks!
i want to have a button when it press the sound play
8  Using Arduino / Programming Questions / Re: button on: September 28, 2012, 07:48:02 am
You have to detect when the button state (well, its pin actually) changes from LOW to HIGH (or viceversa). For this you have to use a prevBtnState variable anche check it against the current reading.

sir can i have example..?
9  Using Arduino / Programming Questions / Re: button on: September 28, 2012, 07:21:07 am
thanks sir for the reply smiley
sir can i have sample code?
my project is a gun sound effect, when i press the trigger it will sound once, until i press it again smiley
Look at the Signal Edge Detection example in the Arduino program.
https://www.facebook.com/photo.php?v=535518566463553

sir this my project..
the problem is when i press and hold the button the sound loop, what i what is when i press and hold the button it will play once.. smiley



10  Using Arduino / Programming Questions / Re: button on: September 26, 2012, 02:35:39 pm
Not sure what you want? Do you want some one to do it for you or tell you how to do it.

You need to read the button and hold in a while loop until it is pressed.
Do your thing
Then hold in a while loop until it is unpressed.
thanks sir for the reply smiley
sir can i have sample code?
my project is a gun sound effect, when i press the trigger it will sound once, until i press it again smiley
11  Using Arduino / Programming Questions / button on: September 26, 2012, 02:25:37 pm
help
about the button,
i want when i press and hold the button the program inside int execute one, if i want to execute it again i release and press again the button.
thank in advance smiley
12  Using Arduino / Audio / PCM audio on: September 23, 2012, 10:49:56 am
hello, help i have a code of pcm when i reset the arduino it plays, but i want is i have a switch and when i press the switch it will play instead of the reset button smiley thanks
my code:

#include <PCM.h>

const unsigned char sample[] PROGMEM = {
125, 124, 125, 127, 130, 131, 130, 129, 128, 126, 124, 123, 124, 126, 129, 131, 133, 131, 128, 126, 125, 123, 124, 127, 130, 130, 130, 130, 128, 126, 124, 123, 125, 126, 129, 131, 131, 130, 129, 127, 126, 124, 124, 127, 129, 130, 129, 129, 128, 127, 127, 126, 125, 126, 128, 129, 129, 129, 129, 127, 127, 127, 126, 127, 129, 129, 127, 127, 128, 128, 128, 127, 126, 125, 127, 128, 128, 127, 129, 128, 128, 127, 128, 127, 128, 127, 127, 127, 128, 128, 128, 128, 126, 125, 126, 128, 128, 128, 129, 129, 127, 127, 127, 127, 127, 127, 127, 128, 129, 130, 129, 128, 126, 126, 127, 128, 128, 128, 129, 130, 128, 125, 125, 126, 128, 128, 128, 129, 129, 129,  100, 132, 140, 113, 133, 132, 114, 123, 141, 120, 119, 143, 115, 126, 138, 125, 119, 142, 111, 117, 142, 116, 105, 145, 111, 102, 148, 121, 111, 143, 124, 116, 146, 128, 122, 151, 121, 117, 147, 135, 117, 144, 126, 109, 138, 140, 113, 135, 133, 105, 139, 136, 110, 136, 127, 100, 129, 137, 104, 119, 138, 99, 122, 139, 107, 123, 137, 110, 118, 140, 115, 127, 139, 104, 124, 156, 100, 125, 142, 114, 121, 136, 126, 106, 146, 113, 112, 147, 107, 137, 143, 117, 121, 151, 133, 119, 145, 132, 103, 142, 130, 114, 148, 104, 107, 145, 119, 116, 128, 124, 100, 139, 129, 111, 146, 126, 109, 141, 150, 114, 146, 151, 107, 151, 152, 125, 141, 148, 106, 145, 142, 108, 139, 141, 105, 127, 150, 118, 133, 147, 125, 116, 171, 113, 132, 157, 102, 125, 146, 112, 128, 142, 113, 121, 155, 127, 113, 158, 108, 114, 148, 116, 128, 144, 114, 121, 153, 129, 120, 139, 120, 108, 144, 121, 113, 132, 120, 105, 143, 129, 111, 141, 128, 110, 139, 126, 108, 152, 127, 105, 150, 148, 113, 150, 142, 98, 130, 127, 89, 123, 117, 85, 128, 143, 108, 147, 149, 123, 147, 149, 121, 146, 136, 117, 133, 138, 120, 128, 141, 104, 118, 135, 111, 117, 143, 101, 117, 142, 117, 123, 147, 112, 124, 150, 132, 128, 156, 122, 123, 152, 114, 120, 143, 111, 110, 140, 119, 104, 139, 121, 101, 118, 120, 98, 131, 117, 98, 130, 130, 121, 151, 133, 120, 141, 135, 128, 131, 129, 105, 135, 131, 115, 147, 123, 114, 139, 138, 118, 139, 125, 126, 133, 136, 126, 139, 147, 119, 130, 153, 124, 129, 146, 106, 140, 134, 109, 141, 142, 105, 128, 140, 114, 124, 118, 115, 116, 125, 108, 123, 131, 114, 123, 142, 131, 128, 146, 119, 138, 142, 110, 139, 136, 108, 135, 129, 115, 138, 125, 126, 125, 141, 121, 133, 148, 118, 122, 152, 124, 125, 151, 118, 134, 140, 131, 128, 151, 120, 126, 147, 138, 103, 172, 107, 133, 141, 119, 114, 146, 107, 112, 137, 117, 100, 140, 99, 109, 138, 100, 108, 138, 111, 112, 145, 122, 117, 151, 127, 119, 156, 130, 123, 159, 127, 137, 149, 135, 133, 154, 128, 116, 156, 122, 118, 147, 121, 123, 144, 120, 114, 139, 118, 104, 123, 114, 114, 122, 108, 102, 141, 115, 112, 135, 122, 115, 137, 120, 112, 128, 116, 113, 123, 122, 103, 138, 122, 115, 136, 129, 115, 137, 136, 115, 139, 128, 119, 153, 119, 123, 139, 140, 118, 140, 133, 113, 145, 128, 113, 148, 120, 126, 132, 124, 120, 141, 122, 106, 138, 129, 107, 139, 134, 105, 153, 116, 128, 139, 140, 109, 145, 126, 126, 147, 127, 118, 149, 130, 125, 138, 141, 112, 157, 122, 126, 142, 145, 110, 139, 139, 115, 143, 120, 122, 135, 132, 106, 141, 145, 107, 129, 140, 130, 135, 139, 112, 142, 143, 115, 147, 117, 135, 127, 134, 120, 147, 130, 120, 141, 131, 123, 142, 129, 109, 132, 126, 125, 138, 113, 119, 144, 123, 118, 139, 129, 117, 135, 126, 119, 143, 124, 110, 136, 127, 114, 142, 118, 122, 135, 126, 116, 147, 125, 116, 142, 130, 121, 153, 126, 129, 143, 141, 120, 158, 125, 121, 145, 124, 118, 145, 118, 118, 138, 119, 119, 145, 114, 113, 140, 124, 114, 135, 125, 118, 133, 121, 121, 142, 117, 118, 138, 114, 118, 146, 110, 114, 136, 116, 122, 142, 106, 125, 138, 110, 130, 135, 110, 129, 128, 120, 117, 143, 113, 112, 140, 111, 121, 138, 112, 118, 136, 113, 125, 139, 116, 117, 142, 115, 125, 140, 111, 129, 136, 114, 124, 140, 114, 123, 133, 117, 125, 139, 114, 122, 139, 114, 131, 141, 110, 128, 142, 111, 127, 147, 111, 127, 141, 120, 136, 147, 117, 138, 141, 125, 136, 146, 113, 133, 143, 116, 139, 141, 114, 128, 139, 124, 132, 131, 114, 130, 136, 118, 133, 131, 112, 139, 130, 118, 136, 127, 119, 125, 130, 118, 130, 124, 102, 135, 126, 109, 129, 128, 119, 139, 128, 123, 147, 134, 118, 141, 133, 119, 138, 122, 117, 139, 123, 114, 144, 124, 114, 133, 128, 115, 134, 119, 109, 140, 119, 113, 142, 116, 118, 135, 121, 120, 141, 117, 121, 146, 122, 130, 145, 129, 129, 148, 128, 136, 147, 118, 133, 144, 120, 129, 139, 117, 125, 135, 114, 132, 132, 111, 123, 136, 116, 126, 135, 109, 134, 134, 117, 135, 134, 118, 130, 136, 117, 133, 131, 110, 131, 137, 114, 133, 135, 119, 143, 134, 123, 142, 139, 119, 137, 136, 121, 142, 134, 114, 139, 129, 116, 134, 120, 103, 124, 113, 107, 122, 111, 100, 125, 109, 105, 129, 112, 111, 143, 125, 131, 156, 144, 140, 163, 143, 140, 159, 122, 121, 133, 104, 104, 116, 86, 91, 116, 93, 102, 135, 108, 129, 147, 132, 149, 167, 133, 149, 161, 134, 145, 146, 117, 128, 130, 105, 117, 130, 98, 119, 125, 107, 130, 135, 108, 132, 130, 114, 133, 135, 108, 138, 131, 119, 142, 126, 125, 127, 130, 129, 127, 130, 132, 128, 127, 127, 125, 124, 128, 130, 124, 123, 127, 126, 125, 129, 130, 129, 132, 134, 129, 125, 126, 128, 126, 125, 125, 124, 125, 128, 129, 126, 124, 127, 130, 129, 130, 129, 126, 126, 129, 128, 126, 126, 127, 126, 126, 126, 125, 126, 131, 131, 127, 127, 128, 129, 128, 127, 125, 126, 129, 129, 124, 123, 127, 128, 127, 126, 126, 128, 131, 133, 130, 8, 129, 129, 129, 129, 128, 125, 125, 127, 128, 127, 127, 129, 128,
};


void setup()
{
  startPlayback(sample, sizeof(sample));
}

void loop()
{
}
13  Using Arduino / LEDs and Multiplexing / Help: Multiple LED with PWM control one pin arduino on: September 10, 2012, 11:40:21 am
Help: what IC or transistor can i used to drive a 10+ LED and used PWM?
can i use 74hc595 or transistor BC547?
14  Using Arduino / Motors, Mechanics, and Power / Help: 16 Channel Servo controller on: September 10, 2012, 07:57:31 am
Help program for this:
http://www.e-gizmo.com/KIT/servo16.htm
how can i access or command each servo that i will put in the driver..?>
15  Using Arduino / Sensors / Re: HELP: tri axis Accelerometer KXPB5 to arduino pin on: August 02, 2012, 03:55:00 am
According to the datasheet, also S0, S1, Aux_in, PD, ST should be tied to ground if they are not used.

You could tilt the sensor 90 degrees to the right, to the left, forward, backward and upside down. Do the values change ?


The range of the output is from 200 to 600 in 3.3v, is that ok? If it is ok i have 1 problem. The smoothing smiley of the ouput.
Pages: [1] 2