Hello,

In this post i sill show steb by step how to install system and prepare RaspberryPi Zero W, to match our needs, so in few steps i will show how to:

  • run system on RPi
  • turn on ssh
  • configure network
  • prepare ssh RSA keys (so You dont have to provide passwrod each time u are logged into RPi)
  • turn on  I2C comunication
  • turn on camera

And all of this wihout connecting mouse,keybaord or display to our RasbperryPi

 

OK we need to have system image so we can deploy it on RPi, i choosed option “Rasbian Stretch with Desktop” ( becasue it already have thinkgs that we will need) we download it from :

https://www.raspberrypi.org/downloads/raspbian/

lets unpack zip (using 7zip program, windows archiver is not so good for this kind of files  http://www.7-zip.org/download.html)

And lets write image into our SD card

I’ve used Win32DiskWriter  https://sourceforge.net/projects/win32diskimager/

At the left Image file we choosed what was unpacked at previous step, at the right we choose SD card itself ( If You dont have anything in devices combobox turn off program and inserd SD card againm then turn on Win32DiskWriter again)

Click Write, after couple minutes we have our SD card almoust ready

Firstly we need to turn on ssh so we can connect our Rpi from console

Open SD card directory ( in my case H letter) and placed there ssh file (wihout any extensions I’ve used for this total commander, You can do the same in Windows expolrer but then u have to remove file extension)

 

and we have:

As You see there is no extension there is just single name “ssh”

Ok, now We have to configure network so Rpi will know where and how to connect. We need to create and edit “wpa_supplicant.conf” file, we placed in at the same place as previous ssh file so in main SD card dir

wpa_supplicant.conf content:

I’ve assumpted that You wifi has WPA-PSK encryption (most popular option)

ofcourse You hae to change networkName and networkPassword ( but leave there quation marks)

SD card is ready lets connect power source to our RPi (remember to connect power cable with USB labeled as PWR IN)

Gren diode will blink for a while then it will be solid green ( wihtout any blinking)

Lets conenct our RaspberryPi I’ve used putty

https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Lets fill fields in order i mark at printscreen, in Saved Session You can prove any name You want I’ve put raspberry pi 2 becasue its my second RPi

 

Click saved so we will have it next time we turn on putty, and click open 

We should see something like that

lets write default password  :

and we got something like that

lets also install mcedit text editor its much simpler then vim or nano

 

 

I recommend to make RSA keys so You dont have to provide passwrod each time u connect to RPi

Lets configure camera I2c

in putty:

Interfacing options:

then Camera and change to “Yes”

[Enter][Enter]

the same for Serial and I2C

then “finish” and restart:

lets check our camera

plug in camera (best if RPI is turn off):

putty:

camera diode wil be red for a while then “kotek.jpg” will be created

lets download foto and check if we have nice photo I’ve used WinSCP  https://winscp.net/eng/download.php

and configure WinSCP to connect my RPi

I’ve assumt that You configure RSA keys if no jsut provide password and skip steps 4 5 6 7

download to disk

and check it

Thats all,

we have our RPI installed, configured Wifi, connected I2C, serial, and working camera, And we know how to connect putty into our RPi