Displaying Time with a 4-Digit 7-Segment Display

There are many sensors which can detect certain parameters from the real time world and transfer it to a digital world and we analyse them viewing them either in a LCD screen or some other display. But, it would always be not economical to use a LCD screen with PI for displaying small amount of data. This is where we codefer to use 16×2 Alphanumeric LCD display or the 7-Segment display. We have already learnt how to use a Alphanumeric LCD and a single segment 7-segment display with Raspberry pi. Today we will Interface 4-digit Seven Segment Display Module with Raspberry Pi and display Time over it.

Although 16×2 Alphanumeric LCD is much more comfortable than 7-segment display, there are few scenarios where a 7-segment display would come in handier than a LCD display. LCD suffers from the drawback of having low character size and will be overkill for your project if you are just planning to display some numeric values. 7-segments also have the advantage against poor lighting condition and can be viewed from lager angles than a normal LCD screen. So, let us start knowing it.Read More

Writing Your First Script with Raspberry Pi

In this tutorial we’ll be writing our first bash script for Raspberry Pi. We’ll create a directory to keep this and future scripts, write the actual script, and set it up as something that can be executed from the shell.

Scripts are an incredibly powerful tool to have in your toolbox. In essence, a script is just a sequence of commands that you could otherwise have entered into the shell. The power of scripts is that they can be used to make decisions, and execute certain commands based off that decision. Scripts can be scheduled to run at certain times, and can execute trigger other scripts.

In this tutorial we’re assuming you’re familiar with how to use the terminal to navigate the file system and create files and directories.Read More

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:
sudo nano /etc/rc.local
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.Read More

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