diff --git a/README.md b/README.md new file mode 100644 index 0000000..658a58f --- /dev/null +++ b/README.md @@ -0,0 +1,43 @@ +# 🚀 IA Hackathon Project + +![Arduino Project](images/project.png) + +Welcome to **IA Hackathon Project**! About +This project was made as part of a collaboration between **42 school** and **Lazada art school**. The goal was to make an AI with **psychiatric problems** in pairs. So we decided to make a child with tics. 🎯 + +![Photo](assets/images/project.jpg) + +## 📌 Features +✅ Motor activation based on python request +✅ Request to mistral API +✅ Talk to text +✅ Text to talk + +--- + +## 🛠️ Required Components +| Component | Quantity | +|-----------------|----------| +| Arduino Uno | 1 | +| Motor | 1 | +| Relais | 1 | +| Wires | Several | + +--- + +## ⚙️ Wiring Diagram +Here’s how to connect the components: + +![Diagram](assets/images/project.jpg) + +📌 **Explanation:** +- The **HC-SR04 sensor** is connected to **Trig** and **Echo** pins +- The **motor** is connected to a **relay** on **pin D3** +- The **Arduino** communicates via **USB** with a PC + +--- + +## 🖥️ Installation +1️⃣ Clone this repository: +```sh +git clone https://github.com/user/my-arduino-project.git diff --git a/assets/blender/dents.blend b/assets/blender/dents.blend new file mode 100644 index 0000000..0665556 Binary files /dev/null and b/assets/blender/dents.blend differ diff --git a/assets/blender/ia workshop.blend b/assets/blender/ia workshop.blend new file mode 100644 index 0000000..5647127 Binary files /dev/null and b/assets/blender/ia workshop.blend differ diff --git a/assets/images/project.jpg b/assets/images/project.jpg new file mode 100644 index 0000000..00352d6 Binary files /dev/null and b/assets/images/project.jpg differ diff --git a/main.py b/main.py index eed64d2..a924bde 100644 --- a/main.py +++ b/main.py @@ -131,7 +131,8 @@ def main(): pygame.init() pygame.mixer.init() print("Connexion a la carte arduino...") - arduino = serial.Serial('COM4', 9600, timeout=1) + # Replace with the correct port where the arduino is installed. ex: COM4 + arduino = serial.Serial('COM_OF_THE_ARDUINO', 9600, timeout=1) time.sleep(2) print("Connexion réalisé !") while True: