Jaws Themed Useless Box

by Evanlgks in Circuits > Arduino

28 Views, 1 Favorites, 0 Comments

Jaws Themed Useless Box

shark eeting bot.png

This useless box is inspired by two users on Instructables, OrangeKat and Phoebister. The design we went for was similar to Phoebister's design, with the slanted configuration for the lid. The difference that we intend on doing is making it look like jaws with a Benchy (boat/dingy) as the switch, and the hand being the shark mouth. The box itself is ocean themed, with dark blue waves, making the rest a lighter blue. Once the DPDT switched gets flicked a little animation will happen, the lid would go up and starts playing the Jaw's theme song. This will repeat 2 more times, then the shark will come out and attack the boat, flipping the switch back.

Administrator:

Mr. Sweet & Mr. Walker

People in our group:

Evan T

Cruz V

Kevin L

Jaden B

Evan B

Elijah S

Instrucable & Inventor:

Evan T

Kevin L

Miscellaneous:

Evan B

Coder:

Elijah S

3d printing:

Evan T

Cruz V

Kevin L

Jaden B

Soldering and painting:

Jaden B

Evan B

Laser Printing

Kevin L

Cruz V

Evan B

Supplies

BOM: Bill of materials

(note some amazon links won't work because you have to do a capcha for amazon)

1 Arduino

1 Breadboard

Wires

1 dagu motor

1 USB Type B

1 PC Mount 12mm 2.048kHz

9g Servos

dpdt switch

9v battery

optional but highly recommended:

Soldering station

blue spray paint

Sharpie

3d printer (we used MakerBot Replicator+) needed if you want switch cover (Benchy) and shark head

Brainstorming

download.png
images.png

When we first started we were just doing the assignment that our teacher Mr. Sweet assigned to us. Then he let us know about the Halloween contest on Instructables, and so we decided to theme our box around something scary. We came up with jaws theme and we planned out the materials on a google doc.

Using Inventor

We planned out the design of the box using inventor, to make sure everything worked, we notice the box had a couple of flaws so we redesigned it. Once we made the changes in inventor we put it on AutoCAD and later printed it out.

Planned It Out on Tinkercadd

00001.png

Using Tinkercadd we illustrated what our components and circuits will look like, until we were happy with it.

Actual Circuitry

Screenshot 2024-10-09 113539.png
Evan soldering.png

Once we finished the circuitry on Tinkercadd, we built it on our breadboard and Arduino. We did have a small issue with the code and wiring, but after some trouble shooting we got it working.

Cutting Out Box Draft

Screenshot 2024-10-09 113742.png
cut out box not painted.png

At the same time we used Phoebister design. We used our laser cutter to cut out the box. We had a small hurdle with that the laser printer, that it wasn't differentiating our cut lines with our heavy engraving lines. We restarted the program and redrew the lines, and it worked out. We used AutoCAD to design, draft and edit Phoebister design.

Painting

00002.png
spray painted box.png

Due to lack of materials we couldn't get a good thin paint brush, so what we made a DIY paintbrush where we ripped off a napkin, and stuck it down a plastic straw, and made the tip of the napkin really fine. Once we got over the paintbrush hurdle we spray painted the box and painted white waves on the box.

3D Printing

Biggs eating arm.png
Makerbot printing.png
sarky.png
sark but awesoem.png
switch cover.png

We noticed that the parts that assemble the useless box would fit, but the inside of the box would be disorganized with parts all over the place. After noticing, we 3d printed out holsters for our components, limit switch and motor. We also used our time to 3d print a boat, commonly referred to as Benchy, we also printed out a shark head and an arm to mount the shark head .

Code

This code has many uses, one of them is a randomizer which the shark will turn off the switch at random times. The randomizer is used to make sure that the user can't predict when the shark comes up. We also have the code activate a buzzer to make the jaws theme song as the shark prances up and down.

const int buttonPin = 7;
const int pizeo = 8;
int buttonState = 0;
#include <Servo.h> //Creates a servo object
Servo myservo;
int pos = 0;
long randNumber;
//MUSIC CONTROL
#define NOTE_B3 247 //
#define NOTE_C4 262
#define NOTE_A4 349
#define NOTE_F4 440
int noteDurations[] = {
2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
};
int melody[] = {
NOTE_B3, NOTE_C4, NOTE_B3, NOTE_C4, NOTE_B3, NOTE_C4, NOTE_B3, NOTE_C4, NOTE_B3, NOTE_C4, NOTE_B3, NOTE_C4, NOTE_B3, NOTE_C4, NOTE_B3, NOTE_C4
};
void setup () {
myservo.attach(6); // attaches the servo on pin 9 to the Servo object
randomSeed(analogRead(2));
Serial.begin(9600);
}

void loop() {
// put your main code here, to run repeatedly:
randNumber = random(300);
Serial.println(randNumber);
buttonState = digitalRead(buttonPin);
if (randomSeed > 200 ) {
for (int thisNote = 0; thisNote < 8; thisNote++) {
int noteDuration = 1000 / noteDurations[thisNote];
tone(8, melody[thisNote], noteDuration);
int pauseBetweenNotes = noteDuration * 1.30;
delay(pauseBetweenNotes);
noTone(8);
}
}
if (randomSeed == 18 ) {

}
for (pos = 90; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(10); // waits 15 ms for the servo to reach the position
}
delay(5000);
for (pos = 180; pos >= 90; pos -= 1) { // goes from 180 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(10); // waits 15 ms for the servo to reach the position
}
int sensorValue = analogRead(A0);
float voltage = sensorValue * (5.0 / 1023.0);
Serial.println(voltage);
}

Putting It Together

Box Shark switch.png

Once we got all of our parts together we had one thing left to do, that was making the Useless Box work. Some issues that we came up with was someone among us misplacing the shark head forcing us to print another one.