This book is a major edition, as many aspects have been changed, rewritten, updated, and created. You can do many things with the Raspberry Pi -- some have built a Star Trek interface, while others have built robots. This book provides the building block to work with Xojo to react with the real world through its motherboard to allow you to make your own interesting devices. This inexpensive computer can be programed by the widely recognized Xojo programming language.
This book "I Wish I Knew How to... Program Raspberry Pi 4B Electronics with Xojo" goes into the numerous programs that can be built to interact with many types of electronic gadgets. This book uses the latest Raspberry Pi 4B hardware with the newest version of the Buster Operating System.
Note: There are different books for the older versions -- pre-Xojo 2019 r1.1, Jessie OS, and pre-Pi 3 B hardware. This book is for programing with the latest Raspberry Pi 4 B hardware, with the Buster OS, and API2 2019 r3.1 Xojo IDE with pigpio!
Major updates to the book are:
- Written using the newest Xojo 2019 r3.1 (Xojo API2) code
- Uses the latest Raspberry Pi Operating System (Buster)
- Wrote a new pigpio (wiringPi is deprecated) library wrapper (which is free at https://github.com/eugenedakin and called pigpio-GPIO).
- There are 27 chapters with more than 650 pages with over 70 example programs.
- The new and free pigpio wrapper can be downloaded at: https://github.com/eugenedakin/pigpio-GPIO
It is assumed that you have an intermediate understanding of both electronics and programming of the Xojo language.
This ebook is a PDF document and all examples include Xojo code. This is one of many books which can be purchased at Xojo Library. More information is available at the author's website at: https://scispec.ca/index.php/books/54-program-raspberry-pi-4b-electronics-with-xojo-buster-edition
Note: Xojo has free Raspberry Pi licenses!
Version 3.3 – Jan 2021
* Updated all examples to use gpioterminate when closing the window to release gpio pins for use with other programs
* Updated code to Xojo 2020 r2.1
* Added Example 20-3 that uses SPI MISO MOSI interface (not bit-banging)
Version 3.2 -- Dec 2020
* Updated example 27-2 to use 3.3 volts
* Updated Installing an OS to include newer imager program with updated steps.
* Modified quick QuickStart instructions to install pigpio with the latest Raspberry Pi OS operating system.
* Page 51, change legacy wiringPi and a few Wiring Pi names to pigpio
Version 3.1 – July 2020
* Updated quickstart instructions with new link to pigpio library.
* Updated Is a package installed instructions.
* Updated purge program instructions.
* Updated 555 timer interrupt library wording in book.
* Removed wiringPi reference in Chapter 21.
* Replaced SetupGPIO command in book for gpioInitialise pigio command.
* Updated old references from 3B+ to 4B Raspberry Pi.
* Created Example 24-6 which has optimized code for a stepper motor driver which is quick and allows smooth motor movement on the OSEP STEPD-01.
* Fixed grammatial errors.
* Removed Dim and replaced with Var in examples.
* Created Example 24-7 with optimized timing code for Stepper motor with DRV8833 and NEMA 17.
Note: Many thanks to Ulrich Bogun's work with pigpio and Paul Lefebvre for his work with wiringPi.