Simple Halloween Skull

26 October 2011 4,577 views 3 Comments

 

Maybe it’s too late to present an Halloween project with a lot of function, so we decide to develope a simple application to show how controll a mandible of a skull.

In this project the skull speaks and moves the mandible according to the sound level.
An Arduino analyzes the level sound of a audio source and drives a servo motor connected to the mandible.
All very simple.

The video show how it works.

The sketch:

 

/* Skull
 created 2011
 by Boris Landoni

 This example code is in the public domain.

http://www.open-electronics.org

http://www.futurashop.it

*/

#include <Servo.h> 

Servo myservo;  // create servo object to control a servo 

int potpin = 0;  // analog pin used to connect the potentiometer
int val;    // variable to read the value from the analog pin 

void setup()
{
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
} 

void loop()
{
  val = (analogRead(potpin)*3);            // reads the value of the potentiometer
  val = map(val, 0, 1023, 50, 0);     // scale it to use it with the servo
  myservo.write(val);                  // sets the servo position according to the scaled value
  delay(15);                           // waits for the servo to get there
}

 

The schemtaics shows how we connect the servo to Arduino.

Download ZIP File     Download the Fritzing file

 

Inside the skull we use an old PCB to fix the servo (you can use what you want).

This project wants to be a start point for yours ideas….
Have a good work

Related posts:

  1. Teagueduino: making things really simple
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

3 Comments »

  • Halloween Hacks: Simple robotic skull is a perfect last minute decoration | You've been blogged! said:

    [...] If you haven’t taken the time to put your decorations together it’s time to get a move on. With Halloween just around the corner big elaborate displays are pretty much out of the question, but [Boris] and the team over at Open Electronics have a simple project that’s sure to be a hit with the Trick or Treaters. [...]

  • Halloween version libre ! | LoLiGrUB ASBL said:

    [...] Si vous êtes bricoleur et amateur de gadget, vous pourrez impressionner vos visiteurs par un crâne articulé commandé par une électronique Open Source Arduino (cf. Open Electronics). [...]

  • Simple robotic skull is a perfect last minute decoration / Cooking Hacks Blog said:

    [...] If you haven’t taken the time to put your decorations together it’s time to get a move on. With Halloween just around the corner big elaborate displays are pretty much out of the question, but [Boris] and the team over at Open Electronics have a simple project that’s sure to be a hit with the Trick or Treaters. [...]

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

Connect with Facebook

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*