My Account Log in

1 option

Accelerating IoT Development with ChatGPT : A Practical Guide to Building Your First IoT Project Using AI-Assisted Coding and Cloud Integration / Jun Wen.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Wen, Jun, 1957- author.
Language:
English
Subjects (All):
ChatGPT.
Internet of things.
Artificial intelligence.
Physical Description:
1 online resource (368 pages)
Edition:
First edition.
Place of Publication:
Birmingham, England : Packt Publishing, [2024]
System Details:
Mode of access: World Wide Web.
Biography/History:
Wen Jun: Jun Wen, the founder of AI Discovery Academy, is a passionate evangelist for AI enlightenment education among school students. With more than twenty years of experience in technology development, Jun has specialized in a wide range of industrial domains, including 4G/LTE, 5G, Wi-Fi, BLE, LoRaWAN, IoT, robotics, and AI. He has previously held senior product management positions at Fortune 500 companies such as Amazon, Cisco, and Motorola. Jun holds a Master of Science degree from Brown University and is an AWS Certified Solutions Architect - Professional. His passion extends to creating IoT innovations, utilizing platforms including Arduino, Raspberry Pi, RISC-V, and the AWS cloud, and finding practical applications for AI.
Summary:
Build cutting-edge projects with ChatGPT, PlatformIO, ESP32, and Arduino-compatible sensors by integrating AWS Cloud and the ThingsBoard dashboard Key Features Leverage ChatGPT to generate code on ESP32 for sending sensor data to AWS Cloud Create your own visualization dashboard on ThingsBoard Cloud Follow step-by-step configuration guidance to ingest, process, store, and query data on AWS Cloud Purchase of the print or Kindle book includes a free PDF eBook Book Description Unlike other IoT books that focus on theory and generic applications, this guide takes a practical approach, empowering you to leverage ChatGPT to build your very first IoT prototype. With over 20 years of experience in wireless and IoT technologies and a background as an instructor, Jun Wen expertly guides you from project kick-off to a fully functional prototype. The book emphasizes the transformative impact of ChatGPT for IoT, teaching you how to use ChatGPT to generate code for your applications, even with limited coding experience. You'll be introduced to using PlatformIO IDE within Visual Studio Code and discover the cutting-edge RISC-V architecture, the ESP32 MCU, Arduino-compatible sensors, and integration methods for AWS and the ThingsBoard dashboard. Working through 10 different project examples, including flame detection, smoke detection, and air quality measurement, you'll become proficient in the functions and specifications of each sensor and the use cases they solve. By the end of this book, you'll be ready to undertake IoT development projects, bridging the gap between your ideas and functional creations. What you will learn Master IoT essentials, such as networks, end devices, wireless connectivity, and the cloud Explore the ChatGPT prompting framework and build crucial skills for IoT projects Discover best practices for building robust IoT hardware prototypes Find out how to set up Visual Studio Code and PlatformIO IDE Connect ESP32 to AWS through TLS and MQTT Explore popular connectivity technologies widely adopted in IoT Integrate IoT sensors with ESP32 to capture accurate data using ChatGPT's assistance Who this book is for If you're a beginner interested in applying IoT technology to your projects but face challenges due to limited experience in embedded software coding, specifically in C and C++, this book is for you. Whether you're a student, hardware hobbyist, DIY enthusiast, IoT developer, or professional from a non-technical background, if you feel that your ability to innovate is often stalled by the complexity of software coding, this easy-to-follow guide to using ChatGPT for generating example code will boost your IoT prototype development.
Contents:
Cover
Copyright
Contributors
Table of Contents
Preface
Part 1: Understanding IoT Fundamentals
Chapter 1: IoT Essentials, All You Should Know
The evolving definition of IoT
Deployed from fixed to mobility
Mobility from a local area to a wide area
Presence from city to barren fields
Throughput from Mb/s to Gb/s
Battery life from days to years
Networking from point-to-point and point-to-multipoint to mesh and star topologies
Intelligence at edge node
AI and ML
Addressable markets
Residential
Commercial and business
Neighborhood and campus
Cities
Rural areas
Industries
How IoT impacts us
Living comfort and safety improvement
Operational efficiency improvement
Environmental protection improvement
Industrial productivity improvement
Summary
Further reading
Chapter 2: IoT Network, the Neural System of Things
IoT networks at home
Home Wi-Fi
BLE
Thread
IoT networks on campuses and in buildings
Enterprise Wi-Fi
Thread mesh
Private LoRaWAN network
No one-size-fits-all approach
IoT networks in cities
Cellular network
Public LoRaWAN network
IoT networks in rural areas
LEO network
Chapter 3: IoT End Devices, the Neuron Cells of an IoT System
Device types
Installing indoors versus outdoors
Powering via external supply versus batteries
Connected by wire versus wireless
The need for edge computing
Hardware architecture
MCUs
Roles
Key features
Critical components
Off-the-shelf MCU
DIY-friendly MCU
Peripherals and interfaces
GPIO
SPI
I2C
UART
USB
SDIO
ADCs
DACs
PWM outputs
JTAG
Timers
Real-time clock
Sensors and actuators
Sensors
Actuators
Common pins on sensors
Understanding sensor specifications.
Summary
Chapter 4: Wireless Connectivity, the Nervous Pathway to Delivering IoT Data
10 knowledge points about wireless data communication
OSI model
Signal processing
Electromagnetic waves
Frequency and wavelength
dB, dBm, and dBi
Signal strength and quality
Shannon's Law and theoretical channel capacity
Modulation
Antenna technology
Propagation distance
History and current status
Bluetooth 1.0 to 3.0 - the age of Bluetooth Classic
Bluetooth 4.0 to 5.3 and beyond - the era of BLE
Wi-Fi
Wi-Fi 6
Wi-Fi 6E
Wi-Fi 7
4G/LTE and 5G
NB-IoT
LTE CAT-M
Standard organization
Ecosystem players
Chapter 5: The Cloud, IoT's "Superpower Brain"
Important tips
Why is the cloud essential for IoT?
The pain point of IoT before the cloud
The impact of the cloud
Integrating IoT with the cloud
Device management
Data ingestion
Communication protocols between IoT devices and the cloud
MQTT
LwM2M
CoAP
AWS for IoT
AWS IoT Core
AWS IoT Device Management
AWS IoT Device Defender
AWS IoT Analytics
AWS Lambda
AWS Kinesis
AWS DynamoDB
AWS QuickSight
Part 2: Utilizing AI in IoT Development
Chapter 6: Applying ChatGPT in the IoT Innovation Journey
Reshaping the future with AI
Utilizing ChatGPT in IoT development process
Interacting with ChatGPT properly
Best practices for beginner IoT projects
Prompt framework options
Best practice prompt examples
Generating code snippets on ESP32
Chapter 7: Recommendations to Start Your First IoT Project
Technical requirements
Thinking big and starting small
Reaching out for the low-hanging fruits first
Summary.
Chapter 8: 10 Beginner-Friendly IoT Projects with ChatGPT Prompts
Project 1 - temperature and humidity measurement
Specifications
Applications
Prompt to ChatGPT
Code example
Project 2 - flame detection
Analog output values
Project 3 - PIR motion detection
Project 4 - gas detection
Project 5 - distance measurement
Project 6 - tilt detection
Project 7 - vibration detection
Project 8 - collision detection
Project 9 - soil moisture detection
Project 10 - magnetic change detection
Chapter 9: Using AI Tools to Draw Application Flow Diagrams
Using diagrams for a better application journey
Processing data locally
Establishing an internet connection
Sending sensor data to Cloud
Data processing on the cloud
Part 3: Practicing an End-to-End Project
Chapter 10: Setting Up the Development Environment for Your First Project
Installing Visual Studio Code (VS Code)
Setting up PlatformIO IDE
Installing other coding assistance extensions
Creating your first project under PlatformIO
Chapter 11: Programming Your First Code on ESP32.
Designing the application's local logic
Creating a flow diagram with ChatGPT
Building a device hardware prototype
Instructing ChatGPT to generate C++ code
Code examples
Using PlatformIO to program code on the ESP32
Chapter 12: Establishing Wi-Fi Connectivity
Designing Wi-Fi access logic
Creating the Wi-Fi access flow diagram
Instructing ChatGPT to generate code
Validating internet access on ESP32
Chapter 13: Connecting the ESP32 to AWS IoT Core
Understanding the approach to connect the ESP32 to AWS IoT Core
Provisioning the ESP32 in AWS IoT Core
Creating an AWS credential header file on the ESP32
Instructing ChatGPT to produce TLS code on the ESP32
Validating access status on the ESP32
Chapter 14: Publishing Sensor Data to AWS IoT Core
Sending sensor data through MQTT Publish
Constructing an MQTT Publish topic and payload in ESP32
Validating the delivered sensor data
Chapter 15: Processing, Storing, and Querying Sensor Data on AWS Cloud
Creating a customer-managed policy
Task 1 - abnormal event process
Configuration steps
Creating a message routing rule
Creating a Lambda function
Creating an SNS topic
Programming the Lambda function
Task 2 - data storage and querying
Creating IoT Analytics resources
Creating a second message routing rule
Running a data query
Chapter 16: Creating a Data Visualization Dashboard on ThingsBoard
Integrating the AWS cloud with ThingsBoard
Task 1 - Provisioning a ThingsBoard agent with AWS
Task 2 - Creating the data converter and integrating it with ThingsBoard
Task 3 - Producing a real-time dashboard with ThingsBoard
Index
Other Books You May Enjoy.
Notes:
Includes bibliographical references and index.
Description based on publisher supplied metadata and other sources.
Description based on print version record.
ISBN:
9781835467879
1835467873
OCLC:
1452290918

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account