Skip to content
CEC Semester Nineteen 2021

Raspberry Pi 4B Application Development

Fred Eady -
Owner, EDTP Electronics Inc. and Principal Engineer, Ongoing Systems LLC.
January 25,
2021
Install the Raspberry Pi Cross Compilation Toolset
Today's discussion will focus on building a Linux environment that will support the Raspberry Pi 4B C language cross-compilation process. We will install the latest version of Ubuntu and embellish it with an open-source C cross compiler and an instance of the Eclipse IDE. Once we have installed a stable base C cross-compilation toolsetwe will go about setting up a communications link between the personal computer and the target Raspberry Pi 4B. The communications link will allow us to open an SSH terminal session between Eclipse and the target Raspberry Pi 4B. A communications session supporting the automatic movement of our compiled application files to the target Raspberry Pi will also be established.
Course Resources
Special Educational Materials
What to Know About the Raspberry Pi 4 - Blog
Intro to TensorFlow Lite Part 3: Speech Recognition on Raspberry Pi Digi-Key Electronics - Video
How to Use Raspberry Pi as a Web Server - Blog
January 26,
2021
Cross Compilation Primer
Today's subject matter will focus on preparing the cross-compilation environment. The first task is to load all of the necessary Raspberry Pi 4B header files and libraries we will need to manipulate the Raspberry Pi's GPIO subsystem. Once the files are placed within the personal computer's file systemwe will use the compiler and linker controls embedded within Eclipse to make the files available to the C language cross compiler. The overall goal is to write some GPIO-oriented code and successfully cross-compile and execute a Raspberry Pi 4B C language-based application.
Course Resources
Special Educational Materials
What to Know About the Raspberry Pi 4 - Blog
Intro to TensorFlow Lite Part 3: Speech Recognition on Raspberry Pi Digi-Key Electronics - Video
How to Use Raspberry Pi as a Web Server - Blog
January 27,
2021
Coding a Raspberry Pi 4B I2C IoT Application
The Raspberry Pi 4B libraries and header files we loaded into our personal computer's Linux file system on Day 2 contain I2C functionality that we can call upon from within our C source code. The task before us today is to demonstrate how to cross-compile Raspberry Pi 4B IoT applications that communicate with sensor devices that are based on the C programming language and the I2C protocol.
Course Resources
Special Educational Materials
What to Know About the Raspberry Pi 4 - Blog
Intro to TensorFlow Lite Part 3: Speech Recognition on Raspberry Pi Digi-Key Electronics - Video
How to Use Raspberry Pi as a Web Server - Blog
January 28,
2021
Coding a Raspberry Pi 4B SPI IoT Application
The SPI and I2C protocols have their particular corners in the IoT and embedded spaces. Odds are if a sensor is not equipped with a data radiothat sensor will most likely communicate with a host device using the SPI or I2C protocol. If the Raspberry Pi 4B is to operate in IoT and embedded spaceit must be able to obtain and exchange data with devices using SPI or I2C. In factthe Raspberry Pi 4B is fully capable of utilizing the SPI and I2C protocols. It is up to usthe C programmersto put the Pi to work as an SPI-capable IoT device via its native GPIO subsystem.
Course Resources
Special Educational Materials
What to Know About the Raspberry Pi 4 - Blog
Intro to TensorFlow Lite Part 3: Speech Recognition on Raspberry Pi Digi-Key Electronics - Video
How to Use Raspberry Pi as a Web Server - Blog
January 29,
2021
Coding a Raspberry Pi 4B Serial IoT Application
XBee data radio devices are heavily geared towards IoT applications. In addition to putting our C cross-compilation system to workwe will take a look at the IoT capability that is built into XBee data radio modules. Once the Raspberry Pi 4B serial interface is realizedthe Raspberry Pi 4B can command and control devices such as Time of Flight sensorsBluetooth radiosWi-Fi devices and peer embedded systems equipped with a serial interface.
Course Resources
Special Educational Materials
What to Know About the Raspberry Pi 4 - Blog
Intro to TensorFlow Lite Part 3: Speech Recognition on Raspberry Pi Digi-Key Electronics - Video
How to Use Raspberry Pi as a Web Server - Blog
Instructor
Fred Eady
Owner, EDTP Electronics Inc. and Principal Engineer, Ongoing Systems LLC.

Fred Eady is the owner of EDTP Electronics Inc. and is the principal engineer at the Georgia branch of Ongoing Systems LLC. EDTP Electronics was established in 1988. In the meantime, Fred has written thousands of magazine articles. He has written for all of the major electronic magazines, including Radio Electronics, Electronics Now, Nuts and Volts, Servo, MicroComputer Journal, and Circuit Cellar. Fred has even done a few short feature articles for Design News. To date, he has authored four books and contributed to a fifth. He currently works as a PIC microcontroller consultant and is a Microchip Authorized Design Partner. Fred’s expertise also extends into the ARM community where he is a hardware and firmware design consultant. His customers include aerospace companies, machine shops, specialty startup companies, medical machine manufacturers, coin-operated device businesses, and various other research and development companies. He has a very close working relationship with Microchip Technology, the manufacturer of PIC microcontrollers, and has taught multiple Ethernet and WiFi classes at Microchip's annual Masters Conference.