𝔖 Scriptorium
✦   LIBER   ✦

📁

Raspbian OS Programming with the Raspberry Pi: Iot Projects with Wolfram, Mathematica, and Scratch

✍ Scribed by Black.; Kurniawan.; Kurniawan, Agus


Publisher
Apress
Year
2018;2019
Tongue
English
Leaves
190
Edition
1st ed
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Master the command line and Raspbian Linux as well as the physical connections of the Pi. With this book you'll develop skills applicable to other real world applications in both hardware and software development all while working on simple and fun IoT projects that you can do yourself.
You'll learn to build programs on the top of Raspbian OS in Raspberry Pi boards. Start by using Raspbian shells to develop programs.Then follow projects and samples step-by-step to get new experiences in Raspbian OS development. You'll also learn the Wolfram Language and Mathematica, Scratch, IoT programs and IoT middleware, Node-RED, Interactive Data Visualization with Jupyter Notebook, and more.
There are many features in Raspbian OS and on Raspberry Pi boards perfect for building an IoT program to suite various scenarios. The GPIO pins on your Raspberry Pi allow it to scale further to accomplish all kinds of projects and tasks.Raspbian OS Programming with the Raspberry Piis your pathway to exploring all of this.
What You'll Learn

Discover the basics of programming in the Raspbian OS environment


Work with the Raspbian Commandline


Develop programs with the Wolfram Language and Mathematica


Who This Book Is For
Students and hobbyists interested in programming on Raspbian OS with Raspberry Pi boards.

✦ Table of Contents


Table of Contents......Page 4
About the Author......Page 9
About the Technical Reviewer......Page 10
Acknowledgments......Page 11
Introduction......Page 12
Chapter 1: Introduction to Raspberry Pi......Page 14
1.1 What Is Raspberry Pi?......Page 15
1.2 Reviewing the Raspberry Pi Board Models......Page 16
1.3 Introducing the Raspbian OS......Page 18
1.4 Setting Up Raspbian OS on Raspberry Pi Boards......Page 20
1.5 Headless Raspbian SSH Network Setup......Page 21
1.6 Expanding Storage......Page 23
1.7 Configuring a WiFi Network......Page 25
1.8 Exploring the Raspbian OS Desktop and Terminal......Page 26
1.9 Configuring the VNC Server......Page 29
1.9.2 Enabling the VNC Server......Page 30
1.9.3 Configuring Boot Options for the Desktop......Page 32
1.9.4 Testing the Server......Page 34
1.10 Powering Off the Raspbian......Page 37
1.11 Summary......Page 38
Chapter 2: The Raspbian OS Command Line......Page 39
2.1 Introducing Raspbian Shells......Page 40
2.2.2 Shutting Down......Page 42
2.2.3 Configuring the Timezone......Page 43
2.2.4 Configuring the Keyboard......Page 45
2.3.2 Listing Files and Directories......Page 46
2.3.3 Understanding the ls Parameters......Page 49
2.3.4 Changing the Current Working Directory......Page 50
2.3.5 Creating a Directory......Page 54
2.3.6 Removing Files and Directories......Page 56
2.3.7 Copying Files and Directories......Page 58
2.3.8 Moving Files and Directories......Page 62
2.3.9 Creating Symbolic Links......Page 64
2.4.1 Standard Output......Page 65
2.4.2 Standard Input......Page 66
2.4.3 Standard Error......Page 67
2.4.4 Pipelines......Page 68
2.5.1 Understanding Permissions......Page 69
2.5.2 chmod......Page 73
2.5.3 chown......Page 75
2.6.1 ps......Page 76
2.6.2 top......Page 80
2.6.3 Killing Processes......Page 82
2.6.4 Viewing Memory......Page 83
2.7.1 Displaying Free Disk Space......Page 84
2.7.2 mount......Page 85
2.8 Summary......Page 89
3.1 Understand the Programming Model in Raspbian OS......Page 90
3.3 Python Programming......Page 94
3.3.1 Python 3 (IDLE)......Page 95
3.3.2 Thonny Python IDE......Page 96
3.3.3 Python Shell from Remote SSH......Page 99
3.4 Node.js Programming......Page 101
3.5 C/C++ Programming......Page 105
3.6 Summary......Page 107
Chapter 4: Computational Mathematics with the Wolfram Language and Mathematica......Page 108
4.1 Introducing Wolfram Language and Mathematica......Page 109
4.2 Setting Up Wolfram and Mathematica......Page 112
4.3 Developing a Hello World Program......Page 113
4.4 Basic Programming......Page 114
4.4.1 Data Types and Declaring Variables......Page 115
4.4.2 Arithmetic Operators......Page 116
4.4.3 Relational and Logical Operators......Page 117
4.4.4 Conditional Statements......Page 119
4.4.4.1 if......Page 120
4.4.4.2 switch......Page 121
4.4.5.1 Do......Page 122
4.4.5.2 For......Page 124
4.4.5.3 While......Page 125
4.4.5.4 Break and Continue......Page 126
4.4.6 Adding Comments......Page 127
4.4.7 Functions......Page 128
4.5.1 Calculus......Page 130
4.5.1.1 Plot......Page 131
4.5.1.2 Limits......Page 133
4.5.1.3 Differentiation......Page 135
4.5.1.4.1 Indefinite Integrals......Page 137
4.5.1.4.2 Definite Integrals......Page 139
4.5.1.5 Summing......Page 141
4.5.2 Matrix......Page 143
4.5.3 Quadratic Equations......Page 148
4.5.4 Linear Equations......Page 149
4.6 Summary......Page 151
Chapter 5: Visual Programming with Scratch......Page 152
5.1 Introducing Visual Programming and Scratch......Page 153
5.3.1 Creating a Project......Page 154
5.3.2 Building a Scratch Program......Page 156
5.3.3 Running the Program......Page 159
5.3.4 Saving a Program Into a File......Page 160
5.4 Working with Sprites......Page 161
5.5 Working with the Background......Page 166
5.6 Working with Motion......Page 170
5.6.1 Coordinate System and Direction......Page 171
5.6.2 Demo 1: Movement......Page 173
5.6.3 Demo 2: Direction......Page 174
5.7.1 Building a Decision......Page 176
5.7.2 Looping......Page 184
5.8 Summary......Page 186
Index......Page 187


📜 SIMILAR VOLUMES


Raspbian OS Programming with the Raspber
✍ Agus Kurniawan 📂 Library 📅 2019 🏛 Apress 🌐 English

Master the command line and Raspbian Linux as well as the physical connections of the Pi. With this book you’ll develop skills applicable to other real world applications in both hardware and software development all while working on simple and fun IoT projects that you can do yourself. You'll lear

Raspbian OS Programming with the Raspber
✍ Agus Kurniawan 📂 Library 📅 2019 🏛 Apress 🌐 English

<div><p>Master the command line and Raspbian Linux as well as the physical connections of the Pi. With this book you’ll develop skills applicable to other real world applications in both hardware and software development all while working on simple and fun IoT projects that you can do yourself.</p><

Programming with Node-RED: Design IoT Pr
✍ Dogan Ibrahim 📂 Library 📅 2020 🏛 Elektor Publication 🌐 English

<div> <p>The Internet of Things (IoT) is becoming a major application area for embedded systems. As a result, more and more people are becoming interested in learning about embedded design and programming. Technical colleges and universities are moving away from legacy 8 and 16-bit microcontrollers

Getting Started with Raspberry Pi: Elect
✍ Richardson, Matt;Wallace, Shawn 📂 Library 📅 2014 🏛 O'Reilly Media, Inc.;Maker Media, Inc 🌐 English

What can you do with Raspberry Pi, the inexpensive credit card-sized computer? All sorts of things! If you're learning how to program, or looking to build new electronic projects, this hands-on guide will show you just how valuable this flexible little platform can be. This book takes you step-by-st