The children in the school were very surprised to see a bird come out and flick the switch back. A lot of them couldn’t figure out what was in the box, and were intrigued by that. Some even opened the lid of the box to see what was inside.
Most of the children stayed around 2 minutes, and then got disinterested. However, there were around 5 children who were really fascinated, and they stayed for over 10 minutes just flicking the switch and observing. It felt really good to see smiles on their faces, and I would say the Useless Bird Box was a success!
Here is the video for the demo. Turn on sound for chirps!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | // demo use of a library, hobby servo output //fix hinge //bird head //speaker //birdhouse #include <Servo.h> Servo hi; Servo op; void setup() { hi.attach(8); op.attach(2); pinMode(A2,INPUT); Serial.begin(9600); } void loop() { hi.write(90); //80 op.write(60); int lol=analogRead(A2); Serial.println(lol); int ran=random(1,40); //normal if (ran<=10) { if (lol>900) { delay(500); op.write(35); delay(500); hi.write(65); delay(500); hi.write(90); delay(500); } } else if (ran<=20){ //screech if (lol>900) { delay(500); op.write(35); delay(500); //done opening hi.write(80); //moves up for ( int i=1; i<=10; i++){ delay(100); hi.write(75); delay(100); hi.write(80); } //shakes //sounds for ( int a=1;a<=3;a++){ for ( int i=4000;i<=4200;) { tone(12, i); i=i+10; delay(5); Serial.println(i); } noTone(12); delay(300); } hi.write(90); delay(500); hi.write(65); //close delay(500); hi.write(90); delay(500); } } else if (ran<=30){ if (lol>900) { delay(500); op.write(45); delay(500); //sound for ( int a=1;a<=4;a++){ for ( int i=4000;i<=4200;) { tone(12, i); i=i+10; delay(5); Serial.println(i); } noTone(12); delay(500); } } } else { if (lol>900) { delay(500); op.write(35); delay(500); //sound for ( int a=1;a<=2;a++){ for ( int i=4000;i<=4200;) { tone(12, i); i=i+10; delay(5); Serial.println(i); } noTone(12); delay(500); } for ( int j=90;j>=70;j--) { hi.write(j); delay(50); } hi.write(90); delay(500); hi.write(65); //closes delay(500); hi.write(90); delay(500); } } } |
Leave a Reply
You must be logged in to post a comment.