This book is about advanced programming of the Raspberry Pi computer using the Python programming language. The book explains in simple terms and with examples:
How to configure the Raspberry Pi computer;
How to install and use the Linux operating system and the desktop;
How to write advanced programs using the Python programming language;
How to use graphics in our programs;
How to develop hardware based projects using the Raspberry Pi.
The book starts with an introduction to the Raspberry Pi computer and covers the topics of purchasing all the necessary accessories and installing and operating the Linux operating system in command mode. The network interface of the RPi is explained in simple steps, demonstrating how the computer can be accessed remotely from a desktop or a laptop computer.
The remaining parts of the book cover the Python programming language in detail, including advanced topics such as operating system calls, multitasking, interprocess synchronization and interprocess communication techniques. The important topic of network programming using UDP and TCP protocols is described with working examples. The Tkinter graphical user interface module (GUI) is described in detail with example widgets and programs.
The last part of the book includes hardware projects based on using the advanced programming topics such as multitasking and interprocess communication techniques. All the projects given in the book have been fully tested and are working. Complete program listings of all projects are provided with detailed explanations.
Develop innovative hardware-based projects in C
The Raspberry Pi has traditionally been programmed using Python. Although this is a very powerful language, many programmers may not be familiar with it. C on the other hand is perhaps the most commonly used programming language and all embedded microcontrollers can be programmed using it.
The C language is taught in most technical colleges and universities and almost all engineering students are familiar with using it with their projects. This book is about using the Raspberry Pi with C to develop a range of hardware-based projects. Two of the most popular C libraries, wiringPi and pigpio are used.
The book starts with an introduction to C and most students and newcomers will find this chapter invaluable. Many projects are provided in the book, including using Wi-Fi and Bluetooth to establish communication with smartphones.
Many sensor and hardware-based projects are included. Both wiringPi and pigpio libraries are used in all projects. Complete program listings are given with full explanations. All projects have been fully tested and work.
The following hardware-based projects are provided in the book:
Using sensors
Using LCDs
I²C and SPI buses
Serial communication
Multitasking
External and timer interrupts
Using Wi-Fi
Webservers
Communicating with smartphones
Using Bluetooth
Sending data to the cloud
Program listings of all Raspberry Pi projects developed in this book are available on the Elektor website. Readers can download and use these programs in their projects. Alternatively, they can customize them to suit their applications.
ModbusRTU and ModbusTCP examples with the Arduino Uno and ESP8266
Introduction to PLC programming with OpenPLC, the first fully open source Programmable Logic Controller on the Raspberry Pi, and Modbus examples with Arduino Uno and ESP8266
PLC programming is very common in industry and home automation. This book describes how the Raspberry Pi 4 can be used as a Programmable Logic Controller. Before taking you into the programming, the author starts with the software installation on the Raspberry Pi and the PLC editor on the PC, followed by a description of the hardware.
You'll then find interesting examples in the different programming languages complying with the IEC 61131-3 standard. This manual also explains in detail how to use the PLC editor and how to load and execute the programs on the Raspberry Pi. All IEC languages are explained with examples, starting with LD (Ladder Diagram) over ST (Structured Control Language) to SFC (Special Function Chart). All examples can be downloaded from the author's website.
Networking gets thorough attention too. The Arduino Uno and the ESP8266 are programmed as ModbusRTU or ModbusTCP modules to get access to external peripherals, reading sensors and switching electrical loads. I/O circuits complying with the 24 V industry standard may also be of interest for the reader.
The book ends with an overview of commands for ST and LD. After reading the book, the reader will be able to create his own controllers with the Raspberry Pi.
De Joy-Pi Advanced is een compact en krachtig instrument waarmee je snel en eenvoudig je projecten kunt realiseren. Of je nu veel of weinig ervaring hebt, met de Joy-Pi Advanced kun je je creativiteit de vrije loop laten. Dankzij de compatibiliteit met een groot aantal platformen, waaronder Raspberry Pi, Raspberry Pi Pico, Arduino Nano, BBC micro:bit en NodeMCU ESP32, kun je eenvoudig en snel toegang krijgen tot het platform van je voorkeur.
Daarnaast heeft de Joy-Pi Advanced meer dan 30 stations, lessen en modules, waardoor je een onbeperkt aantal manieren hebt om je projecten uit te voeren. Met het zelfontwikkelde leercentrum kun je niet alleen je vaardigheden verbeteren, maar ook nieuwe projecten maken. Het leercentrum biedt een schat aan informatie en tutorials die je stap voor stap door je projecten begeleiden.
Joy-Pi Advanced wordt in het bijzonder gekenmerkt door zijn intelligente schakeleenheden, die een uitgebreid gebruik van de beschikbare pinnen mogelijk maken. In totaal zijn er drie schakeleenheden geïntegreerd, elk voorzien van 12 individuele schakelaars die zorgen voor een nauwkeurige aansturing van de aangesloten sensoren en modules. Dit systeem lost het bekende probleem van het beperkte aantal pinnen op dat optreedt bij conventionele microcontrollers. Met de schakeleenheden kun je een groot aantal sensoren en modules parallel aansturen door ze afzonderlijk aan en uit te schakelen. Dit simuleert meervoudige pintoewijzing, waardoor je het volledige vermogen van je projecten kunt benutten zonder afbreuk te doen aan de functionaliteit.
Door onze innovatieve adapter boards en het micro:bit slot te combineren, bereiken we naadloze compatibiliteit met een breed scala aan microcontrollers zoals Raspberry Pi Pico, NodeMCU ESP32, micro:mit en Arduino Nano. De speciaal ontwikkelde adapterkaarten zijn zo ontworpen dat ze perfect passen bij de betreffende microcontroller. Door de microcontroller op het juiste adapterboard aan te sluiten en deze vervolgens in het micro:bit slot te steken, wordt de Joy-Pi Advanced snel en eenvoudig compatibel met de verschillende microcontrollers. Dit zorgt voor een naadloze integratie van het platform van je voorkeur en de mogelijkheid om de sterke punten van de verschillende microcontrollers te combineren in je projecten. Op deze manier kun je je volledig richten op je creatieve projecten zonder dat je je zorgen hoeft te maken over de compatibiliteit van verschillende microcontrollers. De Joy-Pi Advanced vereenvoudigt het ontwikkelproces en geeft je de mogelijkheid om je projecten flexibel en individueel te ontwerpen.
Kenmerken
Sterk geïntegreerd ontwikkelplatform & leercentrum
Snel, eenvoudig & draadloos combineren van verschillende sensoren & actuatoren
Installatieoptie voor Raspberry Pi 4
Compatibel met verschillende microcontrollers
Zelfontwikkeld, didactisch leerplatform voor Raspberry Pi & Windows
Specificaties
Compatibel met
Raspberry Pi 4, Arduino Nano, NodeMCU ESP32, BBC micro:bit, Raspberry Pi Pico
Geïnstalleerde sensoren, actuatoren & componenten
39
Leerplatform
Meer dan 40 items in de kennisdatabase, 10 projecten, 10 lessen, 14 visies
Displays
7-segment display, 16x2 display, 1,8' TFT-display, 0,96" OLED-display, 8x8 RGB-matrix
Sensoren
DS18B20, schoksensor, hallsensor, barometer, geluidssensor, gyroscoop, PIR-sensor, Lichtbarrière, NTC, Lichtsensor, 6x aanraaksensor, kleurensensor, ultrasone afstandssensor, DHT11 temperatuur- & vochtigheidssensor
Controle
Joystick, 5x schakelaars, potentiometer, draaiencoder, 4x4 knoppenmatrix, relais, PWM-ventilator
Motoren
Servo-interface, Stappenmotorinterface, Trilmotor
Meet- en conversiemodules
Analoog-digitaalomzetter, niveauomzetter, voltmeter, variabele spanningsbron
Andere onderdelen
RTC real-time klok, zoemer, EEPROM-geheugen, infrarood ontvanger, breadboard, RFID-lezer
Adapterkaarten
Adapter voor NodeMCU ESP32, Arduino Nano & Raspberry Pi Pico, Board connectors voor Raspberry Pi & externe boards
Elektronische onderdelen
Infrarood afstandsbediening, RFID-chip, RFID-kaart, 6x krokodillenklemmen, microSD-kaartlezer, servomotor, stappenmotor, 32 GB microSD-kaart
Onderdelen
40x weerstanden, 3x groene LED's, 3x gele LED's, 3x rode LED's, 1x transistor, 5x knoppen, 1x potentiometer, 2x condensatoren
Andere accessoires
Schroevenassortiment, schroevendraaier, accessoire-opbergtas, voeding & voedingskabel, servo bevestiging
Stroomvoorziening
Ingebouwde voeding: 36 W, 12 V, 3 A Behuizingsconnector: Kleine apparaat stekker C8
Spanningsuitgangen
12 V, 5 V, 3,3 V, variabele spanningsuitgang (2-11 V)
Databussen & signaaluitgangen
I²C, SPI, Analoog naar digitaal converter
Batterij (RTC)
CR2032
Afmetingen
327 x 200 x 52 mm
Vereist
Raspberry Pi 4 met minstens 2 GB RAM
Downloads
Joy-Pi website
Datasheet
Manual
Learn programming for Alexa devices, extend it to smart home devices and control the Raspberry Pi
The book is split into two parts: the first part covers creating Alexa skills and the second part, designing Internet of Things and Smart Home devices using a Raspberry Pi.
The first chapters describe the process of Alexa communication, opening an Amazon account and creating a skill for free. The operation of an Alexa skill and terminology such as utterances, intents, slots, and conversations are explained. Debugging your code, saving user data between sessions, S3 data storage and Dynamo DB database are discussed.
In-skill purchasing, enabling users to buy items for your skill as well as certification and publication is outlined. Creating skills using AWS Lambda and ASK CLI is covered, along with the Visual Studio code editor and local debugging. Also covered is the process of designing skills for visual displays and interactive touch designs using Alexa Presentation Language.
The second half of the book starts by creating a Raspberry Pi IoT 'thing' to control a robot from your Alexa device. This covers security issues and methods of sending and receiving MQTT messages between an Alexa device and the Raspberry Pi.
Creating a smart home device is described including forming a security profile, linking with Amazon, and writing a Lambda function that gets triggered by an Alexa skill. Device discovery and on/off control is demonstrated.
Next, readers discover how to control a smart home Raspberry Pi display from an Alexa skill using Simple Queue Service (SQS) messaging to switch the display on and off or change the color.
A node-RED design is discussed from the basic user interface right up to configuring MQTT nodes. MQTT messages sent from a user are displayed on a Raspberry Pi.
A chapter discusses sending a proactive notification such as a weather alert from a Raspberry Pi to an Alexa device. The book concludes by explaining how to create Raspberry Pi as a stand-alone Alexa device.
ModbusRTU and ModbusTCP examples with the Arduino Uno and ESP8266
Introduction to PLC programming with OpenPLC, the first fully open source Programmable Logic Controller on the Raspberry Pi, and Modbus examples with Arduino Uno and ESP8266
PLC programming is very common in industry and home automation. This book describes how the Raspberry Pi 4 can be used as a Programmable Logic Controller. Before taking you into the programming, the author starts with the software installation on the Raspberry Pi and the PLC editor on the PC, followed by a description of the hardware.
You'll then find interesting examples in the different programming languages complying with the IEC 61131-3 standard. This manual also explains in detail how to use the PLC editor and how to load and execute the programs on the Raspberry Pi. All IEC languages are explained with examples, starting with LD (Ladder Diagram) over ST (Structured Control Language) to SFC (Special Function Chart). All examples can be downloaded from the author's website.
Networking gets thorough attention too. The Arduino Uno and the ESP8266 are programmed as ModbusRTU or ModbusTCP modules to get access to external peripherals, reading sensors and switching electrical loads. I/O circuits complying with the 24 V industry standard may also be of interest for the reader.
The book ends with an overview of commands for ST and LD. After reading the book, the reader will be able to create his own controllers with the Raspberry Pi.
Build robust, intelligent machines that combine Raspberry Pi computing power with LEGO components.The Raspberry Pi Build HAT provides four connectors for LEGO Technic motors and sensors from the SPIKE Portfolio. The available sensors include a distance sensor, a colour sensor, and a versatile force sensor. The angular motors come in a range of sizes and include integrated encoders that can be queried to find their position.The Build HAT fits all Raspberry Pi computers with a 40-pin GPIO header, including?–?with the addition of a ribbon cable or other extension device?—?Raspberry Pi 400. Connected LEGO Technic devices can easily be controlled in Python, alongside standard Raspberry Pi accessories such as a camera module.Features
Controls up to 4 motors and sensors
Powers the Raspberry Pi (when used with a suitable external PSU)
Easy to use from Python on the Raspberry Pi
De Raspberry Pi Zero W is de nieuwste telg van de Raspberry Pi Zero-familie. De Raspberry Pi Zero W heeft alle functionaliteit van de originele Raspberry Pi Zero, maar wordt geleverd met toegevoegde connectiviteit bestaande uit:
802.11 b/g/n WLAN
Bluetooth 4.1
Bluetooth Low Energy (BLE)
Overige kenmerken
1 GHz, single-core CPU
512 MB RAM
Mini HDMI en USB On-The-Go poorten
Micro-USB voeding
HAT-compatibele 40-pins header
Composiet video en reset headers
CSI-camera-aansluiting
Downloads
Mechanische tekening
Schema's
Program, build, and master over 60 projects with Python
The Raspberry Pi 5 is the latest single-board computer from the Raspberry Pi Foundation. It can be used in many applications, such as in audio and video media centers, as a desktop computer, in industrial controllers, robotics, and in many domestic and commercial applications. In addition to the well-established features found in other Raspberry Pi computers, the Raspberry Pi 5 offers Wi-Fi and Bluetooth (classic and BLE), which makes it a perfect match for IoT as well as in remote and Internet-based control and monitoring applications. It is now possible to develop many real-time projects such as audio digital signal processing, real-time digital filtering, real-time digital control and monitoring, and many other real-time operations using this tiny powerhouse.
The book starts with an introduction to the Raspberry Pi 5 computer and covers the important topics of accessing the computer locally and remotely. Use of the console language commands as well as accessing and using the desktop GUI are described with working examples. The remaining parts of the book cover many Raspberry Pi 5-based hardware projects using components and devices such as
LEDs and buzzers
LCDs
Ultrasonic sensors
Temperature and atmospheric pressure sensors
The Sense HAT
Camera modules
Example projects are given using Wi-Fi and Bluetooth modules to send and receive data from smartphones and PCs, and sending real-time temperature and atmospheric pressure data to the cloud.
All projects given in the book have been fully tested for correct operation. Only basic programming and electronics experience are required to follow the projects. Brief descriptions, block diagrams, detailed circuit diagrams, and full Python program listings are given for all projects described.
This book is about the Raspberry Pi 3 computer and its use in various control and monitoring applications. The book explains in simple terms and with tested and working example projects, how to configure the Raspberry Pi 3 computer, how to install and use the Linux operating system, and how to write hardware based applications programs using the Python programming language.
The nice feature of this book is that it covers many Raspberry Pi 3 based hardware projects using the latest hardware modules such as the Sense HAT, Swiss Pi, MotoPi, Camera module, and many other state of the art analog and digital sensors. An important feature of the Raspberry Pi 3 is that it contains on-board Bluetooth and Wi-Fi modules. Example projects are given in the book on using the Wi-Fi and the Bluetooth modules to show how real-data can be sent to the Cloud using the Wi-Fi module, and also how to communicate with an Android based mobile phone using the Bluetooth module.
The book is ideal for self-study, and is intended for electronic/electrical engineering students, practising engineers, research students, and for hobbyists. It is recommended that the book should be followed in the given Chapter order.
Over 30 projects are given in the book. All the projects in the book are based on the Python programming language and they have been fully tested. Full program listings of every project are given in the book with comments and full descriptions. Experienced programmers should find it easy to modify and update the programs to suit their needs.
The following sub-headings are given for each project to make it as easy as possible for the readers to follow the projects:
Project title
Description
Aim of the project
Raspberry Pi type
Block diagram
Circuit diagram
Program listing
Learn programming for Alexa devices, extend it to smart home devices and control the Raspberry Pi
The book is split into two parts: the first part covers creating Alexa skills and the second part, designing Internet of Things and Smart Home devices using a Raspberry Pi.
The first chapters describe the process of Alexa communication, opening an Amazon account and creating a skill for free. The operation of an Alexa skill and terminology such as utterances, intents, slots, and conversations are explained. Debugging your code, saving user data between sessions, S3 data storage and Dynamo DB database are discussed.
In-skill purchasing, enabling users to buy items for your skill as well as certification and publication is outlined. Creating skills using AWS Lambda and ASK CLI is covered, along with the Visual Studio code editor and local debugging. Also covered is the process of designing skills for visual displays and interactive touch designs using Alexa Presentation Language.
The second half of the book starts by creating a Raspberry Pi IoT 'thing' to control a robot from your Alexa device. This covers security issues and methods of sending and receiving MQTT messages between an Alexa device and the Raspberry Pi.
Creating a smart home device is described including forming a security profile, linking with Amazon, and writing a Lambda function that gets triggered by an Alexa skill. Device discovery and on/off control is demonstrated.
Next, readers discover how to control a smart home Raspberry Pi display from an Alexa skill using Simple Queue Service (SQS) messaging to switch the display on and off or change the color.
A node-RED design is discussed from the basic user interface right up to configuring MQTT nodes. MQTT messages sent from a user are displayed on a Raspberry Pi.
A chapter discusses sending a proactive notification such as a weather alert from a Raspberry Pi to an Alexa device. The book concludes by explaining how to create Raspberry Pi as a stand-alone Alexa device.