ChatGPT Terminal Project

In this project you'll build a terminal for wirelessly connecting with the chatGPT API (Application Programming Interface), inputing requests on a keyboard connected to your microcontroller, and seeing responses on an OLED display.

Get instant access to this and all our other courses PLUS a cutting edge AI tool & private community forum for help and support from our team! 

What will I learn?

  • How to interface with the OpenAI ChatGPT API (Application Programming Interface)
  • How to read and design state diagrams to map out a project
  • Understand system, user, and assistant messages
  • Learn how a simple circular buffer is implemented for handling long conversations
  • And much more!

Prerequisites

  • This project walkthrough assumes you have a solid understanding of the Arduino platform and can comprehend topics like libraries, classes and functions. If you have finished the Arduino Course for Absolute Beginners – then this project will be right up your alley.

Required Hardware

  • ESP32 development board
  • OLED display
  • PS/2 serial port keyboard

For a full list of materials, please refer to the Bill of Materials

Reviews

"I found each lesson interesting and I looked forward to each one as I was enjoying them so much."
-John Simister, Victoria, AU

"Excellent job on the course. I very much enjoyed it and learned a lot. Thanks"
-Steve Tripoli

Course Description

In this project walkthrough you will:

  1. Setup an OpenAI developer account
  2. Learn about and test the OpenAI chatGPT API
  3. Talk about all the Bill of Materials for this project
  4. Build a chatGPT terminal on a breadboard, and move it to a protoboard if you’d like
  5. Then we’ll cover at a high level how the code works
    • We'll look at a state diagram that used to help develop this project
    • We’ll talk about the main data structure used to store messages between the user and the AI model
    • And we’ll walk through some of features of the code

Course Outline

  • OpenAI Developer Sign Up
  • OpenAI API
  • Messages Array
  • State Diagram
  • Bill Of Materials
  • Assembly
  • Get Code
  • Code: High Level
  • Code: Functions
  • Code: Includes
  • Code: System Variables
  • Code: Messages Array
  • Code: Circular Buffer
  • What’s Next

Get instant access to this and all our other courses PLUS a cutting edge AI tool & private community forum for help and support from our team!