/ guides / hardware.md
hardware.md
 1  
 2  
 3  ![IMG_0156](https://github.com/BasedSocialCo/whomane/assets/43514161/f5004a26-3a2f-4e5c-a229-564b3f80a556)
 4  
 5  
 6  This guide provides step-by-step instructions for assembling hardware device for capturing images. Currently we use Raspberry Pi Zero 2 W
 7  ## What do you need to buy
 8  
 9  
10   **Without Soldering**
11  - [Raspberry Pi Zero 2 W starter kit](https://www.amazon.com/Vilros-Raspberry-Incudes-HDMI-USB-Adapters/dp/B09M1PS35R/ref=sr_1_1_sspa?dib=eyJ2IjoiMSJ9.7uwaVS6VlIyCOjU6bSCtilVtXA4LRZlsMI7u7c0q7_RWrDRzbTeOdGo7RMfSkGMR-xvuauf8BnIWA0yDFsu05NCiJuPaCtsgEG_4abxGwHYKI9tpQko0gVaBg3sOrqgV0QigrnGU7rVbuWtgMwqil-l5W3LrEkA27nawQ5wptpLJ-T_p9nUU8QE5xHWXd9b27tsm-TM0dYnB_KRw-JD95m2f7aXZFiXRC2S68UEq0eE.dEIhxLbFiZ4WOZYcBpqwqwv_ACeMe7Z46VDGsVTaTNY&dib_tag=se&keywords=raspberry+pi+zero+2+w&qid=1709075875&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1)
12  - [MicroSD card (8GB or larger recommended)](https://www.amazon.com/SanDisk-2-Pack-microSDHC-Memory-2x32GB/dp/B08GY9NYRM/ref=pd_bxgy_d_sccl_1/145-9248613-0901538?content-id=amzn1.sym.839d7715-b862-4989-8f65-c6f9502d15f9&th=1)
13  - [Battery](https://amazon.com/Pisugar2-Portable-Pwnagotchi-Raspberry-Accessories/dp/B08D678XPR?crid=20HTG4JLWZJBO&keywords=battery+for+raspberry+pi-zero&qid=1706907491&s=electronics&sprefix=,electronics,287&sr=1-3)
14  - [Camera](https://www.amazon.com/Raspberry-Pi-Camera-Module-Megapixel/dp/B01ER2SKFS?th=1)
15  - [Button](https://www.amazon.com/Adafruit-Colorful-Square-Tactile-Assortment/dp/B00KLDQ0YG/ref=sr_1_1?crid=3ALMFBAVSNXWS&dib=eyJ2IjoiMSJ9.nVaQ7gCpV3AiaDvAtVwKlU-gzxSiUrvudVwVopmaJlP4VhXwSqRniN1w6FWMUCglsKNimvQsPhxgYuunMw6Sc8Y33zhVBx_C5G4yr_3i4TZY_P8vCOEpopu36b4mk3Y5sIpqbDWRLqjI2HmoPdA4Jtv9Ite32dJoUg7X7GBdHRwLqd225DsbkOj9uyUo38SHZLcJaPNxkiEM-_MpCzgoSm6s5nYL7qbQM_7h2BBup1g.p7btLbSYPdT2qmJ126D6niGFfCGmnifGbSI9AHK8ZRo&dib_tag=se&keywords=adafruit+square+buttons&qid=1709697564&sprefix=adafruit+squarebuttons%2Caps%2C164&sr=8-1) (we used this but you can get any other button that you like)
16  - [Any Double-sided tape like this](https://www.amazon.com/Aylaa-Adhesive-Removable-Picture-Multipurpose/dp/B0C54LRW2G/ref=sr_1_5?crid=395F2X9PJWNB7&dib=eyJ2IjoiMSJ9.5-VEQuzZ-lua7GMufaJfJetMnXiYGtC-7mHHq4GUTBuo-bP9hfdqGpy0M6WKGg5OmjPkwLz638JP2s1qAJc8VjwKZpW6vE-CJNz0aRQ-y2KX0z7FPV8EGUobEijmeZvEzGlH1tVjcZz1KjJiv6Dip0_ArdYmB7x3P5QRVuO_L1fbWQ1GX73VXH_JdrsVOZTQjY5OuQxevb4ORTX42m1Yf_2ONxniKRDI-eqnPbvxXnczwKe99EGQ5zvGu1Nb0jEuRuHWkNCJHTSzbu-Bqzp3JGyhS5exydmsmrkNCqrDtFI.yiT2ohdWcGWhEAYrypFnd-AkiUZZuXt9V7Fh65JbVW8&dib_tag=se&keywords=2+sided+tape+mounting+tape&qid=1709697657&sprefix=2-sided+tape+moun%2Caps%2C158&sr=8-5)
17  
18  ## Assembling instructions
19  
20  ### Connect Camera to raspberry Pi
21  
22  
23  You have a Raspberry Pi board that looks like this ![zero2-close-up](https://github.com/kodjima33/ADeus/assets/43514161/c9f5ce13-9e63-48ca-b930-4f13501b4de4)
24  
25  Your goal is to attach the camera via a short ribbon cable that you received along with your raspberry Pi Kit.
26  
27  [Here is a more detailed video](https://www.youtube.com/watch?v=zFAX4pH1BPA)
28  
29  This is what you should end up with: 
30  
31  ![IMG_0157](https://github.com/BasedSocialCo/whomane/assets/43514161/2818227f-4780-49dd-b2ec-90ca1141ffba)
32  
33  After you connect the camera, turn over everything and put a little bit of double-sided tape on the back of your camera
34  ![IMG_0158](https://github.com/BasedSocialCo/whomane/assets/43514161/d229726d-270b-4e29-a05a-ffcf78726435)
35  
36  Finally, attach your camera to your raspberry Pi with tape
37  ![CleanShot 2024-03-05 at 20 45 47](https://github.com/BasedSocialCo/whomane/assets/43514161/3df341b2-4f9d-4439-a8eb-5af412d9530b)
38  
39  
40  
41  
42  ### Step2: Connect the button
43  
44  You will need to insert button's 2 (of 4 total) contacts into the board so that 2 contacts will be left unused.   
45  ![IMG_0159](https://github.com/BasedSocialCo/whomane/assets/43514161/6deaba8e-ee26-49e8-9cb8-714c6e88eb6f)
46  
47  The pins you will use are #5 and #7 on the row that is closer to the border of your Pi (see picture below)
48  
49  ![IMG_0160](https://github.com/BasedSocialCo/whomane/assets/43514161/34f8ea0c-b3d2-4a6e-ba68-78efeb305924)
50  
51  After you insert button's contacts into the board, take a screwdriver or keys or anything solid and bend the contacts so that the button wouldn't fall off.
52  
53  ![IMG_0161](https://github.com/BasedSocialCo/whomane/assets/43514161/757a57a5-4040-485c-b537-384a828d2e65)
54  
55  
56  
57  ### Step3: Prepare Pi sugar
58  Raspberry Pi sugar has good magnets which we will use as our Pin holder
59  
60  
61  
62  Take something sharp (knife) and carefully remove both big circle magnets from your Pi Sugar. 
63  
64  ![IMG_0163](https://github.com/BasedSocialCo/whomane/assets/43514161/2701fc55-7295-4bd9-baf9-f8e43fd71187)
65  
66  After, put double-sided tape on your battery and attach the battery to the battery's board
67  
68  As the last step, attach one of the magnets to the back of your battery and keep the 2nd magnet (you'll use it to "hang" the Pin on your clothes)
69  
70  ![IMG_0164](https://github.com/BasedSocialCo/whomane/assets/43514161/055cd708-7cbe-417a-b4e9-df9b3fda2466)
71  
72  ### 4. Attach Pi sugar battery to raspberry Pi
73  
74  Step 1: unpack your Raspberry pi sugar battery. it should contain 4-5 screws
75  
76  Step 2: Following [this video](https://www.youtube.com/watch?v=XA4j9hRiFmw), attach your Pi Sugar to your Raspberry Pi. Note that this video may have screws you don't have (and you don't need them). Attach directly with your screws.
77  
78  ![IMG_0162](https://github.com/BasedSocialCo/whomane/assets/43514161/94c665ba-e72f-45a7-90d5-05c24899ca09)
79  
80  
81  Done! You have assembled the hardware! You should end up with something like this 
82  (note that button may be located in a different place. In this picture I used different location)
83  ![IMG_0156](https://github.com/BasedSocialCo/whomane/assets/43514161/4d09fb4c-89ee-4890-ac5c-1f5d38516ce9)
84  
85  
86  ### 6. Install software and run
87  Navigate to Software guide to install software on your Pin and run it