Skip to content

Repository for controlling Arduino microcontrollers with ChatGPT

License

Notifications You must be signed in to change notification settings

Jshulgach/ArduinoGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArduinoGPT

Repository for controlling Arduino microcontrollers with ChatGPT

In the tests folder, I have test scripts playing around with various features like the OpenAI API, voice commands, serial communication, etc. It's unorganized for now

Installation

ALl the required libraries can be installed by navigating to this folder directory, and running the following command in a terminal:

pip install -r requirements.txt

Test Scripts

uno-led-test.py - This program is a speech recognition and text-to-speech program that utilizes the OpenAI API to send commands to a microcontroller that controls it's built-in LED. For example, a voice command saying something like "turn on the led, wait 2 seconds, then turn it off" will be deconstructed into multiple prompts using LangChain with LLM.

uno-chatgpt


To run this program, you must have an OpenAI API key. See the instructions from OpenAI for how to set up your API key.

You should also have the Arduino IDE editor installed which should take care of AVR board driver installation.

Check the port assigned to your Arduino board plugged into the computer. For Windows OS, the port will look something like 'COM#' and an assigned number (e.g. 'COM6'). For Linux systems, USB devices will be displayed with '/dev/ttyACM#' (e.g. /dev/ttyACM0).

Navigate to the tests folder and run the example below. Remember to replace the port with your board's port:

cd tests
python uno-led-test.py --port YOURCOMPORT

About

Repository for controlling Arduino microcontrollers with ChatGPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published