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

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...

Descripción completa

Detalles Bibliográficos
Otros Autores: Wen, Jun, 1957- author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England : Packt Publishing [2024]
Edición:First edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009845435906719
Tabla de Contenidos:
  • 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
  • Private LoRaWAN network
  • LEO network
  • Summary
  • 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
  • BLE
  • 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
  • History and current status
  • Wi-Fi 6
  • Wi-Fi 6E
  • Wi-Fi 7
  • 4G/LTE and 5G
  • History and current status
  • NB-IoT
  • LTE CAT-M
  • Standard organization
  • Ecosystem players
  • Summary
  • 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
  • Summary
  • Part 2: Utilizing AI in IoT Development
  • Chapter 6: Applying ChatGPT in the IoT Innovation Journey
  • Important tips
  • 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
  • Summary
  • 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
  • Technical requirements
  • Project 1 - temperature and humidity measurement
  • Specifications
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Project 2 - flame detection
  • Specifications
  • Analog output values
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Project 3 - PIR motion detection
  • Specifications
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Project 4 - gas detection
  • Specifications
  • Analog output values
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Project 5 - distance measurement
  • Specifications
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Project 6 - tilt detection
  • Specifications
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Project 7 - vibration detection
  • Specifications
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Project 8 - collision detection
  • Specifications
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Project 9 - soil moisture detection
  • Specifications
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Project 10 - magnetic change detection
  • Specifications
  • Applications
  • Prompt to ChatGPT
  • Code example
  • Summary
  • 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
  • Summary
  • Part 3: Practicing an End-to-End Project
  • Chapter 10: Setting Up the Development Environment for Your First Project
  • Technical requirements
  • Installing Visual Studio Code (VS Code)
  • Setting up PlatformIO IDE
  • Installing other coding assistance extensions
  • Creating your first project under PlatformIO
  • Summary
  • 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
  • Summary
  • Chapter 12: Establishing Wi-Fi Connectivity
  • Designing Wi-Fi access logic
  • Creating the Wi-Fi access flow diagram
  • Instructing ChatGPT to generate code
  • Code examples
  • Validating internet access on ESP32
  • Summary
  • Chapter 13: Connecting the ESP32 to AWS IoT Core
  • Technical requirements
  • 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
  • Code examples
  • Validating access status on the ESP32
  • Summary
  • Chapter 14: Publishing Sensor Data to AWS IoT Core
  • Technical requirements
  • Sending sensor data through MQTT Publish
  • Constructing an MQTT Publish topic and payload in ESP32
  • Code examples
  • Validating the delivered sensor data
  • Summary
  • 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
  • Summary
  • Chapter 16: Creating a Data Visualization Dashboard on ThingsBoard
  • Technical requirements
  • 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
  • Summary.
  • Index
  • Other Books You May Enjoy.