Monday, November 24, 2014

How to make a Sound Activated robot using Arduino

A simple sound activated bot, turn On when there is a sound and turn off if it hear sound again, It don't have any specific purpose just a toy with minimum intelligence lol.

This robot uses sound detecting sensor, which actually produces vibration whenever there is a noise, it cannot measure the db of the sound that producing, all it can do is to produce a signal when there is a sound .





sound sensor


Arduino Program:
--------------------------------------------------------------------------------------------------------------------------

int Tomotor = 8;       // signal to motor driver
int soundsensor = 7;   // input from sound sensor

boolean state = false;

void setup()
{
  pinMode(Tomotor, OUTPUT);
  pinMode(soundsensor, INPUT);
}

void loop()
{
  if (digitalRead(soundsensor) == LOW)
  {
    delay(100);                    
    state = !state;              
    digitalWrite(Tomotor, state);  
  }
}
--------------------------------------------------------------------------------------------------------------------------


13 comments:

  1. please give steps to make voice controlled robot with this same connections but when we say 'forward', it have to move forward likewise ......

    ReplyDelete
  2. I really loved reading your thoughts, obviously you know what are you talking about! Your site is so easy to use too, I’ve bookmark it in my folder
    High Voltage EPROM Man

    ReplyDelete
  3. admin plz could you post the circuit diagram to my email as I am trying to make this toy please

    ReplyDelete
  4. I really like your blog and must appreciate this because it's have many information.
    Freak Your Fridge Haier America

    ReplyDelete
  5. Thank you for sharing this a great and very helpful information about the Drone Accessories well done.
    Drone Mega Store

    ReplyDelete
  6. Fantastic blog and very nice technology which i really appreciate your information about the drone video service it's too cool for us.
    drone photography

    ReplyDelete
  7. Is shooting at personal drones flying over your house OK?
    phantom 4 travel case

    ReplyDelete
  8. I got such a good information on this topic its very interesting one. You made a good site and I have found a similar website, please check this one Splined Bushings visit the site to know more. Regards, from https://hydrauliquescontinental.ca

    ReplyDelete
  9. Full control over your funds while perform transactions with bitcoin exchanger trusted fast website working as highest degree of security privacy and professionalism

    ReplyDelete