How to Get Started With IoT Using Raspberry Pi

Roktim Sazib
Oceanize Lab Geeks
Published in
3 min readJan 28, 2018

This Raspberry Pi IoT project is the best way to get started on working with the IoT (Internet of Things) and to build your knowledge to expand it to other applications.

In this tutorial i will discuss how to connect Raspberry Pi device with laptop and after installing hardware i will discuss how to setup raspbian OS

How to Connect a Raspberry Pi to a Laptop Display

After setting up your SD Card, insert it into the raspberry pi. … Also connect yourraspberry pi to the laptop via an ethernet cable. And connect the keyboard & mouse to it. Now, connect the HDMI display (the HDMI is only required for running the pi for the first time).

Installing Raspbian OS with Mac or Windows

To install Raspbian, you will need to write the operating system image file onto the SD card.

Start by uncompressing the ZIP file you downloaded from raspberrypi.org. To do this from a Mac, install The Unarchiver and double-click the ZIP file. From Windows, right-click the file, select Extract All, choose a destination for the extracted files and click Extract.

After it’s done unzipping, it’s time to write the image.

For MAC OS

  • Open Terminal by locating the app in Launchpad or by pressing command + spacebar and searching for the app in Spotlight.
  • Change the directory you’re working in to the location of the extracted image. For example, if you extracted the Raspbian image to your desktop, type cd Desktop/ and press enter.
  • Identify the disk by typing diskutil list and pressing enter. Look for the name of the SD card you’re using (it will appear the same in Terminal as it does on the desktop) and locate its identifier, which will look something like disk2 or disk3, depending on how many devices you have connected to your Mac.
  • Make sure you have the right storage device identifier and type the command diskutil unmountDisk /dev/[disk identifier] and press return. The command should look something like diskutil unmountDisk /dev/disk2.
  • Finally, write the image to the disk using the command sudo dd bs=1m if=[image].img of=/dev/r[disk identifier] and press return. The complete command will look something like sudo dd bs=1m if=2016–03–18-raspbian-jessie.img of=/dev/rdisk2. You will need to enter the administrator password to your computer and press enter once more.

For Windows OS

The process for Windows is a bit more straightforward. You will first need to download Win32 Disk Imager from SourceForge.

  • Once Win32 Disk Imager is installed, run it as an administrator by right-clicking the program icon and selecting Run as administrator.
  • Select the image file you extracted from the Raspbian ZIP file.
  • Select the correct storage drive by choosing the drive letter in the dropdown menu below Device. Be completely certain you selected the correct drive before proceeding.
  • Click Write.

This process will take several minutes to complete, but once the image is finished writing to the the SD card, you can eject the drive, insert it into the Raspberry Pi and power it on.

The first boot will take longer than usual, but you will have a working version of Raspbian installed.

--

--

Roktim Sazib
Oceanize Lab Geeks

Hi i’m Roktim Sazib from Bangladesh. Sr.front end developer at Oceanize Inc.I have 6 year experience in this field