A project developed during MLH Hack Nights in Sheffield × iForge on April 26th, 2025. This project connects an Arduino to Google's Gemini AI API to create an intelligent assistant device.
This project uses an Arduino board with WiFi capabilities to connect to Google's Gemini AI API. It sends text prompts to the API and receives AI-generated responses, allowing your Arduino to act as an AI assistant for various applications. If you wish to use
- Arduino board with WiFi capabilities
- Arduino IDE installed (Download here)
- USB Type-C cable for connecting Arduino to computer
- Google Gemini API key
- WiFi connection
-
Clone this repository to your local machine
-
Create a
secrets.h
file in thesrc
directory with the following content:#define SSID "your_wifi_name" #define WIFI_PASSWORD "your_wifi_password" #define API_KEY "your_gemini_api_key"
-
Connect your Arduino board to your computer using a USB-C cable
-
Open the Arduino IDE and load the project
-
Select your Arduino board from Tools > Board menu
-
Upload the code to your Arduino
Once the code is uploaded and running:
- The Arduino will connect to your WiFi network
- It will send a sample prompt to the Gemini API
- The response will be displayed in the Serial Monitor
- You can customize the prompts in the
main.ino
file
main.ino
: Contains the main Arduino setup and loop functionsgemini.ino
: Contains the WiFi connection and Gemini API functionssecrets.h
: Contains your personal WiFi and API credentials (not included in repository)
This project was created during the MLH Hack Nights in Sheffield × iForge event.
- 11:30am-12:00pm: Arrival (Diamond CR4)
- 12:00pm-12:30pm: Opening ceremony and team building
- 12:30pm: Hacking begins
- 1:00pm: Lunch
- 3:00pm: Mini event
- 5:00pm: Dinner
- 6:00pm: Soft deadline for submissions
- 6:30pm: Hard deadline - Hacking ends
- 6:30pm-7:30pm: Judging
- 7:30pm-8:00pm: Closing ceremony and prizes
Developed by [Your Name/Team Name] during MLH Hack Nights in Sheffield × iForge, April 2025.
This project is open source and available under the MIT License.