Skip to content
CEC Semester Twenty 2021

Scratch Building Raspberry Pi 4B IOT Hardware

Fred Eady -
Owner, EDTP Electronics Inc. and Principal Engineer, Ongoing Systems LLC.
September 20,
2021
Base Configuration Setup: Hardware and Software
We begin the lecture series by establishing a baseline Raspberry Pi 4B hardware and software configuration. Todaywe will load our Raspberry Pi 4B with the latest Linux operating system software. Once the Raspberry Pi 4B Linux image installation is completedwe will then install all of the necessary IoT development applications and libraries. Upon completion of the Raspberry Pi 4B software installationwe will turn our attention to the host Linux personal computer. The Linux-based host personal computer will run under the control of Ubuntu. We will install all of the necessary cross compilerslibrariesand applications to support firmware development for the Raspberry Pi 4B on the host Linux personal computer. The Linux host installation process will include the installationsetupand configuration of the latest version of the Eclipse IDE. Hardware base configuration will revolve around the installation of a Pi 4 click shield. All of the necessary jumpers on the Pi 4 click shield will be properly placed before mounting the Pi 4 click shield on top of the Raspberry Pi 4B. Verification of the base hardware and software configuration will be performed via code produced within the Eclipse IDE cross compilation environment.
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
September 21,
2021
Sockets and Raspberry Pi 4B GPIO
Now that we have established and verified our Raspberry Pi 4B baseline configurationwe can now put our Raspberry Pi 4B-based IoT platform to work. Todaywe will code a TCP/IP socket application that targets the Raspberry Pi 4B's GPIO subsystem. We will code a C-based application to manipulate the Raspberry Pi 4B's native set of GPIO pins. We will also use a TCP/IP connection to toggle the GPIO pins of a Microchip MCP23S17 I/O Expanderwhich will be mounted on the Pi 4 click shield. In additiontoday's lecture content will include a TCP/IP socket application that reports temperature and humidity gleaned from a Raspberry Pi 4B-supported CM2322 temperature/humidity sensorwhich is also mounted on the Pi 4 click shield. The firmware component of today's GPIO lecture will consist of a simple TCP/IP socket application followed up by a thread-based socket 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
September 22,
2021
Cellular Communication and the Raspberry Pi 4B
These days everyone is walking around face down with a cell phone in hand. Sowhy not put some usable data on that cell phone display? Todaywe will write a pair of Raspberry Pi 4B applications for a couple of GSM modules. Our first GSM application will target the Telit GL865-QUAD V3. Once we get the Telit application runningwe will turn our attention to writing a similar application for the Quectel M95. Both applications will be tasked with communicating with my iPhone via SMS messaging.
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
September 23,
2021
Getting a Fix - Raspberry Pi 4B GPS Driver
Todaywe will write a Raspberry Pi 4B application to take advantage of all of the GPS features provided by the u-blox LEA-6S position engine. Most of today's code will slice and dice GPS sentences. Our goal is to make some sense of all of the data the LEA-6S will be able to gather. With thatwe will mount our LEA-6S on the Pi 4 click shield and code until our fingers bleed.
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
September 24,
2021
Scratch Building a TFT click
All week we have been toggling Raspberry Pi 4B GPIOsensing temperature and humiditytransferring SMS messagesand trying to figure out where we are. It is time to break out the CAD program and the soldering iron. Todaywe will scratch build a click-similar TFT hardware platform that can be driven via our Pi 4 click shield. Along the waywe will also code a Raspberry Pi 4B TFT driver.
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.