Skiploom With Rotating Flower and Glowing Eyes

by luuk0312 in Circuits > Arduino

306 Views, 0 Favorites, 0 Comments

Skiploom With Rotating Flower and Glowing Eyes

IMG_6591.PNG

If you've ever wanted a demonic Skiploom with red glowing eyes and a fear of being touched, do I have good news for you!

This little fella gets more panicky the closer you get to him.

Step 1: What Do You Need?

For the mechanical part you'll need:

1. An Arduino, with USB cable (I use a Arduino Uno).

2.Two 5mm red LED lights.

3. Three 220ohm resistors.

4. Wires (I used the ones inside an internet cable.)

5. One 1N4004 diode.

6. One NPN EBC Transistor.

7. One DC motor.

8. One hc-sr04 distance sensor.

9. A small piece of breadboard.

10. A soldering kit

11. Some tin.

12. The Arduino program on your pc/mac.

For the body and pedestal you'll need:

1: A round, hollow base, which can be opened and drilled holes in (I used a plastic apple you can open midway)

2: Another hollow base, which can be opened and drilled holes in. Shape doesn't matter as long as Skiploom can stand well on it.

3: A fake, yellow flower.

4: Some clay, preferably polymer clay.

5: Some fake plants and moss.

6: Acryl paint (White, Black Green, Brown, Pink and Orange)

7: Wood glue

8: Superglue.

Step 2: the Mechanical Part

Screen Shot 2019-04-08 at 17.38.22.png

To start things off, recreate the picture of the build. Be precise with the connections of the sensor.

Make sure to use long wires for the sensor, LEDs and the motor.

If you get it working, you can go solder it at your own risk.

WARNING: Solder everything BUT the motor and the sensor, otherwise it won't fit later.

Now if you connect your Arduino with your pc/mac, you should upload this code to your Arduino using the Arduino program.

Code:

int trigPin = 11;
int echoPin = 12;

long duration, cm;

void setup() { //Serial Port begin

Serial.begin (9600);

//Define inputs and outputs

pinMode(trigPin, OUTPUT);

pinMode(echoPin, INPUT);

pinMode(3, OUTPUT);

pinMode(9, OUTPUT);

pinMode(06, OUTPUT);

}

void loop() {

digitalWrite(trigPin, LOW);

delayMicroseconds(5);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);

pinMode(echoPin, INPUT);

duration = pulseIn(echoPin, HIGH);

if ((cm < 50)&&(cm > 30)) {

for (int i = 0; i < 255; i++) {

analogWrite(6, i);

analogWrite(9, i);

delay(5);

}

for (int i = 0; i > 0; i--) {

analogWrite(6, i);

analogWrite(9, i);

delay(5);

}

}

if ((cm < 30)&&(cm > 20)) {

digitalWrite(9, HIGH);

digitalWrite(06, HIGH);

delay(100);

digitalWrite(9, LOW);

digitalWrite(06, LOW);

delay(100);

{ int value = analogRead(echoPin);

int motorspeed = map(value, 0, 1020, 255, 255);

analogWrite(3, motorspeed);

delay(1);

}

}

if (cm < 20){

digitalWrite(9, HIGH);

delay(30);

digitalWrite(9, LOW);

delay(30);

digitalWrite(06, HIGH);

delay(30);

digitalWrite(06, LOW);

delay(30);

{ int value = analogRead(echoPin);

int motorspeed = map(value, 0, 1023, 255, 255);

analogWrite(3, motorspeed);

delay(1);

}

}

else {

digitalWrite(9, LOW);

digitalWrite(06, LOW);

delay(10);

{ int value = analogRead(echoPin);

int motorspeed = map(value, 0, 1023, 0, 0);

analogWrite(3, motorspeed);

delay(20);

}

}

// Heb ik van het internet. Zorgt ervoor dat de tijd dat het duurt voor de echo om terug te keren wordt berekend in centimeter.

cm = (duration/2) / 29.1;

Serial.print(cm);

Serial.print("cm");

Serial.println();

delay(50);

}

Step 3: the Body and the Pedestal

If you got you hollow roundish base, drill/cut two holes in the middle of the top and bottom. Now drill/cut two holes at the eye level of Skiploom, just big enough for the LEDs to fit through.

Use the clay to make the ears, arms, feet and tail (bake them if necessary) and superglue them on the body.

Drill a hole in the middle of the top of the pedestal base. Also add a hole in the back(for the USB cable).

Now mix some of the wood glue and green paint and then paint thick layers over the body. Repeat until the base isn't visible through the paint anymore.

Now do the same with the pedestal base, but with whichever colours you'd like.

Let it all dry.

Step 4: Combining Step 2 and 3

Open the pedestal base and put your mechanical parts in there. Make sure that the LEDs, the sensor and the two wires for the motor go out the upper hole of the pedestal and in the bottom hole of the body. The four wires for the sensor also need to go out of the pedestal top, but should go in front of the body, not go inside. Also make sure that the USB cable can get out of the hole in the back.

Now solder the motor wires to the motor and the sensor wires to the sensor.

Make it so that the rotating end of the motor sticks a little out the the upper hole in the body and that the LED eyes are nicely in their sockets. (I used duct tape to fill everything up)

Step 5: the Final Touch

IMG_6606 (2).JPG
Screen Shot 2019-04-08 at 22.06.57.png

Now superglue the flower to the end of the motor. (use something like a straw if the motor is too short)

Decorate the pedestal in a way the wires and holes aren't very visible.

And there you go! Your own demonic pokemon!