Skip to content

LazyAssassin445/pibox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piBox

Raspberry Pi Birdbox

A wooden birdbox with some extra gadgets courtesy of the Raspberry Pi.

box

Setting up the raspberry pi

Now you have your Raspberry Pi you need to put software on it. Go to this link https://www.raspberrypi.org/downloads/raspbian/ to download the latest copy of Raspbian After it has downloaded, follow this link (https://www.raspberrypi.org/documentation/installation/installing-images/README.md) to learn how to install it onto your Pi When you first boot up your pi it will come up with a login window, your login details are as follows Username: pi Password: raspberry When you are in, type these commands into the PI's terminal window.

pi@pibox:~ $ git clone https://github.com/LazyAssassin445/pi-box.git
pi@pibox:~ $ pip3 install smbus2

Building

Wood

Getting the Dimensions

Now you have cloned the repository onto your raspberry pi, do this:

pi@pibox:~ $ cd pibox
pi@pibox:~/pibox $ python3 dimensions.py

You have to input the thickness of the wood and the amount of overhang you would like on the lid over the front. After that the program will print out the dimensions of the wood you need to cut and a diagram of how to cut the side panels. You might have to scroll up to see all of the dimensions. Now cut the wood.

Assembling the birdbox

You can install OpenSCAD (http://www.openscad.org/downloads.html) to look at the digital version of how the wood fits together.

box

Electronics

What You Need

Things that are shared between all of the boards

For the Ditribution Board You Need

  • Strip Board (25 cols. x 20 rows)
  • One Pi Cobbler (26 pins)
  • If you have a newer Pi with 40 pins you will need a 40 pin to 26 pin ribbon cable
  • If you have an older Pi with 26 pins you need a 26 pin ribbon cable

For the LED Boards You Need

  • Strip Board

  • 6 850nm infared LED's
  • 2 NPN Transistors
  • 2 4.7k ohm resistors
  • 2 1k ohm resistors

For the Force Sensing Board You Need

For The POE Board You Need

  • Strip board
  • A buck converter
  • A barrel connector
  • A female USB type A socket

Assembling

Assembling the Distribution Board

First cut all of the nessesary tracks like so ...

distributionboardbreadboard

Then solder on the wires and the sockets (UART is the 3 pin header, not the plug), then the cobbler.

distributionboard

Assembling the Force Sensor Board

First cut all the tracks needed

forceboardbreadboard

Then solder on the wires, the IC socket, the variable resistor and the plugs (2 pin)

forceboard

Assembling the LED Boards

First cut all the tracks needed

ledboardbreadboard

After that solder on the resistors, the connectors and the NPN transistor

THEN SOLDER THE LEDS ON ON THE OTHER SIDE OF THE STRIP BOARD

ledboard

(not 100% accurate)

Software

Testing

Now that you have all of your things connected to your Pi (shown in the picture of the distribution board), we can get on with testing.

Force Sensor Testing

pi@pibox:~ $ cd ~/pi-box/testprograms
pi@pibox:~/pi-box/testprograms $ python3 weighttest

Temperature/Humidity Sensor Testing

pi@pibox:~ $ cd ~/pi-box/testprograms
pi@pibox:~/pi-box/testprograms $ python3 temphumidtest

LED Testing

Answer the question depending on where you have your LED boards plugged in

pi@pibox:~ $ cd ~/pi-box/testprograms
pi@pibox:~/pi-box/testprograms $ python3 ledtest

What GPIO port would you like to test? 

Camera Testing

Answer the question depending on where you want to save the picture

pi@pibox:~ $ cd ~/pi-box/testprograms/camera
pi@pibox:~/pi-box/testprograms/camera $ python3 oneshot

Where would you like to save this image? 

Files you might want to look at

Software you might want to download