new dimensions program for all thicknesses and add to README
This commit is contained in:
35
README.md
35
README.md
@@ -1,18 +1,35 @@
|
|||||||

|

|
||||||
|
|
||||||
# Raspberry Pi Birdbox
|
# Raspberry Pi Birdbox
|
||||||
A wooden birdbox with some extra gadgets courtesy of the Raspberry Pi. (Camera, IR, Weight)
|
A wooden birdbox with some extra gadgets courtesy of the Raspberry Pi.
|
||||||
|
|
||||||
## Download the Pi-Box Repository on to your raspberry pi
|
## Gathering the neccesary items
|
||||||
|
### You Need
|
||||||
|
* A Raspberry Pi (we're using the Pi 1 Model B, but it will work on any Pi)
|
||||||
|
* A weight sensitive resistor (specifically https://goo.gl/8EGmAL)
|
||||||
|
* 6 Infared LEDS (we are using 850nm specifically ..., but use whatever ones you would like)
|
||||||
|
* 2 NPN transistors
|
||||||
|
* A Raspberry Pi Camera (...)
|
||||||
|
* A lot of strip board (maybe bought here --> http://bright-components.co.uk/epages/950004269.sf/en_GB/?ObjectPath=/Shops/950004269/Categories/Prototyping/Strip_Board)
|
||||||
|
* A lot of wire
|
||||||
|
|
||||||
|
## Setting up the raspberry pi
|
||||||
|
Follow this link to set it up ...
|
||||||
|
After you have done this type this command on it
|
||||||
|
|
||||||
```console
|
```console
|
||||||
pi@pibox:~ $ git clone https://github.com/LazyAssassin445/pi-box.git
|
pi@pibox:~ $ git clone https://github.com/LazyAssassin445/pi-box.git
|
||||||
```
|
```
|
||||||
|
|
||||||
## Gathering the neccesary items
|
|
||||||
### You Need
|
## Cutting the wood
|
||||||
* A Raspberry Pi 3
|
### Getting the dimensions
|
||||||
* A Pi Camera
|
Now you have cloned the repository onto your raspberry pi, do this:
|
||||||
* Infa red light
|
|
||||||
* A weight sensitive resistor (specifically https://goo.gl/8EGmAL)
|
```console
|
||||||
* 4 infa red sensors
|
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, 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/.
|
||||||
|
|||||||
76
dimensions.py
Normal file
76
dimensions.py
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
|
||||||
|
thickness = int(input("How thick is your wood in millimetres? "))
|
||||||
|
overhang = int(input("How much do you want the top plank to overhang in millimetres? "))
|
||||||
|
|
||||||
|
#work out bird section dimensions
|
||||||
|
birdfr1 = 200+thickness
|
||||||
|
birdfr2 = 150
|
||||||
|
birdba1 = 200+thickness
|
||||||
|
birdba2 = 150
|
||||||
|
birdbo1 = 150
|
||||||
|
birdbo2 = 150
|
||||||
|
birdto1 = 150+20+(thickness*3)
|
||||||
|
birdto2 = 150
|
||||||
|
|
||||||
|
|
||||||
|
#work out main dimenstions
|
||||||
|
fr1 = 222+thickness
|
||||||
|
fr2 = 150
|
||||||
|
ba1 = 538+thickness
|
||||||
|
ba2 = 150+(2*thickness)
|
||||||
|
bo1 = 150+20+(2*thickness)
|
||||||
|
bo2 = 150
|
||||||
|
to1 = 150+(2*thickness)
|
||||||
|
to2 = 150+20+(thickness*4)
|
||||||
|
|
||||||
|
|
||||||
|
#work out side dimensions
|
||||||
|
si1 = 440
|
||||||
|
si2 = 150+20+(thickness*3)
|
||||||
|
|
||||||
|
|
||||||
|
print("\nBIRD SECTION\n")
|
||||||
|
print("Front = ", birdfr1, " X ", birdfr2)
|
||||||
|
print("Back = ", birdba1, " X ", birdba2)
|
||||||
|
print("Bottom = ", birdbo1, " X ", birdbo2)
|
||||||
|
print("Top = ", birdto1, " X ", birdto2)
|
||||||
|
|
||||||
|
print("\nMAIN SECTION\n")
|
||||||
|
print("Front = ", fr1, " X ", fr2)
|
||||||
|
print("Back = ", ba1, " X ", ba2)
|
||||||
|
print("Bottom = ", bo1, " X ", bo2)
|
||||||
|
print("Top = ", to1, " X ", to2)
|
||||||
|
|
||||||
|
print("\nSIDE SECTION\n")
|
||||||
|
print("Left = ", si1, " X ", si2)
|
||||||
|
print("Right = ", si1, " X ", si2)
|
||||||
|
|
||||||
|
|
||||||
|
print("\n\n With these side panels you must cut a 45 degree angle from the top corner to ", fr1, "off the bottom as shown below!\n")
|
||||||
|
|
||||||
|
print(" |\\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" | \\")
|
||||||
|
print(" 440 mm | |")
|
||||||
|
print(" | |")
|
||||||
|
print(" | |")
|
||||||
|
print(" | |")
|
||||||
|
print(" | |")
|
||||||
|
print(" | | ", fr1, "mm")
|
||||||
|
print(" | |")
|
||||||
|
print(" | |")
|
||||||
|
print(" | |")
|
||||||
|
print(" | |")
|
||||||
|
print(" ________________________")
|
||||||
|
print(" ", si2, "mm")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user