Tag Archives: python

Raspberry PI: Connecting a Neo-6M  GPS Module

Neo-6M GPS Module
www.pdf24.org    Send article as PDF   

I built a project using a Neo-6M  GPS Module with the Raspberry PI. Now there are several USB solutions, and apps that work with them, but I wanted to show how to use a $20 GPS module with a a serial UART, and Python code to decode the NMEA strings. Then you can write your own GPS interface, or combine the data with Google Maps.

Hardware Setup:

The first step is to connect the GPS module to the Raspberry PI. There are only 4 wires involved, so it’s a simple connection.

Run a Program On Your Raspberry Pi At Startup

www.pdf24.org    Send article as PDF   

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 “Safe Shutdown” Button for Raspberry Pi

Shutdown Button
www.pdf24.org    Send article as PDF   

Pulling the power to your Raspberry Pi can cause image corruptions & other issues that can damage your Pi! In this article, we will create a small push button that will work as a ‘Safe-Shutdown’ option. We’ll connect it to our Raspberry Pi using the GPIO pins and some jumper wires, and with a few lines of code, we will have our own power switch!

First, we are going to look at a simple way to wire a button to the Pi GPIO connector. We will then write a python script that will shut down the Pi safely. The final step will be to setup the Pi so that the button will work all the time. Let’s Get started!

WS2812 Addressable LEDs: Raspberry Pi Quick-start Guide

www.pdf24.org    Send article as PDF   

This tutorial is aimed at getting some instant gratification from your WS2812 LEDs (trade name: neopixels). I’ll briefly cover a bare-bones setup for Raspberry Pi.

If you’ve never used a Raspberry Pi before, we’ve got you covered with our free, online Raspberry Pi How-To’s.

Programming the BeagleBone Black with Python

www.pdf24.org    Send article as PDF   

Building a surveillance system with a PIR sensor, the BeagleBone Black and Python.

The BeagleBone Black is an outstanding tool for projects that involve the Internet. Access is easy (simply connect it to the router through an Ethernet cable ), and both Python and JavaScript feature libraries that greatly simplifies matters.

Setting up IO Python Library on BeagleBone Black

www.pdf24.org    Send article as PDF   

by Justin Coopärs


The BeagleBone Black is unique in that it has quite a few pins that are available on easy to use pin headers, as well as being a fairly powerful little system. There are 2 x 46 pins available (well, not all of them are, but we’ll get to that later) to use.

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