I recently made my own little arduino project inspired by the 90ies nostalgia of Pokémon and Billy Bass, and down below you can find instructions on making your own! The project was for school, and we had to build something that would be entertaining, or a solution to a certain problem. My project is a mix of the two, solving a personal problem in my home, and also being fun to look at!
- 1x Arduino Uno
- 1x Servo motor
- 1x Piezo Buzzer
- 1x LDR sensor
- 1x 220Ω resistor
- 9x male to male wires
- 1x breadboard
- 1x 3D printed fish
- 1x a wooden box big enough to fit your Arduino
You can follow along with building this little gadget in the steps down below!
Step 1: Setting Up Hardware
Wire the components per the diagram above.
- Connect the Servo's wires to GND, 5V and digital pin 3.
- Connect two wires from 5V and analog pin A1 to the LDR.
- Connect a wire from GND to the breadboard.
- Connect a wire from the GND wire to the resistor.
- Connect a wire from the GND wire to the buzzer
- Connect a wire from digital pin 12 to the buzzer.
Depending on the size of the container you have, you might have to tweak the positions of the setup slightly.
Step 2: Working on Magikarp and the Container
For the next step you'll need access to a 3D printer to be able to print the Magikarp.
I found this model online, and had it printed with dark grey plastic. It still needed some work to look presentable.
- Sand the model. Make sure each part has its rough edges sanded down nice and smooth.
- Painting. Depending on the color of your 3D-print, you'll have to use multiple layers of paint to fully cover your model.
- Assembly. I used strong adhesive to carefully stick all the 3D-printed parts together. Some parts can be fragile, so be careful when gluing.
- As a last step, glue a small Servo arm to the backside of the Magikarp, so it'll be able to attatch tot the Servo.
I've made a small wooden container to fit my wiring and Arduino in. You can use any size container, but be sure to drill two holes in the front of the container. One small hole for the LDR to fit through, and another larger hole for the top part of the Servo to fit through. Be careful not to make this second hole too big, otherwise the Servo will simply fall out. I secured my Servo with two small screws, and painted my container white before fitting in my setup and wiring.
Step 3: Code
Simply copy the code down below into the Arduino IDE. I've added comments explaining noteworthy parts in the code.
I used the code in this instructable as a base to work off on, and modified it to fit my own project.
Step 4: Finished!
Thank you for reading all the way to the end of my first instructable!
I hope it's been informative and hopefully you've been able to follow along!