Arduchat
This code sets up an Arduino device to connect to WiFi and communicate with the OpenAI API. It uses the Adafruit_SSD1306 library to control a small OLED display, displaying messages and responses from the API. The device sends a prompt to the API asking "What is Arduino?" and waits for a response, which it then displays on the OLED screen. This is done using a secure SSL connection, and the API key is stored as a variable in the code. Overall, this code demonstrates how an Arduino device can be used to interact with web services and display data on a small screen.
Components and supplies
1
Lipo Battery HJL 800 mah 11.1v
1
protoboard
1
Arduino MKR Motor Carrier
1
Jumpers for protoboard
1
Arduino MKR1000 WIFI
1
Display OLED 128x64 0,96 SSD1306
Tools and machines
1
USB -> Micro USB Cable
1
Laptop
Apps and platforms
1
Arduino IDE 2.0 (beta)
Project description
Code
Arduchat
This is the code for Arduchat
Downloadable files
Arduchat Code
This is the code too
Arduchat_code.ino
Comments
Only logged in users can leave comments