Notifications
Clear all

Servo moveing to sound file or from an sd mp3 player

5 Posts
3 Users
1 Likes
312 Views
(@videogame95)
Member
Joined: 3 years ago
Posts: 55
Topic starter  

My suggest is how to get a servo to work with a jaw movement or puppet or any toy mouth. Sound pwm to move the servo in time with talking jaw mouth.


   
Quote
(@videogame95)
Member
Joined: 3 years ago
Posts: 55
Topic starter  

I like to get a servo moving by sound to move skull jaw or any toy mouth the sound would move mouth to any talking on sound file or mp3 player . I did see this at.

Https:// buttonbanger.com  it also lets you download file not sure how safe this site is I had no problems with it.  Is there a better way to do this .


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6987
 

@videogame95 That is definitely a HACK. Yes, there is a better way to do it. See https://bityl.co/O2bE for 2 slightly different mics with code and everything.

In this case, you will use the analogue output of the mic to 'drive' the jaw motor. You may need filtering, or use the map function.

Here is the video they provided showing the sound driving a wheel of LEDs. Imagine those LEDs are the servo arm moving the jaw.

If you look at the music visualizer code, I think all you need to do is re-write the 'shiftout16 procedure to control a servo connected to the jaw rather than controlling some less. Everything else stays the same I think.

Have fun.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1085
 

@videogame95 I moved this over to Help Wanted, although I realized it was a legitimate content suggestion until Ron did his usual "answer the suggestion instead of commenting on it" bit.

But actually, I would not have taken it anyway. Not that it isn't a good suggestion; it just simply wouldn't be a good fit for my audience. James Brunton would be more of a person to do this sort of work than me. Plus I would have to buy a puppet!

😎

Bill

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
Inst-Tech reacted
ReplyQuote
(@videogame95)
Member
Joined: 3 years ago
Posts: 55
Topic starter  

@zander thank you, sorry I  didn't  read it properly but thanks for your help


   
ReplyQuote