add readme

This commit is contained in:
@arthurcabon29
2025-03-07 16:27:11 +01:00
parent a97d12443c
commit d51e1cd100
5 changed files with 45 additions and 1 deletions
+43
View File
@@ -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
Heres 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
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 692 KiB

+2 -1
View File
@@ -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: