In the previous tutorial, we successfully set up a Raspberry Pi Linux desktop. Let us now start learning Python. We could have jumped right to controlling hardware using Python scripts, but this will defeat the very purpose of using Raspberry Pi and a Very-High-Level-Language (VHLL) like Python to control electronics. We can easily control electronics…
RPi Python programming 04 – Setting up Raspberry Pi Linux computer
In the previous article, we discussed the role of an operating system. We explored about Linux as a popular open-source operating system that can be used and modified to be used for desktop, mobile, server, cloud, mainframe, supercomputer, cluster, and embedded computing. Raspbian, the official OS for the Raspberry Pi itself is based on Debian…
RPi Python Programming 03 – Raspberry Pi as Linux System
In the previous article, we discussed various Raspberry Pi models. We also discussed situations in which particular models deem suitable. Most of the time, you will be using RPi as a Linux computer. Raspbian, the official operating system for Raspberry Pi itself is a variant of Debian OS (a Linux Distribution). There are other operating…
RPI Python Programming 02 – Raspberry Pi Models
In the previous tutorial, we discussed what Raspberry Pi is, operating systems we can run on it, programming languages that can be used with it, the advantages and limitations of Raspberry Pi, and what Raspberry Pi can be used for. We also learned about other single board computers comparable to the RPi. The following models…
RPi Python Programming 01 – Introduction to Raspberry Pi 4
Raspberry Pi is a credit-card-sized single-board computer developed by Raspberry Pi Foundation. It was developed as a low-cost microcomputer to impart computer skills to school children. It comes without any power supply or peripherals, and it is supposed to be programmed in Python — the reason for the ‘Pi’ in its name. Raspberry Pi (RPi)…
Web Controlled LCD Display- (Part 9/12)
We will make a straightforward web application with a frame that permit a client to send a message to the Raspberry Pi utilizing Flask in a web browser. This will permit us to control the Raspberry Pi from a PC, tablet or smart phone. At the point when the form is submitted, it will send the message to the LCD by means of the Raspberry Pi’s GPIO ports. All the code, including the web application, is in Python and HTML.
Web controlled Home Automation- (Part 11/12)
The Wiring Pi project is used here to switch the GPIO pins high and low. Run the following commands for downloading Wiring Pi and install.
Web Server using Python- (Part 8/12)
In this project the Raspberrypi board is booted with the Ubuntu OS and is connected to the Ethernet port of a Windows7 PC. The board is connected to the internet connection as explained in the project Connecting the Raspberrypi to the internet. The IP address of the Raspberrypi board has been obtained to remote login in the TUI using the PUTTY and is remotely accessed using VNC.In this tutorial we use a Python web framework called Flask to create a dynamic web server in Raspberry Pi. While there’s a lot you can do with Flask “out of the box,” it also supports many different extensions for doing different operations such as user authentication, generating forms, and using databases.
Optical Character Recognition Robot- (Part 12/12)
In this project, our ultimate goal is to find and solve the different requirements in making a web controlled robot that recognizes and converts textual messages placed in real world to the computer readable text files. Our objective is to integrate the appropriate techniques to explain and prove that such capability, using their limited hardware and software capabilities and not to develop new character recognition algorithms or hardware for doing that.
Snake game- (Part 6/12)
In this project a Raspberry Pi board is booted with Ubuntu OS and is connected to the Ethernet port of a Windows7 PC. The board is connected to the internet as explained in the project how to connect the Raspberry Pi to the internet. The IP address of the Raspberrypi board has been obtained to remote login in the TUI using PUTTY and is remotely accessed using VNC.
Raspberry Pi to Light a Led using Voice Control- (Part 2/12)
Now voice control is not only limited to high end devices such as smart phones or iPhones. The Raspberry Pi, which is an open source hardware and completely customizable offers you the same. Plus, it’s cheap! You can customize it to play music, open gmail or maybe tell you some jokes.Here is a simple yet interesting example on how to customize your Raspberry Pi to light a led using voice control. In this tutorial we will learn how to install Voice Command, and making the configuration to turn a Led on and off.
Transferring Files from a Windows PC to Raspberry Pi- (Part 5/12)
This article is to make the process of transferring files from a Windows PC to Raspberry Pi easier. The Raspberry Pi is connected to a Windows PC through Ethernet cable and the GUI is obtained using a VNC server. Sharing files between Raspberry Pi and Windows is often very useful for Raspberry Pi users. Whether we need to transfer media files to the Raspberry Pi or want to share some software packages. This article discusses how to enable file sharing for a folder on the Raspberry Pi running the Raspbian OS.Microsoft developed the protocol called Common Internet File System (CIFS) for transfer of files between windows machines. The most popular implementation of CIFS in LINUX system is known as Samba and it allows Raspberry Pi to act as a CIFS file server, which allows a Windows PC to mount a folder on a Raspberry Pi and then allowing to modify(copy, delete, read and write) the files on it.
Streaming Videos using Webcam- (Part 10/12)
This article is to provide step by step instructions for making Raspberry Pi as a webcam server where we can live stream video over a local network using python scripts and some required packages. A software package used in this tutorial is Motion which is an open source software with a number of configuration options which can be changed according to our needs. Here configurations are to be made so that it allows you to create a remote webcam for your Raspberry Pi so that you can view it from any computer on the local network.
Setup Apache Web Server- (Part 4/12)
This article is to provide step by step instructions for making Raspberry Pi as a web server where we can publish our web pages over local network. Apache is a prevalent web server application you can introduce on the Raspberry Pi to permit it to serve pages. All alone, Apache can serve HTML documents over HTTP, and with extra modules can serve element website pages utilizing scripting tools, for example, PHP. The fundamental services which are required to turn your Raspberry Pi into a web server are, Apache (the web server itself), PHP (scripting language).
How to run a python code on boot- (Part 7/12)
This article is to provide step by step instructions to run a Python code in the boot of Raspberry Pi automatically. Sometimes we may want to run a Python script when Raspberry Pi boots up, like Webserver applications need an auto start of the server so that remote access is possible. There are a number of different techniques to do this, one of those is crontab. A crontab is a job scheduler that allows the system to perform tasks at defined time or intervals. It is a very powerful tool and useful in lots of situations. You can use it to run commands in the boot or a python script in this case.
How to Connect Raspberry Pi to WiFi- (Part 3/12)
This article is to make the procedure of setting up the WiFi. The Raspberry Pi is connected to Windows PC through Ethernet cable and the GUI is obtained using a VNC server. Although Raspberry Pi Model B comes with 100Mbps wired Ethernet, it is also essential to connect WiFi.The best arrangement is to purchase a cheap USB WiFi connector and utilize one of the USB ports to get to our WiFi home router. Setting up a Raspberry Pi utilizes the Raspbian OS to get to your remote system is simple – This article will guide you through the procedure.
How to configure Scratch GPIO- (Part 1/12)
Scratch is a programming tool for creating embedded games,stories and animations without using any written codings, rather using visually organized syntax which is in blocks with a drag-and-drop interface. One can use these blocks according to one’s requirement, scratch’s control of hardware is not only limited to the external inputs such as the keyboard and mouse.This article explains how to configure Scratch to extend its power to access GPIO(General Purpose Input and Output) of the Raspberry Pi.
How to Use Raspberry Pi as a Game Server- (Part 35/38)
In this particular project Ubuntu is installed on Raspberry pi board and is loaded on the Raspberry pi board and is connected to a router using a cross-over LAN cable. Hence the only additional hardware required with the Raspberry pi for this project is a LAN cable only.Once connected to the router with Ubuntu OS on it, it can be accessed remotely from other systems connected in same LAN network. The board can be accessed from a Linux PC using the secure shell which is enabled in the Ubuntu of Raspberry pi board.This article focus on how to configure the Raspberry pi board as a web server and the technique to make it serve a graphical game for those who type the IP or address of the Raspberry pi board from the address tab of their web browser. The Raspberry pi web server is available in the same LAN network or it can be made available to anyone who has the internet connectivity using the technique of port forwarding.
How to Add Sound to Raspberry Pi Game Pad- (Part 37/38)
The gamepad is a simple circuit built on a breadboard with few buttons, LEDs and a resistor array. There are eight general purpose IO pins on the 13*2 pin connectors of the Raspberrypi board and among them four pins has been selected as input and then remaining four pins as output. The input pins are connected to push button and are pulled down using 1K resistors. The output pins are connected to the LEDs through another set of 1K resistors. For this project the Raspberry pi board is loaded with Ubuntu and is remotely accessed using VNC. To access the pins that coming out of the Broadcom controller the C library “bcm2835” has been downloaded and installed. This article focuses on how to add sound to a game that is coded to be played with a Raspberry pi gamepad.
Simple Raspberry Pi Game Pad for Ball Catching Game – (Part 36/38)
Raspberry Pi is provided with a RCA connector which can be used to connect it directly to a TV screen which is based on PAL and NTSC standard. The board also has a HDMI connector output which can be used to connect the board to a HD TV. One can also use remote login to access the Raspberry pi and view the GUI (Text User Interface) on the PC screen. The Raspberry pi board is also very easy to interface with external devices or circuits through its pin outs. This makes the Raspberry pi a suitable platform for playing and developing interesting games.This article discusses how to develop a simple graphical game using the HTML5 and JavaScript language and to interface it with an external custom made game pad hardware connected to the pins of Raspberry pi board.