Shome
- 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
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
- Install Putty
- make a connection like shown on the picture.
- 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
- Make a model you want to put your electronics in
- like me on the pictures
- I used 12mm MDF wood the base of the house is 500mm x 500mm
- my roof is 450mmx450mm
- the house it self is 400mmx400mm
Connect You Database With Pycharm
Go to View > Tool Windows > Database and click on the green plus to add connection
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
- Clone my code from github.
- go to File > settings > Build, Execution, Deployment > Deployment
- Choose SFTP and make a connection with your pi
- upload the code to the pi