+ Reply to Thread
Results 1 to 8 of 8

Thread: servo control

  1. #1
    robotdog Newbie
    Join Date
    Mar 2009
    Posts
    9

    Smile servo control

    I have 2 electret mics, 1 left, 1 right, these are fed through comparators.

    I want to control a servo in such a way that the servo is at centre position and if more sound enters the left mic, servo moves left.

    After a small delay, servo centres.

    The same would apply to the right mic.

    I have tried using a 16F628A pic but I am not getting the results.

    I thought some sort of bridge circuit would do..

    Can anyone help, please.


  2. #2
    Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent
    Join Date
    Oct 2006
    Location
    Rochester, NY U.S.
    Posts
    9,821
    Blog Entries
    1

    Default

    A comparator is about useless for that, you need an integrator. Even then though with echo it won't work quiet right. You'd need to use three mics and triangulate the volume source. Four if you want to sense it in 3D. Three sensors will only sense accuratly on the plane the sensors are in. It's a lot more complex than you might think.
    Last edited by Sceadwian; 23rd March 2009 at 04:57 PM.
    "Because I be what I be. I would tell you what you want to know if I
    could, mum, but I be a cat, and no cat anywhere ever gave anyone a
    straight answer, har har."

  3. #3
    Triode Good Triode Good Triode Good
    Join Date
    Feb 2009
    Location
    Milwaukee Area
    Posts
    533
    Blog Entries
    4

    Default

    your making a robot that pretends to follow a conversation between two people arent you?

  4. #4
    robotdog Newbie
    Join Date
    Mar 2009
    Posts
    9

    Default

    Hi, Sceadwian, Sorry, I am using LM358 Opamps, not comparators.

    I did not get to bed till 2:15am, and my brain hurts.

    I got it to work on one channel but when I added the right hand channel to the Pic and programmed it, one channel remained "ON".

    Like I said, I was up till late trying to work out the problem.

    I thought the best way would be a servo in balance using some sort of bridge......

  5. #5
    robotdog Newbie
    Join Date
    Mar 2009
    Posts
    9

    Default

    Hi, Triode, No, I just want it to look alive to sound.

    Many years ago a guy rigged up a head on a snake like body which moved towards the sound source. The body was a flexible tube with three steel cables running up the middle.

    It was installed in a museum.

    The cables moved the head forward , left or right.

    I had a video of the beast which showed it lunging towards the people

    I have lost the video and circuitry.

    I just want my project to follow the sound source.

  6. #6
    acrylic Newbie
    Join Date
    Apr 2007
    Posts
    5

    Default

    Fashioning some ears will help pinpoint the sound source.

  7. #7
    Misterbenn Newbie
    Join Date
    May 2005
    Location
    UK, midlands
    Posts
    107

    Default

    Can you be more exact about your problem here please.

    You say that you got one channel to work, what exactly does it do when it works? and what is "on", the servo? the input?

  8. #8
    robotdog Newbie
    Join Date
    Mar 2009
    Posts
    9

    Default

    Thanks for your reply.

    I have abandonded the project in favour of my pir setup which works perfectly.

    The electret mics were too sensitive to spurious noise.

+ Reply to Thread

Similar Threads

  1. PIC Hardware PWM for servo control
    By 1krr in forum Micro Controllers
    Replies: 9
    Latest: 2nd December 2006, 12:47 PM
  2. continous servo control
    By chyun84 in forum Electronic Projects Design/Ideas/Reviews
    Replies: 4
    Latest: 20th November 2006, 03:50 AM
  3. How do you control digital servo.
    By haku87 in forum Robotics Chat
    Replies: 5
    Latest: 1st July 2006, 10:49 AM
  4. servo control with 16f84a
    By mikeville in forum Micro Controllers
    Replies: 2
    Latest: 20th January 2006, 01:05 PM
  5. Servo motors control
    By say_hoe in forum Electronic Projects Design/Ideas/Reviews
    Replies: 1
    Latest: 19th February 2003, 07:29 AM

Tags for this Thread