Shome

by yannisvh in Workshop > Home Improvement

125 Views, 0 Favorites, 0 Comments

Shome

20200617_133409.jpg
  • Raspberry pi 3 model B+
  • MircoSD Card (16Gb)
  • oled with i2c Screen
  • Stepper motor (ULN2003)
  • LED's
  • MCP3008
  • buttons
  • wood (12mm MDF)

Step 2: Raspberry Pi Setup

rufus-3.10_wYfdgtw4um.png

First of all you will need the following:

  • Raspbian OS
  • imageRufus (or any other image writer)

Download the Image from raspberrypi website.

Download rufus.

now we are going to write the image to our MicroSD card.select the image and MicroSD card and hit Start. When that is finished put the MicroSD in your Raspberry pi.

Step 3: Connecting to Your Raspberry Pi

putty_GYKUn8b4dQ.png
  1. Install Putty
  2. make a connection like shown on the picture.
  3. login into your pi:
  • User: Pi
  • Password: raspberry

4)WIFI setup:

  • sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
  • network={ssid="name of the wireless network" psk="password of the wireless network"
  • ifconfig wlan0

5) You can now use this ip isntead to connect to your pi via putty

Step 4: Make Your Model

home.jpg
20200610_183514.jpg
  1. Make a model you want to put your electronics in
  2. like me on the pictures
  3. I used 12mm MDF wood the base of the house is 500mm x 500mm
  4. my roof is 450mmx450mm
  5. the house it self is 400mmx400mm

Connect You Database With Pycharm

db.PNG
  1. Go to View > Tool Windows > Database and click on the green plus to add connection

  2. Choose Data Source > MySQL and Download driver, if it comes up General

  • host = localhost
  • port: 3306
  • user = username of the pi
  • password = password

6) Add the Code

pycharm64_n2407R28Hk.png

  1. Clone my code from github.
  2. go to File > settings > Build, Execution, Deployment > Deployment
  3. Choose SFTP and make a connection with your pi
  4. upload the code to the pi

6) Connect Every Component

breadboard.PNG
schema.PNG