© Joseph Coburn 2020
J. CoburnBuild Your Own Car Dashboard with a Raspberry Pihttps://doi.org/10.1007/978-1-4842-6080-7_1

1. Raspberry Pi History

Chapter goal: Learn about the main Raspberry Pi boards and their (brief) history. Understand the key differences between different Pi models, and why certain features were introduced.
Joseph Coburn1 
(1)
Alford, UK
 

First introduced in 2012, the Raspberry Pi has seen five major version releases across 13 form factors. Dozens of derivatives and knockoff clones exist, and a huge number of different modules, accessories, cases, and projects exist to help you use the ultimate tech tool. I’ve personally used Raspberry Pis to build business operation dashboards and display real-time server statistics and for face recognition and identification with OpenCV, retro gaming stations with RetroPie, video streaming, CI/CD deployment servers, and much more. Their small form factor, cheap price, and modest energy consumption features lend themselves perfectly to these kinds of projects – and many more besides.

A Brief History of Pi

The idea for the Raspberry Pi came about after computer scientist Eben Upton grew concerned that college students lacked the necessary skills to work with computer hardware, instead focusing on software and online interactions. While working for the University of Cambridge, UK, in 2006, Eben along with colleagues Rob Mullins, Jack Lang, and Alan Mycroft developed a hand-soldered prototype which was a far cry from today’s credit card–sized computers. It wasn’t until February 2012 that Eben et al. managed to release the affordable yet powerful computer we know and love.

The Pi was developed with support from Broadcom, who designed and developed the SoC (system on a chip) processor used to power the Pi. Almost everything the Pi needs to work is built in to the system. The memory, GPU, CPU, I/O, and more are soldered into place. It’s not possible to upgrade the Pi’s components, but with regular new releases increasing the Pi’s power and usefulness, and a sale price of less than $50, few can complain about planned obsolescence.

Originally marketed with modest sales expectations, the Pi took the world by surprise, eventually going on to sell more than 30 million units. As a computer science student at the University of Lincoln, UK, I (along with all the other students on my course) was gifted a first-generation Pi by the university, with no expectation or pressure to use it and no mandatory modules requiring ownership of one. Perhaps it was hoped the Pi would spark a revolution in computer hardware design, or more likely my university wanted to support a cool project. The Pi has since become the best-selling UK computer of all time.

While there have been five main models of Pi release thus far (shown in Figure 1-1), each series saw several variations and minor specification changes – either as a midlife refresh or at launch. This allows the Pi to cater to a huge number of budgets, users, and projects. Models such as the Pi Zero are tiny, while the Pi 4 comes in three variants, each one with more RAM (and a larger price) than the previous model.
../images/488914_1_En_1_Chapter/488914_1_En_1_Fig1_HTML.jpg
Figure 1-1

Raspberry Pis, from left to right: Pi 1, Pi 2, Pi Zero, Pi 3, Pi 4

This huge flexibility helps to keep the Pi affordable, while offering higher-end features for those with the larger budgets. Note that lacking the funds to purchase a “faster” Pi doesn’t exclude someone from the best experience – most Pis retained the same processor and basic specifications across models, meaning the incremental upgrades are limited to changes such as total memory, I/O ports, and other small improvements. The Raspberry Pi has never seen an Apple style price gouge, instead opting to keep the Pi affordable. Figure 1-2 shows the Pi 4, with USB power, USB devices, and HDMI cables connected.
../images/488914_1_En_1_Chapter/488914_1_En_1_Fig2_HTML.jpg
Figure 1-2

Raspberry Pi 4 wired up

Today, the Pi is managed by two organizations. The Raspberry Pi Foundation is a charity that exists to promote the study of computer science in education. It’s a registered charity, with a board of trustees. It’s supported both by Broadcom and the University of Cambridge, UK. After the initial success of the Pi, a limited company called Raspberry Pi (Trading) LTD was created to handle the research, development, and production of all future Pis. Eben Upton is still a key driving force in both organizations today.

Raspberry Pi 1

The original Raspberry Pi was introduced in 2012 as the Pi 1 Model B (Figure 1-3). It measured 3.37 x 2.22 inches and cost $35. It didn’t have wireless networking built in, but it has one USB 2.0 port, an Ethernet port, an analog video out, 3.5mm audio out, and a full-size HDMI port. Powered by MicroUSB, this Pi has 26 GPIO (general-purpose input/output) pins for interfacing with the real world, the now standard CSI camera connection, and a DSI interface, to connect LCD displays to (in addition to the HDMI port).
../images/488914_1_En_1_Chapter/488914_1_En_1_Fig3_HTML.jpg
Figure 1-3

Raspberry Pi 1

The Model B is powered by a single-core Broadcom BCM2835 SoC processor running at 700MHz, with 256MB of RAM (shared with the GPU). The Pi 1 Model A arrived in 2013, which removed the Ethernet port. By 2014, the Model 1 A+ and B+ arrived, with a modest bump up to 512MB of RAM, a slightly lower price, and a doubling to two USB 2.0 ports, along with several miscellaneous component changes. The B+ increased the GPIO layout to the now standard 40 pins.

Raspberry Pi 2

After three years, the Raspberry Pi 2 arrived in February 2015 (Figure 1-4). Boasting four USB 2.0 ports, a slight reshuffle of the layout, and dropping the component video out, this model is the simplest in the range, simply sold as Pi 2 Model B. While there is still no support for Wi-Fi, this model quadrupled the power with a quad-core Broadcom BCM2836 SoC running at 900MHz, and another doubling of the RAM to 1GB. The form factor remained unchanged. This model was a significant step-up on the now slow and clunky Pi 1, yet kept the same $35 price.
../images/488914_1_En_1_Chapter/488914_1_En_1_Fig4_HTML.jpg
Figure 1-4

Raspberry Pi 2

Raspberry Pi Zero

In November 2015, the Pi Zero arrived and once again revolutionized the market (shown in Figure 1-5). This dropped the price to $10 per unit and drastically reduced the size to a new form factor measuring 2.59 x 1.20 inches. This model switched back to the BCM2835 SoC from the Pi 1 along with 512MB of RAM. The processor came pre-overclocked to 1GHz. This Pi saw minor I/O changes to accommodate the smaller form factor. You had to solder the GPIO header yourself, and mini HDMI and micro-USB ports kept the size small.
../images/488914_1_En_1_Chapter/488914_1_En_1_Fig5_HTML.jpg
Figure 1-5

Raspberry Pi Zero

The revolutionary device was given away for free on the cover of The MagPi magazine – another first for the Pi Foundation. I remember the launch day well, as it was a complete surprise to everyone. I managed to get a copy of the magazine and a Pi Zero on launch day, but only by pure chance. My then boss got a tip off to go buy The MagPi before work and he bought one for me – there were only two left on the shelf!

In February 2017, the Pi Zero was updated to include Wi-Fi and sold as the Pi Zero W. Since release, various combinations of Wi-Fi and pre-soldered headers arrived, offering you total flexibility in your style of pocket computer.

Raspberry Pi 3

The Pi 3 Model B launched in 2016 (Figure 1-6) saw a return to the “traditional” credit card–sized form factor. By now, the layout has stabilized with 40-pin GPIO, Ethernet, and 4x USB 2.0 ports as standard. The Pi 3 used a BCM2837 quad-core processor running at 900MHz, with 1GB of DDR2 RAM. For this first time, the Pi featured a built-in Wi-Fi receiver and a gigabit Ethernet port. This was the first model to support a 64-bit architecture.
../images/488914_1_En_1_Chapter/488914_1_En_1_Fig6_HTML.jpg
Figure 1-6

Raspberry Pi 3

The Pi 3 A+ and B+ arrived in 2018, once again bringing with them the standard removal of Ethernet, and minor spec shuffling. These models saw a slight processor change to the BCM2837B0 quad-core chip, running at 1.4GHz – a worthwhile upgrade for those craving speed.

Raspberry Pi 4

The Pi 4 Model B (Figure 1-7) is surprisingly consistent so far. Granted, it only arrived in June 2019, so it’s yet to see a minor spec bump and A+/B+ release. The Pi 4 upgraded two of the USB ports to USB 3.0 and provided two mini HDMI outputs, capable of driving 4K displays. It sports a 1.5GHz SoC in the form of the BCM2711. Three variations of the Pi 4 are available, with 1GB, 2GB, and 4GB of RAM – for an increased price of $34, $45, and $55, respectively.
../images/488914_1_En_1_Chapter/488914_1_En_1_Fig7_HTML.png
Figure 1-7

Raspberry Pi 4

The Pi 4 builds upon the vast Pi heritage curated over eight years of production, and many more of development. The Pi 4 is seriously powerful, and it starts to dwarf the earlier models – especially the Pi 1 Model B. Be it video encoding, building files from source, and any other intensive task, the Pi 4 significantly speeds up the job. The king is dead, long live the king!

Pi Cameras

Every model of the Pi (with the exception of the Zero) features a camera serial interface, or CSI port. This allows the connection of the Pi Camera – which you’ll use in the completion of the car project in this book.

The original Pi camera launched in May 2013. It measures 1 x 0.78 inches, with a flat ribbon cable, which connected to the CSI port. Priced at roughly $20, the camera was expensive when compared to the Pi itself, but it did (and still does) provide a fascinating insight into computer vision and image processing. Capable of a maximum resolution of 5MP for photos, or 1080p video at 30 frames per second, it was “good enough” for most projects.

It was shortly followed by the Pi NoIR camera – an infrared variant designed for night vision with IR lighting.

By 2016, the successor to the Pi camera arrived in the Pi Camera V2 (Figure 1-8) – with the same dimensions and connection, but a significantly better 8MP sensor. The V2 camera was a huge upgrade in quality. A V2 NoIR version followed shortly after.
../images/488914_1_En_1_Chapter/488914_1_En_1_Fig8_HTML.jpg
Figure 1-8

Raspberry Pi Camera V2.1

In 2020, a $50, 12MP model was announced, with support for interchangeable lenses. This modern lens mount will let you connect DSLR lenses – some of which cost several hundreds or thousands of dollars more than the sensor itself!

Chapter Summary

In this chapter, you learned about the five main Raspberry Pi boards, along with the Pi camera, and the history behind the Pi and the Pi Foundation. You learned about the various different form factors and revisions of the Pi itself, and the different CPU and I/O configurations, along with the pricing model and publicity stunts (such as giving away the Pi Zero on the cover of The MagPi magazine).

The next chapter is a software development primer. In it, you’ll learn some basic computer science theory, along with some historical case studies. You’ll gain an understanding of how software works, and how you can use the lessons from history to make your code better.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.108.11