Tag Archives: Python

AI on the Edge LESSON 7: Homework Solution for Dimmable LED

In this video lesson we present the solution to the homework assignment given in LESSON #6.  Your assignment was to create a dimmable LED where the brightness of the RGB LED is controlled by the potentiometer. We are still using the schematic from our earlier project.

Fusion Hat Circuit Diagram
This is the circuit we will use moving forward in the class

In this lesson, this is the code which we came up with:

 

AI on the Edge LESSON 4: Python Averaging Grades Homework Solution

In this video lesson, I show you my solution to the Homework Assignment in LESSON #3. If you were not able to do the homework yourself, you can follow along in the video. Make sure you can do it on your own, without checking back to my solution. You need to understand these basics before moving on the class.

This is my homework solution.

 

AI on the Edge LESSON 3: Learn Python Essentials In One Session

This new class, AI on the Edge, will use Python as the primary programming language. If you are not familiar with python, this video lesson will teach the essentials in one go. Go through the video, and follow the examples. Practice the things in the video, and then do the homework. If you can learn these basics, you should be able to follow along with the balance of the class.

AI on the Edge LESSON 2: Raspberry Pi Operating System for Artificial Intelligence

The major challenge we face in this AI on the Edge class is getting a Raspberry Pi 5 configures where you have all the AI Models, Libraries, Modules and Methods installed, and where they all play nicely together. Often, when you add a new model, the old model becomes broken. This is because when you install something new, it often times updates the dependencies. That means it updates a library already on your system. For example, lets say you have numpy 14, working with YOLO 11. Now you install mediapipe, and it updates numpy 14 to numpy 15. This then ‘Breaks’ your YOLO, as it wanted a different version of numpy.  Likely you will get frustrated and quit before you get the dependency problems solved. In order to get around this, you can use a special education version of the Bookworm OS, which has all the needed libraries installed already and working nicely with each other. The video above shows you how to install this OS. Once you do, no not update it, do not upgrade it, do not touch it. Use it to develop your programs and projects for this class. If you want to do something else with your pi, have a separate SD card.

PyQt Essentials for Absolute Beginners

In this Video Lesson we show you how to create a Graphical User Interface to allow you to interact with your python program and hardware projects. The GUI can have buttons, slider bars, radio buttons, drop down menus, and many more widgets. In this lesson we show you how to install the package, and step-by-step instructions on how to use it. For your convenience, here is the code we developed in the lesson.