The "Rare Vogel" Birdhouse Controller
Introduction: The "Rare Vogel" Birdhouse Controller
A birdhouse controller for a bird based game, why? I saw this birdhouse in the store and felt instantly inspired! Going from something big and grand with a shortage of time for the school's deadline to something small and cute. It inspired an entire game around it!
It was an interesting project, I learned how to read data from the datastream directly into unity, how to use two pin buttons, items and more in arduino and learned how to plan things out in tight spaces!
It was build by looking at the components online and ordering them, trying them out, seeing what works all in the bird house and seeing what it could add!
Supplies
The things you will need are a computer and these things;
Software:
* Unity
* Arduino IDE
Tools:
* Soldering Iron
* Double sided tape (Thick and thin)
* Glue (Optional but recommended)
* Drill
* Sanding paper (Soft)
* A file
Components:
* Buttons
* Wires
* Tilt Sensor
* IR break beam sensor
* Potentiometer
* USB B Cable
* Arduino Uno (May use a different one depending on your birdhouse size)
Parts:
* A 4/40 screw, nut and spacer
* Birdhouse (Buy a cheap one or make your own! We'll be using one from the Action)
* Cardboard
* Pin headers
Step 1: Breaking In
Open up the house so you can get in there, in the case of this one it was glued together so I was able to pull it open! This will differ depending on your scenario!
Be sure to sand the hole, a finger will come through this so we wanna avoid splinters! (Sand it down in general actually.. 120
but especially this hole!)
If you break anything, feel free to use the glue!
Step 2: You Sure Push My Buttons
Grab your birdhouse and drill two holes in the top for your buttons, Depending on the size of your buttons you may need to drill different sizes than displayed here. If you're using the same birdhouse as me the wood is soft, you may not even be needed to use a drill but something sharp like a knife (Not recommended)
Step 3: This Sure Sticks Out
Take the stick out of the house! Considering this specific house was made of soft wood, I was able to poke through it with something sharp.
Do not throw away the stick! We'll still need it later!
File the stick down (Or use something sharp, not recommended!) if your potentiometer has an opening. Try to fit it in there by filing it down.
Alternatively, you can glue it directly to it!
After attaching the stick to the potentiometer, cover it up a bit so it looks cleaner and attach it to the house! we used thick strong doublesided tape for both the inbetween and behind areas.
Step 4: I Love Spaghetti!
Once you know the holes fit properly and have the potentiometer fit, it's time to wire these bad boys up, grab your soldering iron and add some wires to them! (Orientation of the wires shouldn't matter! Recommend using yellow instead of red like here for the buttons to avoid confusion)
While you're at it, consider preparing other parts too! So the same layout on the potentiometer and add pin headers on the end of all your wires.
In order to accommodate for the amount of ports of the arduino, connect all the red/black wires to a single pin (Again, this does NOT go for your red/yellow wires on the buttons)
As a reference, see the diagram what needs to be soldered to what! I recommend using a four pin header for the 7-4 pins, on this order; BUTTON R, BUTTON L, IR SENSOR, TILT SENSOR.
Not follow this order may require you to re-work some Unity Code.
Useful tip!
Be sure the buttons are already in when you hook them up all onto one ground cable!
Step 5: I See You, Don't Shake Me!
Grab your IR break beam sensor and allign them to the middle of the hole! We used double sided tape to keep them in place.
Furthermore get your tilt sensor ready, we also taped this one down UPSIDE DOWN!
This way it reads when it's held upside down far more reliably, especially considering people will be holding this as a controller so it needs some wiggleroom!
Make sure it's directly down, not screwed or crooked.
Step 6: Crafty, Aren't You?
Phew, that was a lot! But we're almost there! 996