© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
E. Wu, D. MaslovRaspberry Pi Retail Applicationshttps://doi.org/10.1007/978-1-4842-7951-9_9

9. Summary and Tips on Practical Implementation

Elaine Wu1   and Dmitry Maslov1
(1)
Shenzhen, China
 

In previous chapters, you have learned how the Raspberry Pi brings digital transformation to retail businesses and how to build prototypes to optimize human and machine resource allocation and streamline your business operations. The book’s prototype projects included a vending machine, a smart touchscreen-enabled directory, a speech recognition drive-thorough, an employee-management system, an advertisement display, a people-counting camera, and a cluster server for hosting the company’s IT infrastructure.

Raspberry Pi has gained widely acclaim, especially among makers and Linux enthusiasts, for the same reasons that it makes an ideal hacker-friendly gadget: its hardware is flexible and can be adapted to handle Internet surfing, retro gaming, learning about computers, and setting up home servers. The Raspberry Pi first launched ten years ago and it now has new customers, including manufacturers and business owners who have found it to be an affordable, practical, low-maintenance device for running their companies’ infrastructures. See Figure 9-1.
Figure 9-1

Raspberry Pi is gaining adoption in industry, after of years of being a hobbyist-oriented device

Successful Implementations

In this last chapter, we expand a bit on the projects’ implementations and give you additional technical and business advice that will help you when creating your own Raspberry Pi-powered application.

Raspberry Pi Vending Machine

According to tomshardware.com, iSnowfall (Reddit ID), in the final year’s project for students with special needs, has produced a 1.8-meter-high and .5-meter-wide vending machine powered by Raspberry Pi. It uses RFID cards for transactions. The RFID UID number is stored on a database on a Google sheet via a Python script. Once the Raspberry Pi confirms the points received, it drives the motor to deliver the selected products. See Figure 9-2.
Figure 9-2

Raspberry Pi vending machine (Credit: iSnowfall)

The vending machine uses a PCB integrated with Raspberry Pi Compute Module and other essential component boards and accessories. You can also attach a Hat with all the functions you need on the Raspberry Pi.

Upstate Networks Inc. (UNI), a hardware and software manufacturer from New York, used the Raspberry Pi to develop vending machine peripherals. Since 1994, UNI has designed adapters that bridge vending machines and standardized computers. On the UNI website, you will find a product line called PLUM, which is an unattended sales system integrated with a Raspberry Pi-embedded controller. See Figure 9-3.
Figure 9-3

Upstate Networks Inc.’s PLUM payment system works with the Raspberry Pi single-board computer

PLUM comes with three extension boards for use with the Raspberry Pi: PLUM-IN, PLUM-OUT, and PLUMPicker:
  • PLUM-IN enables a vending machine protocol called multi-drop bus (MDB) when it is used with Raspberry Pi. MDB is used by various devices such as dollar bill validators, coin acceptors, and coin dispensers. The system allows the Raspberry Pi to process the incoming funds.

  • PLUM-OUT allows the Raspberry Pi to be used as a cashless device when combined with any MDB vending product.

  • PLUMPicker is a Raspberry Pi HAT for item selection process on the shelf. When PLUM-IN is attached to the Raspberry Pi, the touchscreen can be used instead of the hardware keyboard to handle the project selection process. If you plug PLUMPicker into the reTerminal, you can directly use the HMI device to interact with the vending machine. Once the Raspberry Pi is connected to the Internet, PLUMPicker can also bridge the vending machine and the message from the cloud for remote control or the command sent from the HMI device.

Interactive Touchscreen Directory for a Smart City

There are more than 8,000 locals and tourists visiting Coogee Beach in Australia. There are awesome bars, restaurants, promenades, and parks everywhere. In 2018, the Randwick City Council adopted a smart city strategy seeking to improve livability, sustainability, and economic prosperity through digitalization and IoT. This strategy established a roadmap to guide and accelerate the smart city action in Randwick. The Randwick Smart Beach Project faces the challenge of creating a better beach experience: applying public safety, traffic, parking management, facility maintenance, and all open data on the beach with a public dashboard. In this case, Coogee Beach adopted Ubidots to create dashboards to view sensor results and control devices in real time. See Figure 9-4.
Figure 9-4

Smart display with live data from Coogee Beach, source: Ubidots

To develop a custom dashboard, you can simply populate the dashboard with prebuilt graphs, charts, plug-ins, indicators, maps, and control units, or use HTML Canvas and custom code.

Figure 9-5 shows that Peclet developed a digital display and integrated all these tools in Ubidots. The display shows the data from all IoT sensors placed around Coogee Beach. The sensor data is transmitted through LoRa used with the LoRaWAN web server through “The Things Network”.
Figure 9-5

Example of data displayed on the device, source: Ubidots

Raspberry Pi as a Retail Product Display

Digitec is an electronics retailer in Switzerland. Among other things, they sell Raspberry Pis and related accessories, including their official 7-inch touch display. Many customers might have noticed that they haven’t had the touch display in stock recently, and there’s an interesting reason for that. See Figure 9-6.
Figure 9-6

Touchscreen display used in Digitec stores in Switzerland, source: Raspberry Pi

The retailer wanted to replace their tablet-based digital shelf labels with something more robust, so they turned to Raspberry Pi 2 with the 7-inch touchscreen. Each store has 105 screens, which means that the engineering team for Digitec Galaxus assembled 840 custom-printed Raspberry Pi-powered shelf labels to replace the existing paper-based product labels. See Figure 9-7.
Figure 9-7

The back side of the touchscreen display installation, source: Raspberry Pi

The screens enable their customers to view up-to-date product information, prices, and customer opinions based on community ratings as they see the product up close. To pull this off, the engineering team used Raspbian Jessie Lite and installed the Chromium browser. It enabled them to create a custom HTML page that loads JavaScript to download the most up-to-date information using a JavaScript Ajax call. When a keyboard is connected, it can set parameters for the screen, which are stored as cookies in Chromium. The engineering team also introduced unnecessary redundancies into the design. For example, the boot script will put Chromium in a loop to ensure that it will eventually be relaunched if it crashes. It is also capable of handling sudden loss of power and network connectivity issues.

A Multimedia Toolkit for Museums, Visitor Centers, and More Running on the Raspberry Pi

Pi Presents is a toolkit for producing interactive multimedia applications for museums, visitor centers, and more.

There are a number of digital signage solutions for the Raspberry Pi, which are generally browser based, limited to slideshows, non-interactive, and driven from a central server, thus enabling the content to be modified frequently. See Figure 9-8.
Figure 9-8

Examples of Raspberry Pi used in museum installations, source: Raspberry Pi

Pi Presents is different. It is standalone, multimedia, highly interactive, and diverse in its set of control paradigms—slideshows, cursor controlled menus, radio buttons, and hyperlinked shows. It’s able to interface with users or machines over several types of interfaces. It is aimed primarily at curated applications in museums, science centers, and visitor centers.

Being so flexible, Pi Presents needs to be configured for your application. This is achieved using a simple-to-use graphical editor; it needs no Python programming. There are numerous tutorial examples and a comprehensive manual.

Pendulum Wave Machine: A Museum Exhibit

The University of Florida Physics Department has a lobby exhibition which is very reminiscent of the Discovery Gallery in the London Science Museum. One of their latest exhibits is a Pendulum Wave Machine. They used the GPIO and animation facilities of Pi Presents to provide tightly coupled user interaction with the machine. See Figure 9-9.
Figure 9-9

A museum exhibit made with Raspberry Pi

John from the Physics Department describes how it works:
  • “It runs Pi Presents Gapless version 1.3 on a Raspberry Pi 2 board. The application has a main slideshow that runs non-stop until a guest presses the Start button. Starting triggers a sub-show slideshow that also controls the state of the machine so it stays in sync with the show. We use three GPIO pins for switches, one to start the machine by viewers and trigger the sub-show off of the main show, and two micro switches that tell us the position of the machine (its state). We also use one GPIO pin for driving the electrical motor that operates the machine.”

Raspberry Pi 4 Cluster for Hosting a Raspberry Pi 4 Website

An 18-board Raspberry Pi 4 cluster was used to host much of the official raspberrypi.org website on its busiest day. The recently released 4GB Pi 4 costs $55, a fraction of the cost of traditional server hardware, but is also less powerful and offers less memory than entry-level servers. Mythic Beasts, the ISP that hosts the Raspberry Pi website, configured the cluster to serve most of the website and found it handled record demand on the day of Pi 4’s release without issue. See Figure 9-10.
Figure 9-10

Cluster of 18 Raspberry Pi 4s used to serve the raspberrypi.org website on the day of the Raspberry Pi 4 launch, source: Arstechnica

The cluster consisted of the following elements:
  • 14× dynamic web server (PHP/Apache)

  • 2× static web server (Apache, flat files)

  • 2× memcache (in memory store to accelerate web serving)

The Raspberry Pi foundation ran the website on this Raspberry Pi 4 cluster for over a month before reverting back to the usual virtual server-based environment.

Technical Know-Hows

This section discusses technical know-hows related to the various projects covered in this book.

Use Virtual Network Computing (VNC) to Remotely Control Everything You Want to Execute on the Raspberry Pi

Sometimes it is not convenient to work directly on the Raspberry Pi or access it using SSH with Visual Studio Code or OpenSSH client. If you want to edit the code from another device and need to access the graphical user interface of Raspberry Pi, we suggest trying RealVNC for accessing a remote desktop. VNC is a graphical desktop remote-sharing system that allows you to remotely control the desktop interface of a computer (running the VNC server on the Raspberry PI) from another computer or mobile device (running the VNC viewer on your laptop). See Figure 9-11.
Figure 9-11

RealVNC: connect to your Raspberry Pi from anywhere

You will be able to see and control the Raspberry Pi desktop in a window on your computer.

VNC Connect from RealVNC is already included in the Raspberry Pi OS Desktop version. Download the VNC Viewer from their website first to the device you want to use to remotely control your Raspberry Pi, such as your Mac, Windows machine, or Linux P. See Figure 9-12. Then you can use the following simple tutorial to enable VNC and use it on your Pi.
Figure 9-12

Download VNC View from their website

Make your PC join the same private local network as your Raspberry Pi (for example, an Ethernet or WiFi network).

On your Raspberry Pi, discover the private IP address by double-clicking the VNC Server icon or running ifconfig from the terminal. See Figure 9-13.
Figure 9-13

Raspberry Pi IP address displayed in the VNC server window

On your PC, run VNC Viewer and enter the IP address that you just found for the Raspberry Pi in the search bar, as Figure 9-14 shows. After successful connection, you will see the Raspberry Pi desktop on your PC. You are now ready to use your development board remotely with access to the graphical user interface!
Figure 9-14

Type the IP address into the VNC Viewer

IoT Integration Platform for the People-Counting Project

Chapter 2 introduced computer vision and deep learning, which were used to develop a people-counting application . However, in order to include an end-user friendly dashboard that can deliver all the data you want to analyze for the decision makers’ benefit, you need to merge the physical camera results with the digital analysis into one user interface.

Thousands of IoT entrepreneurs, startups, and system integrators are using Ubidots to rapidly launch and scale Internet of Things (IoT) businesses without having to write code. An IoT integration platform will save you a lot of time and money when creating and testing a visualized operation dashboard that connects multiple hardware devices. The complexity of deploying an end-to-end complete IoT solution goes far beyond the application prototype, which requires a variety of IoT technologies such as hardware compatibility, communication, software, and UI interfaces. If you have confirmed that the best solution is using hardware, a connection, and the cloud—such as using a Raspberry Pi connected to the cloud via WiFi—you still need to develop an application to provide data to your customers and control all the devices from the visualized dashboard.

For IoT applications, the last layer involves backend and frontend components, and it usually takes thousands of engineering hours to deliver a stable solution with a flexible UI interface. In order to quickly assemble and launch IoT applications, you can choose an IoT integration platform like Ubidots, which has both hardware and software options and efficient integration tools. See Figure 9-15.
Figure 9-15

IoT application development workflow, source: Ubidots

Real-world data is critical to digital transformation. How to collect and process data remains a challenge for system integrators, device providers, business-end users, and many stakeholders. For retailers, it is still difficult to use automation and digitalization to drive their businesses from ideas into practice. End-to-end IoT solution platforms, such as Seeed, help retailers and end users accelerate and scale their IoT solutions from hardware end to user end, offering real-world data collection from nodes, edge devices connection with multiple communication choices, data operation at the cloud, and SaaS and PaaS to achieve digital transformations. See Figure 9-16.
Figure 9-16

Top-level overview of the IoT infrastructure stack, source: Seeed

Choosing an IoT integration or solution platform can speed up retail business automation transformation. Its low cost and power consumption usually are essential to business retailer facilities as vending machines and customer service directional devices.

Microphone Options for Speech Recognition

Different microphone options in Raspberry Pi have many factors to take into account, including size, cost of development, and maintenance cost. This makes voice recognition design more challenging. While any microphones can work for your proof of concept (PoC), they will likely produce poor-quality results with your Raspberry Pi voice recognition software.

To overcome these challenges, Seeed Studio provides the reSpeaker USB microphone array, as shown in Figure 9-17. It offers a better voice pick up, which is essential when you place the drive-through machine outside the restaurant. The reSpeaker USB microphone array supports up to 5m far-field voice pickup and 360° pickup mode, and it implements the following acoustic algorithms: DOA (Direction of Arrival), AEC (Automatic Echo Cancellation), AGC (Automatic Gain Control), and NS (Noise Suppression).
Figure 9-17

Seeed Studio’s reSpeaker USB microphone

Cluster Server Carrier Board

As mentioned in Chapter 8, Raspberry Pi 4 is capable of serving a website to millions of visitors, if several boards are combined together in a cluster. While it is feasible to build a cluster yourself, just like we did for the prototype project, by connecting Raspberry Pi 4s with Ethernet cables, Turing Pi offers a better alternative, called a “cluster on board.” There are two models of Turing Pi currently on the market: Turing Pi 1 supports Compute Modules 1, 3, and 3+, and the upcoming Turing Pi 2 also supports Compute Modules 4. See Figure 9-18.
Figure 9-18

Turing Pi 2 concept drawing

Turing Pi is a compact ARM cluster kit that provides a secure and scalable compute in the edge. It is designed to make edge computing easier for developers. Turing Pi cluster architecture allows you to migrate and sync web apps with minimal friction.

Turing Pi includes dedicated I/O connections for the first slot, so you can manage the entire cluster through a Pi in one slot, or you can use another computer to manage the entire cluster externally. You only need to plug in the power supply, keyboard, and mouse (or the power supply and network cable) and you are ready to use it! See Figure 9-19.
Figure 9-19

Turing Pi 1 Cluster carrier board

Retail Business Digitalization

Retailers have been experiencing major shifts in the last decade. The online shopping and e-commerce market is growing and expanding and physical stores and shopping malls are becoming less and less attractive to many customers. The digitalization of retail business can be achieved by integrating various technologies and innovative business solutions. The idea of digitalization is to make the business as efficient as possible and provide personalized customer experiences driven by customer demand. The journey to digitalization requires a lot of time and effort, as there are many issues to be solved. Digitization represents a continuous transformation that is very important to the retail industry. Digital transformation empowers retailers in multiple ways, with hardware technology combined with the latest software technology such as pretrained AI models, digital twins, and AR, VR, 360 video, 3D, and so on. Consider these tips:
  • Know your customers precisely: Identify, adjust, and meet customer changing demands. There are shopping malls now that have deployed cameras with built-in AI models to accurately read customer expressions and analyze satisfaction.

  • Use more efficient and smarter tools to provide excellent customer service and collect reliable data: For example, you can use the Raspberry Pi to deploy all the advertising posters as well as collect all feedback reports of all the advertisements and shops in a large shopping mall. See Figure 9-20.

Figure 9-20

Microsoft Cloud for Retail, source: Microsoft

  • Deliver the supply chain intelligently, with digital and physical real-time interactions: In the retail industry, digital twins may help supply chains and stores with real-time intelligent communication. Real-time sensors are deployed in warehouses and retail stores to obtain device data and connect ERP databases through the network. Digital twins can help retailers identify supply shortages in seconds. You can use IoT to obtain data from the physical world and connect it to the cloud. Based on the digital twins technology, you can define and create a custom model that simulates the real environment in any field based on the data. In these models, the highly integrated platforms can predict and make corresponding executions to optimize the workflow, analyze assets, track inventory locations, and ensure employee’s safety. See Figures 9-21 and 9-22.

Figure 9-21

Building a digital twin for a retail store, source: SAP

Figure 9-22

Microsoft Azure digital twins

We introduced Amazon Dash Cart in Chapter 1 and the application of a Raspberry Pi-powered dictionary in a shopping mall in Chapter 4. Can you use digital twin technology to combine these two ideas? Gathering the image captured by the cameras in the shopping basket and on the goods shelf, as well as data from the motion sensor, you could create an interactive model of the shopping basket on the shelf. These models can analyze the best placement of goods on the shelves and the customers’ preferences. At the same time, the screen on the basket can recommend promotional items from other shelves close to customers. See Figure 9-23.
Figure 9-23

Veeve Intelligent Carts are powered by computer vision and deploy seamlessly into existing stores with no additional retrofit required. Source: Veeve

Similar to Dash Cart, Veeve also provides a contactless checkout experience by integrating computer vision into existing shopping carts in grocery stores. Retail in-store service staff need to have the right information, training, and convenient tools to provide customers with a superior customer service experience. Grocery stores using Veeve also offer employees a tablet with access to all shopping carts for real-time customer support. See Figure 9-24.
Figure 9-24

The Raspberry Pi development board family continues to grow

Here are some tips on how to implement digitalization in your retail business:
  1. 1.

    Before you start, make sure that your business is ready for digitalization. There are many things to consider, including the size of your business, the marketing strategy, the customer base, the level of competition, and so on.

     
  2. 2.

    Define your goals and plan your business transformation. Make sure that you have clear goals and plan how you are going to reach them. The failure to plan is planning to fail. Plan your business transformation, create milestones, set a budget for the project, define the metrics, and monitor the progress. The plan should be flexible enough to allow for changes, but rigid enough to serve as an important guide to keep you on track. Make sure that the plan has a clear direction and that it answers the main question of why you are going through all this effort in the first place.

     
  3. 3.

    Select the technologies that you want to implement. This is one of the most important steps in the process of digitalization. Many technologies are available, but not all of them are suitable for your business. Therefore, make sure that you select technologies that will be beneficial for you and your clients.

     
  4. 4.

    Implement your plans. The implementation phase is the most important part of the process. This is where you actually digitize your business. You can start by automating some of the tasks and processes in your business. Make sure that you do not make hasty decisions and implement only what is really necessary.

     
  5. 5.

    Measure your progress. You should track the progress of your digitalization project. See Figure 9-25.

     
Figure 9-25

Setting metrics and evaluating the progress according to them is very important for staying on track with the original plans

Make sure that you set goals and have developed metrics.
  1. 6.

    Revise your strategy. After some time, you should revisit your strategy and revise it. The digitalization of your business should be a continuous process. You should not stop after the first implementation. Try to improve the processes and technologies that you have already implemented and add new ones.

     
Additionally, think of future-proofing your business. The idea of digitalization is to keep your business progressive and competitive in the long-term. This requires a serious commitment and a lot of time and effort. However, it is a good idea to future-proof your business at the same time. Keep in mind that not all technologies will last forever. It is a good idea to apply technologies and solutions that will be reliable and of high quality and that will provide long-term benefits to your business. See Figure 9-26.
Figure 9-26

Most important digital technology for businesses in the next two years. Source: KPMG, Digital Retail on the Rise

Digitalizing a retail business requires a lot of time and effort. However, it is a journey worth taking, as the results are worth the effort. Digitalization will bring new customers to your business, will increase your sales, and will make your business more competitive.

With the popularity of the Raspberry Pi board, more businesses are catching on, including local eateries in Spain, city governments in Quebec and Oakland, CA, and FedEx in Thailand, Belgium, Japan, Tennessee, and Philadelphia. These examples show how Raspberry Pi computers can be entrenched in geographical landmarks, both physical and virtual. Retail businesses can save costs, which can be passed to customers, while providing high levels of structure, security, and flexibility. Small and medium retail businesses, for example, restaurants and cafes, can also benefit from using Raspberry Pi computers, as they can turn their business into a digital retail business.

Companies that have already deployed Raspberry Pi-based systems in airports, malls, parking lots, railway stations, offices, and hotels can leverage the feedback of their customers to further improve their products and services. See Figure 9-27.
Figure 9-27

A digital signage screen made with Raspberry Pi and powered by Binary Emotions OS

The functionality of the applications varies from business to business, but all of them share the same capacity to offer unprecedented levels of flexibility, convenience, and quality. Quality of service is critical for retail customers and retail business digitalization greatly improves it by elevating the level of service while reducing costs.

In conclusion, we hope that the detailed, step-by step projects described in this book and the examples of real-world implementations show you how powerful and versatile Raspberry Pi computers can be in transforming your retail business with digitalization. The Raspberry Pi-based system is safe, secure, and highly flexible, with limited risk of failure. Raspberry Pi-based systems can be incorporated into any retail business, regardless of the size of the business, the type of goods and services it offers, the number of customers, the geographic location, and even the type of physical environment it operates in.

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

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