0

$USD

$USD
TUTORIALS Arduino

How to Make a Jumping Paper Frog

DFRobot Sep 10 2015 2371

Back in the 80’s and 90’s kids didn’t have access to the Internet. Nor did they have iPads and smartphones, so kids weren’t bowing their heads looking at screens all day long. 
However, in those days kids made their own toys like paper planes and spinning tops. These toys accompanied them throughout their childhood. 
Imagine if you were born in the 80’s and 90’s and Arduino existed. What would you make? 
Anyway, let’s make a frog.

How to make a paper frog

You will need:

1 x piece of paper with length twice as long as its width.

(We used a 20x10cm piece for our project)

2 x LEDs

1 x 3v button cell battery

Method:

1. Fold the paper in half sideways to make a rectangle. Fold the corners down and unfold them right away, repeating this for both top corners of your rectangle.

2. Flip the paper over and fold the top of the paper down at the spot where the diagonal creases meet. Unfold right away.

3. Flip over once again, and fold the two edges toward you so they meet each other. The top of your rectangle will fold down to form a triangle.

4. Fold the bottom of the paper up so that its edge meets the bottom of your triangle. Fold the two corners of the triangle up to form the "front legs" of the frog.

5. Fold the sides inward to meet at the center.

6. Fold the bottom of the paper upward so its edge touches the bottom of the "legs," and unfold right away.

7. Insert your fingers into the inside of the flaps, and pull the bottom corners outward to the sides, so that the bottom edge comes up to touch the bottom of the "legs."

8. Fold the corners down so they meet at the bottom of the figure.

9. Fold the bottom corners outward to form the "back legs" of the frog.

10. Create a zigzag fold at the bottom of the figure, folding the bottom half up and then the bottom quarter back down.


Installation of LED Lights
Cut two holes for the frog’s eyes and then attach LED lights to the button cell with double-sided adhesive tape. Put the LED and battery into the frog’s abdomen just as it’s shown in the diagram below.


Upgrade your frog: ?Folding Procedures

1. Get yourself a piece of A4 paper and fold the paper in half sideways to make a rectangle.

2. Fold the corners down and unfold them right away, repeating this for both top corners of your rectangle.

3. Fold the two triangles as it’s shown in the diagram below.
4. Turn around and fold another two triangles at the other side as shown in the picture below

Folding Procedures

5. Refer to the diagram below and fold the bottom

6. Cut along the middle line and fold out the legs of the frog


Folding Procedures

7. Then cut it as shown in the picture and then fold it.

Your frog is ready now! Press it back and release to make it hop!

Circuit Connections


Attach the Bluno Beetle controller to Pin A1 and then check the sound value shown on the sound sensor. If the value is higher than the one being set, the MP3 will be turned on and music will be played.
Electronic Components
1. Bluno Beetle controller
2. 3.7V Battery
3. Analog Sound Sensor ( compatiable with Arduino)
4. Player module
Uploading Code
Upload the code to the controller. Now your noisy frog is ready!

#include <DFPlayer_Mini_Mp3.h>
#define SensorLED     13
int state = 0;
void setup()
{
  pinMode(SensorLED, OUTPUT);
  pinMode(SensorINPUT, INPUT);
  pinMode(A0, OUTPUT);
  pinMode(A1, inPUT);
  Serial.begin (9600);
  mp3_set_serial (Serial);        //set Serial for DFPlayer-mini mp3 module
  mp3_set_volume (50);
}
void loop()
{
 
  int state = analogRead(A1);
  Serial.println(state);
  //  state=0;
  if (state > 20)
  {
    //     Serial.println(state);
    analogWrite(A0, 180);
    mp3_next ();
    delay(4000);
    mp3_stop ();
    analogWrite(A0, 0);
    delay(2000);
  }
  else
  {
    analogWrite(A0, 0);
    mp3_stop ();
    delay(500);
  }
}</font>