Raspberry Pi: Changing the Hostname

This is a tutorial on how to change the hostname of your Raspberry Pi.

If you usually do an IP Address scan whenever you  connect your Raspberry Pi to a new WiFi network to find it then you should change the hostname of your Raspberry Pi. This is for you not to get confused when there are two Raspberry Pi’s connected to the network. At least you an select the right Raspberry Pi.

Just so you know the default hostname of the Raspberry Pi is raspberrypi.

Changing the Hostname of your Raspberry Pi

There are two ways to change this.

Changing the hostname of the Raspberry Pi
My Raspberry Pi on desktop setup.

Continue reading Raspberry Pi: Changing the Hostname

Raspberry Pi: Installing Raspbian Without a Monitor or Keyboard

Here is a tutorial on how you can setup Raspberry Pi without a mouse or a keyboard.

Most of us today only have laptops. We do not own a monitor nor a keyboard. But that should not stop you from trying Raspberry Pi. You can actually setup and use a Raspberry Pi without the monitor or a keyboard.

Note: I also find it annoying to setup a lot of wires just for the monitor and keyboard.

Here are the things you need to setup and use the Raspberry Pi without a screen or keyboard.

  • Raspberry Pi
  • microSD Card (minimum of 8GB)
  • Ethernet Cable
  • Power cable (standard USB cable for charging Android phone with charger)
  • A computer

For this tutorial I’ll be using Raspberry Pi 3 and my computer is running on Windows 10. My SD Card size is 8GB. Maybe I’ll create a tutorial when I am using my Ubuntu (Linux).

Below are the steps to setting up your Raspberry Pi without a screen or keyboard.

1. Download Raspbian Image from Raspberry Pi Downloads.

Raspbian Download Page - Setup Raspberry Pi without a Monitor or Keyboard

It’s up to you if you want to download the Raspbian Jessie with Pixel (desktop) or Raspbian Jessie Lite (for minimal installation).

For this example I will be using the Raspbian Jessie with Pixel. But if you want to install the Raspbian Jessie Lite the steps would be the same.

Note: The name Jessie changes for every major upgrade of Raspbian. The name before it was Wheezy. Continue reading Raspberry Pi: Installing Raspbian Without a Monitor or Keyboard

Raspberry Pi: PWM in GPIO (Python)

This is a tutorial on how to implement Pulse Width Modulated (PWM) in Raspberry Pi 2 and 3 using Python.

Since the Raspberry Pi 3 uses the BCM2837 and currently I could not find the specification sheet of BCM2837. I shall assume that the GPIO for the BCM2837 and the BCM2835 (Pi 2) are the same since the Pi 2 and Pi 3 Model B looks the same. I will use the Specification Sheet of the BCM2835 for reference.

I’ll check slowly check if there’s a difference among the two in terms of GPIO.

Raspberry Pi PWM

Continue reading Raspberry Pi: PWM in GPIO (Python)