Skip to content

CrewAI + Ollama + Llama3 team up to program my Arduino UNO

Notifications You must be signed in to change notification settings

mfarucci/crewai_llama3_arduino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img

When CrewAI meets Arduino

CrewAI + Llama3 + Ollama team up to program my Arduino UNO


Description

A funny project where we'll connecting [crewAI] with an Arduino. The final crew consists of two agents.

1️⃣ Sketch Programmer Agent

It receives a circuit description and its expected behaviour (e.g. light on and off a LED repeatedly) generating, in return, a sketch file (the script containing the code for sending instructions to Arduino).

2️⃣ Web Researcher

Takes the generated sketch file, compiles it and uploads the instructions into the Arduino. To achieve its goal, this agent uses a custom tool for the compilation and uploading.

img

Usage

There are a couple of prerequisites for running this project:

1️⃣ Arduino board

Since this project seeks to connect crewAI and Arduino ... you should have an Arduino 😅. In my case I was using an Arduino UNO.

2️⃣ Arduino CLI

Apart from the Arduino board, you'll also need to install the Arduino CLI. This is the CLI used by the custom tool for compiling and uploading the instructions to the Arduino.

Check the installation guide here.

3️⃣ Project dependencies

Finally, you need to install the project dependencies defined in the requirements file.

pip install -r requirements.txt

And, to run the kickoff the crew.

python main.py

About

CrewAI + Ollama + Llama3 team up to program my Arduino UNO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.2%
  • C++ 3.8%