The BeagleY-AI Handbook

A Practical Guide to AI, Python, and Hardware Projects

Dogan Ibrahim und Ahmet Ibrahim

Diese Publikation zitieren

Dogan Ibrahim, Ahmet Ibrahim, The BeagleY-AI Handbook (2025), Elektor, Aachen, ISBN: 9783895766572

2
Accesses

Beschreibung / Abstract

Welcome to your BeagleY-AI journey! This compact, powerful, and affordable single-board computer is perfect for developers and hobbyists. With its dedicated 4 TOPS AI co-processor and a 1.4 GHz Quad-core Cortex-A53 CPU, the BeagleY-AI is equipped to handle both AI applications and real-time I/O tasks. Powered by the Texas Instruments AM67A processor, it offers DSPs, a 3D graphics unit, and video accelerators.

Inside this handbook, you‘ll find over 50 hands-on projects that cover a wide range of topics—from basic circuits with LEDs and sensors to an AI-driven project. Each project is written in Python 3 and includes detailed explanations and full program listings to guide you. Whether you‘re a beginner or more advanced, you can follow these projects as they are or modify them to fit your own creative ideas.

Here’s a glimpse of some exciting projects included in this handbook:

  • Morse Code Exerciser with LED or Buzzer
    Type a message and watch it come to life as an LED or buzzer translates your text into Morse code.
  • Ultrasonic Distance Measurement
    Use an ultrasonic sensor to measure distances and display the result in real time.
  • Environmental Data Display & Visualization
    Collect temperature, pressure, and humidity readings from the BME280 sensor, and display or plot them on a graphical interface.
  • SPI – Voltmeter with ADC
    Learn how to measure voltage using an external ADC and display the results on your BeagleY-AI.
  • GPS Coordinates Display
    Track your location with a GPS module and view geographic coordinates on your screen.
  • BeagleY-AI and Raspberry Pi 4 Communication
    Discover how to make your BeagleY-AI and Raspberry Pi communicate over a serial link and exchange data.
  • AI-Driven Object Detection with TensorFlow Lite
    Set up and run an object detection model using TensorFlow Lite on the BeagleY-AI platform, with complete hardware and software details provided.

Inhaltsverzeichnis

  • The BeagleY-AI Handbook
  • All rights reserved
  • Contents
  • 1 • Introduction
  • 1.1 The BeagleY-AI Single Board Computer (SBC)
  • 1.2 BeagleY-AI Features
  • 1.3 BeagleY-AI Board Component Layout
  • 1.4 Comparison with the Raspberry Pi 5
  • 1.5 Pros and Cons
  • 2 • Installing the Operating System
  • 2.1 Overview
  • 2.2 The Installation of the Operating System
  • 2.3 Connection to a Wi-Fi
  • 2.4 Accessing Your BeagleY-AI Console from Your PC – The PuTTY Program
  • 2.5 BeagleY-AI CPU Temperature
  • 3 • Using the Console Commands
  • 3.1 Overview
  • 3.2 The Command Prompt
  • 3.3 Useful Console Commands
  • 4 • GUI Desktop Applications
  • 4.1 Overview
  • 4.2 The GUI Desktop
  • 5 • Using a Text Editor in Console Mode
  • 5.1 Overview
  • 5.2 The nano Text Editor
  • 5.3 The vi Text Editor
  • 5.4 Using Thonny
  • 5.5 The gedit Text Editor
  • 6 • Creating and Running a Python Program
  • 6.1 Overview
  • 6.2 Method 1 – Interactively from Command Prompt in Console Mode
  • 6.3 Method 2 – Create a Python File in Console Mode
  • 6.4 Method 3 – Create a Python File in GUI Desktop Mode
  • 6.5 Which Method?
  • 7 • Python Programming and Simple Programs
  • 7.1 Overview
  • 7.2 Variable Names
  • 7.3 Reserved Words
  • 7.4 Comments
  • 7.5 Line Continuation
  • 7.6 Blank Lines
  • 7.7 More Than One statement on a Line
  • 7.8 Indentation
  • 7.9 Python Data Types
  • 7.10 Numbers
  • 7.11 Strings
  • 7.12 Print Statement
  • 7.13 List Variables
  • 7.14 Tuple Variables
  • 7.15 Dictionary Variables
  • 7.16 Keyboard Input
  • 7.17 Comparison Operators
  • 7.18 Logical Operators
  • 7.19 Assignment Operators
  • 7.20 Control of Flow
  • 7.21 Example 1 – 4 Band Resistor Color Code Identifier
  • 7.22 Example 2 – Series or Parallel Resistors
  • 7.23 Example 3 - Resistive Potential Divider
  • 7.24 Trigonometric Functions
  • 7.25 User Defined Functions
  • 7.26 Examples
  • 7.27 Recursive Functions
  • 7.28 Exceptions
  • 7.29 try/final Exceptions
  • 7.30 Date and Time
  • 7.31 Creating Your Own Modules
  • 8 • BeagleY-AI LED Projects
  • 8.1 Overview
  • 8.2 BeagleY-AI GPIO pin Definitions
  • 8.3 Project 1 – Flashing an LED
  • 8.4 Project 2 – Alternately Flashing LEDs
  • 8.5 Project 3 – Binary Counting with 8 LEDs
  • 8.6 Project 4 – Christmas Lights (Random Flashing 8 LEDs)
  • 8.7 Project 5 – Chasing LEDs
  • 8.8 Project 6 – Rotating LEDs with Pushbutton Switch
  • 8.9 Project 7 – Morse Code Exerciser with LED or Buzzer
  • 8.10 Project 8 – Electronic Dice
  • 8.11 Project 9 – Varying the LED Flashing Rate
  • 9 • Using an I2C LCD
  • 9.1 Overview
  • 9.2 The I2C Bus
  • 9.3 I2C Pins of BeagleY-AI
  • 9.4 Project 1 – Using an I2C LCD – Seconds Counter
  • 9.5 Project 2 – Using an I2C LCD – Display Time
  • 9.6 Project 3 – Using an I2C LCD – Display the IP address of BeagleY-AI
  • 9.7 Project 4 – Reaction Timer – Output to Screen
  • 9.8 Project 5 – Reaction Timer – Output to LCD
  • 9.9 Project 6 – Automatic Dusk Lights
  • 9.10 Project 7 – Ultrasonic Distance Measurement
  • 9.11 Project 8 – Car Parking Sensors
  • 10 • Plotting Graphs With Python and BeagleY-AI
  • 10.1 Overview
  • 10.2 The Matplotlib Graph Plotting Library
  • 10.3 Project 1 – RC Transient Circuit Analysis - Charging
  • 10.4 Project 2 – RC Transient Circuit Analysis - Discharging
  • 10.5 Transient RL Circuits
  • 10.6 Project 3 – RCL Transient Circuit Analysis
  • 10.7 Project 4 – Temperature, Pressure, and Humidity Measurement – Display on the Screen
  • 10.8 Project 5 – Temperature, Pressure, and Humidity Measurement – Plotting the Data
  • 11 • Using a 4 x 4 Keypad
  • 11.1 Overview
  • 11.2 Project 1 – Using a 4x4 Keypad
  • 11.3 Project 2 – Security Lock with Keypad and LCD
  • 12 • I2C, SPI Bus, and PWM Projects
  • 12.1 Overview
  • 12.2 Project 1 - I2C Port Expander
  • 12.3 Project 2 - SPI ADC - Voltmeter
  • 12.4 Project 3 – Voltmeter – Output to LCD
  • 12.5 Project 4 – Analog Temperature Sensor Thermometer – Output to the Screen
  • 12.6 Project 5 – Analog Temperature Sensor Thermometer – Output on LCD
  • 12.7 Using a Digital to Analog Converter (DAC)
  • 12.8 Pulse Width Modulation (PWM)
  • 13 • Communication Over the Wi-Fi
  • 13.1 Overview
  • 13.2 UDP and TCP
  • 13.3 Project 1 – Sending a Text Message to a Smartphone Using TCP
  • 13.4 Project 2 – Two-way Communication with the Smartphone Using TCP
  • 13.5 Project 3 – Communicating with a PC Using TCP
  • 13.6 Project 4 – Controlling an LED Connected to BeagleY-AI from a Smartphone Using TCP
  • 13.7 Project 5 – Sending a Text Message to a Smartphone Using UDP
  • 13.8 Project 6 – Controlling an LED Connected to BeagleY-AI from a Smartphone Using UDP
  • 13.9 Communicating with the Raspberry Pi Pico W over Wi-Fi
  • 13.10 Project 8 - Storing Ambient Temperature and Atmospheric Pressure Data on the Cloud
  • 13.11 Using Flask to Create a Web Server to Control BeagleY-AI GPIO Ports from the Internet
  • 13.12 Project 9 – Web Server - Controlling an LED Connected to BeagleY-AI Using the Flask
  • 14 • Using Serial Communication
  • 14.1 Overview
  • 14.2 USB – TTL Serial Conversion Modules
  • 14.3 BeagleY-AI and PC Communication Over Serial Port – Testing the Hardware and Software Configurations
  • 14.4 Project 1 – BeagleY-AI – PC Two-Way Communication Over Serial Port – Using Python
  • 14.5 Reading Geographical Coordinates – Using a GPS
  • 15 • Real Time Clock (RTC)
  • 15.1 Overview
  • 15.2 The Hardware
  • 15.3 Setting the RTC Time
  • 16 • Artificial Intelligence (AI) with the BeagleY-AI
  • 16.1 Overview
  • 16.2 BeagleY-AI Detailed Hardware Specifications
  • 16.3 Project 1 - BeagleY-AI TensorFlow Lite Object Detection
  • 16.4 BeagleY-AI ChatGPT
  • 16.5 BeagleY-AI Smart Assistant
  • 16.6 BeagleY-AI Robotics
  • 16.7 BeagleY-AI Machine Learning
  • 17 • Useful Websites
  • Index

Ähnliche Titel

    Mehr von diesem Autor