Category Archives: Raspbian

Interfacing the Neo-6M GPS Module & Raspberry Pi with LCD Readout

One of the coolest embedded platforms like the Raspberry Pi has given makers and DIYers the ability to get location data easily using GPS module and thus build things that rely on location. With the amount of power packed by the Raspberry Pi, it certainly will be quite awesome to build GPS based projects with the same cheap GPS modules and that is the focus of this post. Today in this project we will Interface GPS module with Raspberry Pi 3.

The goal of this project is to collect location data (longitude and latitude) via UART from a GPS module and display them display on a 16×2 LCD, so if you are not familiar with the way the 16×2 LCD works with the Raspberry Pi, this is another great opportunity to learn.

Streaming Video with the Raspberry Pi Zero W & Pi Camera

IR-CUT Camera Module
I needed a really tiny yet cheap camera so I thought of the Raspberry Pi Camera module. The Version 2 Camera Module does 8MP with good quality, although a 5MP  IR-Cut Camera better suited my needs.

About the IR-CUT Camera

The IR-CUT Camera works on Normal Mode by default. There are two ways to toggle between Normal Mode and Night-vision Mode.

1. By editing the config.txt<code> file:

and append:

exit with save and restart your Pi then the camera will work on Night-vision Mode.

Run a Program On Your Raspberry Pi At Startup

The method that I usually use to run a program on your Raspberry Pi at startup is to use the file rc.local. In order to have a command or program run when the Pi boots, you can add commands to the rc.local file. This is especially useful if you want to power up your Pi in headless mode (that is without a connected monitor), and have it run a program without configuration or a manual start.

Editing rc.local

On your Pi, edit the file /etc/rc.local using the editor of your choice. You must edit it with root permissions:

Add commands to execute the python program, preferably using absolute referencing of the file location (complete file path are preferred). Be sure to leave the line exit 0 at the end, then save the file and exit. In nano, to exit, type Ctrl-x, and then Y.

Make a Raspberry Pi into a Anonymizing ‘TOR’ Proxy!

Tor + Onion + Raspberry Pi

TOR: The Onion Router is software that enables you to use the internet anonymously. By setting up TOR on a Raspberry Pi you can create a network router that scrambles all of your internet connection.

Turning a Raspberry Pi into a TOR Router has suddenly become much more appealing with Governments changing laws enabling ISPs to track customer internet usage, and selling on the data to advertising companies.

Use a Raspberry Pi to set up a TOR Network Router. I choose a Raspberry Pi 3 specifically because it has built-in wireless networking (the Pi Zero W would work well in this regard too).

The Raspberry Pi connects to the TOR network. All you have to do is then connect the Raspberry Pi to your broadband network, and connect your device to the Raspberry Pi.

Raspberry Pi as a Hotspot/Access Point using ‘DHCP’

Raspberry Pi as Wireless Access Point

The Raspberry Pi can be used as a wireless access point, running a standalone network. This can be done using the inbuilt wireless features of the Raspberry Pi and even the Raspberry Pi ‘Zero W’, or by using a suitable USB wireless dongle that supports access points.

Note that this documentation was tested on a Raspberry Pi 3, and it is possible that some USB dongles may need slight changes to their settings. If you are having trouble with a USB wireless dongle, please check the forums.

In order to work as an access point, the Raspberry Pi will need to have access point software installed, along with DHCP server software to provide connecting devices with a network address. Ensure that your Raspberry Pi is using an up-to-date version of Raspbian is “Stretch“, or better (e.g. 2018-06-27-raspbian-stretch-lite.img).

VPN Server: Build Your Own Virtual Private Network

In this tutorial, I will be going through the steps on how to setup a Raspberry Pi VPN server using the OpenVPN software. I will also go into setting up various things you must do to ensure that your connection is as secure as possible by setting up encryption keys.

This can be a bit of a long process, but it is a relatively simple tutorial to follow, and shouldn’t require any extra interaction once it has been configured.

Using a Raspberry Pi is a cheap way of setting up a virtual private network (VPN) that can stay online 24/7 without consuming a large amount of power. It’s small and powerful enough to handle a few connections at a time making it great for private use at home.

VPN’s are an incredibly useful network tool that can allow you to gain access to encrypted and secure internet traffic even when you are utilizing public Wi-Fi.

Using PlayStation3 Controllers with the Raspberry Pi

Controller-Joystick-PS3
If you have ever tried to utilize a PlayStation controller with the Raspberry Pi, you may have found it’s not very simple to do. The Raspberry Pi PlayStation controller guide will walk you through the process of setting up and connecting both PlayStation3 controllers and PlayStation4 controllers.
For PlayStation3 (PS3) controllers,I show you how to install the Six-pair Software and utilize it to set up your PS3 controller so it can connect to whatever Bluetooth device you are using on your Raspberry Pi.

In this PS4 controller tutorial we walk you through the process of pairing it with the Raspberry Pi’s Bluetooth and also offer alternative solutions if your controller doesn’t work with the standard Bluetooth stack. You can also set up Xbox controllers on the Raspberry Pi, as well as several other types of game controllers.

Setting up controllers is the perfect way to have your Pi ready to play some games. You might also be interested in using the controllers in other Raspberry Pi projects that make use of a gamepad.

Compile VLC Player with Hardware Acceleration

VLC media player

Thanks to a post on the Raspberry Pi Foundation’s Message Board, where people have detailed the instructions on how to easily compile VLC Media Player with Hardware Acceleration. For this project, you’ll just need a Raspberry Pi and the basic peripherals: a power source, screen, keyboard and mouse, and microSD card (you need all of this to get Raspbian Installed in the first place, anyway).

Before we begin, a quick note for those of you who already have Raspbian, and may have installed VLC Media Player from Raspbian’s repositories: I recommend that you remove that version. You can do so by running the command:

Raspberry Pi “Zero”: HDMI Monitors Has NO SIGNAL

Raspberry Pi Zero
When connecting a Raspberry Pi ‘Zero’ for the first time to a TV monitor with HDMI, and receive the message: “No Signal”. I tried it on several inputs and cables with no luck. Other devices work fine with the TV, and the cables so there can not be the problem. Then I tried a computer monitor with HDMI, also with no luck. What is happening?

I’ve investigated the problem for a couple of hours, before finding the solution.

The Raspberry Pi ‘Zero’ outputs a relatively weak HDMI Signal. Some devices may not immediately notice the Raspberry Pi ‘Zero’s HDMI Signal, or may not go through the negotiation process.

Banish Advertising From Your Whole Network with Pi-Hole

Pi-Hole_admin_interface

What is Pi-Hole?

Pi-Hole is a Linux network-level advertisement and internet tracker blocking application which acts as a DNS sinkhole (And optionally a DHCP server), intended for use on a private network. It is designed for use on embedded devices with network capability, such as the Raspberry Pi, but can be used on other machines running Linux and cloud implementations.
Pi-Hole has the ability to block traditional website adverts as well as adverts in unconventional places, such as smart TVs and mobile operating system adverts.

The Pi-hole project was created by Jacob Salmela as an “Open Source” alternative to the AdTrap.

How to Multi-Boot Your Raspberry Pi with “BerryBoot”

boot-multiple-operating-systems-raspberry-pi-with-berryboot
If you want to spend less time swapping cards and more time playing with your Raspberry Pi, installing the BerryBoot multi-boot manager makes it dead simple to boot multiple operating systems from one SD card. Read on as we walk you through the process.

Why Do I Want to Do This?

BerryBoot is a boot management tool for the Raspberry Pi that adds quite a bit of functionality to the Raspberry Pi experience. The biggest benefit is that it allows you to boot more than one operating system off the SD card. You can store the operating systems either on the card itself or, if you want more room, you can configure BerryBoot to use the SD card only as a launcher and to run the operating systems off an attached hard drive.

Boot Raspberry Pi from a USB Mass Storage Device

boot-multiple-operating-systems-raspberry-pi-with-berryboot
By default, the Raspberry Pi boots from a microSD card. But since the release of the Raspberry Pi 3, new Pis have been able to boot from a USB mass storage device as well. Making that happen is a pretty easy thing to do, and it’s the subject of this how-to.
A word of warning: the new boot mode is in its experimental stage, so it might not work with your USB stick or hard drive. According to the Raspberry Pi Foundation, a couple of non-working examples are the Kingston DataTraveler 100 G3 32 GB and the Verbatim PinStripe 64 GB. The USB compatibility issue will only affect some of us, but the next warning is relevant to us all: setting the boot mode is permanent. With that said, this sounds much scarier than it is: your Pi will still boot preferentially from the microSD card, if one is plugged in.

How to install “Raspbian” on the Raspberry Pi

A lot of our tutorials here on The Pi start the same way – with a link to this one. That’s because a huge number of great Raspberry Pi projects start with installing Raspbian on the Raspberry Pi. Raspbian is the Raspberry Pi’s most popular operating system, a spin off of the Linux distribution Debian that works well on the Raspberry Pi’s hardware.

Raspbian is a competent and versatile operating system that gives your Raspberry Pi all the comforts of a PC: a command line, a browser, and tons of other programs. You can use a Raspberry Pi running Raspbian as a cheap and effective home computer, or you can use it as a springboard and turn your Raspberry Pi into any of countless other functional devices, from wireless access points to retro gaming machines. Here’s how to install Raspbian on the Raspberry Pi.



Do NOT follow this link or you will be banned from the site!