An Introduction to the Raspberry Pi

by Dec 18, 2018Raspberry Pi


Raspberry Pi 3B+ Model

The Raspberry Pi is also known as RPi is a small, “Single Board Computer” (SBC) developed in the United Kingdom by a charity called Raspberry Pi Foundation. Their main aim is to educate basic computer science in developing countries.

They had released several generations of Raspberry Pi.

  •  Raspberry Pi Model B (First generation) – February 2012
  • Raspberry Pi Model A – February 2013
  • Raspberry Pi Compute Model- April 2014
  • Raspberry Pi Model B+ – July 2014
  • Raspberry Pi 2 – February 2015
  • Raspberry Pi Zero- November 2015
  • Raspberry Pi 3  Model B – February 2016
  • Raspberry Pi Zero W – February 2017
  • Raspberry Pi 3 Model B+ – March 2018

The Raspberry Pi was first released on 29 February 2012 with an introductory price of US$35. The System On Chip (SoC) used is Broadcom BCM2837B0 and compatible with plenty of Operating Systems such as Linux, FreeBSD, NetBSD, OpenBSD, Plan 9, RiscOS and Windows 10 IoT Core. The Raspberry Pi 3+ uses a Broadcom BCM2837B0 SoC with a 1.4 GHz 64-bit quad-core ARM Cortex-A53 processor, with 512 KB shared L2 cache. Besides, it comes with a 40 pin General Purpose Input Output (GPIO) connector. The Keyboard and mouse can be connected with the USB, and other components such as sensors can be connected with the GPIO pins. The RPi has no built-in real-time clock, so it cannot track the time of the day. It comes with lots of accessories like Camera, SenseHat ( has lots of built-in sensors), Gertboard, Official Display and so on.  


Anatomy of Raspberry Pi 3 B+ model

HARDWARE SPECIFICATIONS

The Raspberry Pi 3B+ model was launched in March 2018, comes with a CPU, GPU, USB ports, 40 pin header (GPIO pins), WiFi, Bluetooth, POE (Power over Ethernet). The CPU has an Arithmetic Logic Unit (ALU) and a control unit and the primary storage is the Memory.  A GPU (Graphics Processing Unit) is nothing but a specialized circuit that is very efficient at processing images and computer graphics, better than a CPU. This kind of design that packs all the components required to power a computer onto a single chip is called System on Chip (SoC). Nowadays, SoCs are implemented into Smartphones and Tablets. The System on Chip has both CPU and GPU combined together in this model to give enormous speed compared to the previous versions. At the back side of the Raspberry Pi, there is a slot allocated for the Secondary Storage, where you will be installing your OS.

CPU and GPU

A CPU is always considered to be a brain of a computer, and it works same for Raspberry Pi too. It has a 64-bit capacity and is responsible for arithmetic and logical units. It also comes with a control unit. The GPU ie, the Graphics Processing Unit is very efficient in image calculation and processing. The Broadcom video core cable is included in the device for video games.

Clock Speed and Memory

The Raspberry Pi comes with a quad-core ARM Cortex A53 and a RAM memory (Primary) of 1 GB. It consists of a clock speed of 1.4 GHz Broadcom BCM2837B0.  At the back side of the Raspberry Pi, there is an additional slot is given for the secondary memory, this takes in a micro SD card, similar to which all the cameras and smartphones use for their additional storage. You will be installing the OS in the SD card. It’s better if you use 16 GB or 32 GB memory, because the OS will be taking more space. If there is anything wrong with the Raspberry Pi, you can replace the SD card with new OS installed. Or else, you can keep many SD cards with installed OS, so that you no need to download and copy in the card again.

LEDs

There are two LEDs in the device, one is red and another one is green. The red LED indicates the on/off of the Pi whereas, the green LED reads the software in the SD card. So, when you have the OS installed in secondary memory ie, in the given slot, the green LED blinks, if not then there is a fault in your SD card. You can simply replace the card with new OS installed in that.

Micro USB 2.0 Power source Connector

The RPi consists of a micro USB for power source, which you use for smartphones. It provides 5 V power to the board and it draws 170 to 200 mA which is more power than the previous version of the model.

Other specifications

  • The Raspberry Pi consists of an Ethernet, through which you can connect with LAN cable to your modem/ computer/ laptop.
  • There are 4 USB ports in this model to provide a connection to the peripherals such as mouse, keyboard, etc
  • An HDMI output port in the RPi is used for the display when connected to monitor or screen.
  • Audio output socket and video composite reside in a single 4 pole 3.5 mm near the HDMI output.
  • It also has a Camera Serial Interface where you can connect the Raspberry Pi Camera into that via cable. It is available in the market for $20- $35.
  • PoE (power over Ethernet) is an additional feature incorporated in this device that lacks in B model.
  • The Raspberry Pi 3 B+ measures 85mm length and 56mm width same as in the B model.

What is a GPIO Pin?

Building “things” (Systems) that can respond to the world around them is called physical computing. The idea behind this physical computing is to make the “things” to communicate is to use the Sensors. These sensors cannot be directly communicated with the computer/laptops that we use everyday. There are special computers like Microcontrollers – Arduino and processors like Raspberry Pi which can communicate with those sensors by the special input-output pins called the GPIO pins (General Purpose Input Output). These pins interact with the sensors with a wide variety of input sources or the data provided by the sensor and produce an output. The output can be produced as a sound through the buzzer, start or change of speed of a motor, blink an LED or even a seven segment display.

The Raspberry Pi 3B+ model has 40 GPIO pins, unlike the Arduino the Pi has digital I/O pins. In the earlier models there were only 26 pins.

Physical Computing of GPIO Pins

Physical Computing of GPIO pins

Before we go in detail with each of the pin, we first understand how the physical computing is setup in Raspberry Pi using these GPIO pins. 

  • First thing, you should figure out what kind of input and output devices you need to compute. A light sensor or a pressure sensor can be input and whereas you need an output device to implement the results. So the output device maybe a seven-segment display or just an LED to indicate the results.
  • Understand the interface of the device like how it gives output and how it receives the input. Each pin has specific purpose, some need to be a certain voltage, etc.
  • Then connect it to the computer, say Raspberry Pi in our case and understand which GPIO pin you had to use based on the interface whether input or output.
  • Finally, write the code- configure the pin number in the code which you have chosen, when it should look for the input and at what time it should give the output. You can choose any language to write the code.

Roles of the GPIO pins

There are two numbering schemes of these GPIO pins. They are 1. BOARD and 2. BCM. The difference between these schemes is, BOARD signifies using the physical pin numbers on the Raspberry Pi P1 connector and the BCM signifies the Broadcom SoC channel designation. We will use the BOARD numbering scheme.

GPIO pins- Raspberry Pi

This is how the pins are numbered on the Raspberry Pi board. If you notice that one side of the pins, numbered even, in which some of the pins are ground pins. These are the negative terminal of the battery ie, Raspberry Pi, which will act as the 0 V or the neutral end of the circuit. There are 26 bi-directional pins that are configured as input or output which take two states HIGH (3.3 V) or LOW (0 V).

There two kind of power pins ie, it will act as positive terminal 

  • Pin number 2 and 4 – draw 5 V from the Pi’s micro USB, it can draw up to 300 mA
  • Pin number 1 and 17- draw 3.3 V and can draw only up to 50 mA

There are some pins allocated for serial communication

SPI (Serial Peripheral Interface)- 5 pins ( 19,21,23,24,26)

  • GPIO10- MOSI (Master Out Slave In)
  • GPIO9- MISO (Master In Slave Out)
  • GPIO11 – CLK
  • GPIO7 and GPIO8- CHIP select

UART (Universal Asynchronous Receiver/Transmitter)- pin number 8 and 10 – to convert parallel interface and serial interface

  • GPIO14 – UART transmitter
  • GPIO15- UART receiver

I2C Inter Integrated Circuit – there are two pins for data and clock.

  • GPIO2 – SDA (for data)
  • GPIO3- SCLK- clock

Pin number 27 and 28 can be used to connect to other hardware boards and configure the GPIO as per that need.

Pin number 12 can be used for Pulse Width Modulation functionality.

Where to buy?

You can find good piece of a Raspberry Pi board in this link! The product is by Element14 from Amazon.

Click here

Thank you for reading my article! If you have any questions or suggestions, feel free to comment below or contact me using the form. 

Creating a multiplication Skill in Alexa using python

Written By Monisha Macharla

Hi, I'm Monisha. I am a tech blogger and a hobbyist. I am eager to learn and explore tech related stuff! also, I wanted to deliver you the same as much as the simpler way with more informative content. I generally appreciate learning by doing, rather than only learning. Thank you for reading my blog! Happy learning!

RELATED POSTS

How to Setup an NGINX Server on Raspberry Pi ?

How to Setup an NGINX Server on Raspberry Pi ?

What is NGINX ? NGINX is a popular lightweight web server application you can install on the Raspberry Pi to allow it to serve web pages. In its initial release, it functioned for HTTP web serving. It is a web server that can also be used as...

FM Radio Transmitter with Raspberry Pi

FM Radio Transmitter with Raspberry Pi

We’ve all listened to the radio and sang along to the songs, atleast in the car. But have you ever found yourself switching through several channels because you couldn’t find even one song that YOU like? In this article we will learn how to build a FM radio...

Raspberry Pi Camera and its Variety

Raspberry Pi Camera and its Variety

Choosing a suitable raspberry pi camera for your projects can get really difficult. RPI camera v1, RPI camera v2, RPI NOIR camera, and the list continues. Each one has different properties and should be used according to them. They have been used in various fields and...

WiFi extender using Raspberry Pi

WiFi extender using Raspberry Pi

It is always useful to know how to use your Raspberry Pi in pet projects that are actually useful around the house. Especially when you aren’t building something new – using your dormant Raspberry Pi to build useful devices around the house is a fun idea. If you are...

Using Raspberry Pi as various Servers

Using Raspberry Pi as various Servers

Raspberry Pi is a widely popular SoC, that is versatile and easy to use for even beginners. If you are new and are unfamiliar with Pi, take a look at these articles. Regardless of the model of Raspberry Pi you have, I am sure you have discovered a plethora of projects...

SQLite Database on Raspberry Pi

Welcome to another tutorial on Raspberry Pi. In this tutorial, we will see how to use the SQLite Database on Raspberry Pi. Apart from the installation and a few basic commands, in the end, we shall look at a simple project to log sensor data into an SQLite database....

Mosquitto MQTT Broker on Raspberry Pi

This tutorial will show you what is Mosquitto MQTT Broker and how to install it on Raspberry Pi. Contents What is MQTT?Installing Mosquitto MQTT on Raspberry PiCreating an MQTT Broker on Raspberry PiSubscribe to a TopicPublish a message to a TopicSample...

Evolution of the Raspberry Pi – A Comparison

Evolution of the Raspberry Pi – A Comparison

The Raspberry Pi is an inexpensive credit card-sized micro-computer. The Raspberry Pi was originally designed as a way to teach how computers work and the rest of computer science in general. It was originally developed in the UK by a team that included Eben Upton,...

Recording audio on your Raspberry Pi

Recording audio on your Raspberry Pi

Raspberry Pi can record and playback fairly good quality audio through its USB 2.0 ports. For recording audio and playback we need two peripheral devices, a USB microphone, and a speaker. You can choose to use a USB speaker, or a speaker with a 3.5mm sound jack....

Tutorial: Dropbox with Raspberry Pi

Tutorial: Dropbox with Raspberry Pi

Many Raspberry Pi projects require synchronization of files over more than just one device. Dropbox, which is a popular file-hosting service, can be used for this with ease. Synchronizing data between different devices may seem a little tricky, especially since the...

VIDEOS – FOLLOW US ON YOUTUBE

EXPLORE OUR IOT PROJECTS

IoT Smart Gardening System – ESP8266, MQTT, Adafruit IO

Gardening is always a very calming pastime. However, our gardens' plants may not always receive the care they require due to our active lifestyles. What if we could remotely keep an eye on their health and provide them with the attention they require? In this article,...

How to Simulate IoT projects using Cisco Packet Tracer

In this tutorial, let's learn how to simulate the IoT project using the Cisco packet tracer. As an example, we shall build a simple Home Automation project to control and monitor devices. Introduction Firstly, let's quickly look at the overview of the software. Packet...

All you need to know about integrating NodeMCU with Ubidots over MQTT

In this tutorial, let's discuss Integrating NodeMCU and Ubidots IoT platform. As an illustration, we shall interface the DHT11 sensor to monitor temperature and Humidity. Additionally, an led bulb is controlled using the dashboard. Besides, the implementation will be...

All you need to know about integrating NodeMCU with Ubidots over Https

In this tutorial, let's discuss Integrating NodeMCU and Ubidots IoT platform. As an illustration, we shall interface the DHT11 sensor to monitor temperature and Humidity. Additionally, an led bulb is controlled using the dashboard. Besides, the implementation will be...

How to design a Wireless Blind Stick using nRF24L01 Module?

Introduction Let's learn to design a low-cost wireless blind stick using the nRF24L01 transceiver module. So the complete project is divided into the transmitter part and receiver part. Thus, the Transmitter part consists of an Arduino Nano microcontroller, ultrasonic...

Sending Temperature data to ThingSpeak Cloud and Visualize

In this article, we are going to learn “How to send temperature data to ThingSpeak Cloud?”. We can then visualize the temperature data uploaded to ThingSpeak Cloud anywhere in the world. But "What is ThingSpeak?” ThingSpeak is an open-source IoT platform that allows...

Amaze your friend with latest tricks of Raspberry Pi and Firebase

Introduction to our Raspberry Pi and Firebase trick Let me introduce you to the latest trick of Raspberry Pi and Firebase we'll be using to fool them. It begins with a small circuit to connect a temperature sensor and an Infrared sensor with Raspberry Pi. The circuit...

How to implement Machine Learning on IoT based Data?

Introduction The industrial scope for the convergence of the Internet of Things(IoT) and Machine learning(ML) is wide and informative. IoT renders an enormous amount of data from various sensors. On the other hand, ML opens up insight hidden in the acquired data....

Smart Display Board based on IoT and Google Firebase

Introduction In this tutorial, we are going to build a Smart Display Board based on IoT and Google Firebase by using NodeMCU8266 (or you can even use NodeMCU32) and LCD. Generally, in shops, hotels, offices, railway stations, notice/ display boards are used. They are...

Smart Gardening System – GO GREEN Project

Automation of farm activities can transform agricultural domain from being manual into a dynamic field to yield higher production with less human intervention. The project Green is developed to manage farms using modern information and communication technologies....