Compare commits

...

4 Commits

Author SHA1 Message Date
@arthurcabon29
0338d635e8 correct readme 2025-03-07 16:38:57 +01:00
@arthurcabon29
cfc11ab576 correct readme 2025-03-07 16:38:08 +01:00
@arthurcabon29
49bd95d51d update readme 2025-03-07 16:36:27 +01:00
@arthurcabon29
d51e1cd100 add readme 2025-03-07 16:27:11 +01:00
6 changed files with 57 additions and 1 deletions

55
README.md Normal file
View File

@ -0,0 +1,55 @@
# 🚀 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\n
✅ Request to mistral API\n
✅ Talk to text\n
✅ Text to talk\n
---
## 🛠️ Required Components
| Component | Quantity |
|-----------------|----------|
| Arduino Uno | 1 |
| Motor | 1 |
| Relais | 1 |
| Wires | Several |
---
## ⚙️ Wiring Diagram
Heres how to connect the components:
![Schemat](assets/images/schema.png)
📌 **Explanation:**
- Faites le putin de **schéma**
---
## 🖥️ Installation
1⃣ Clone this repository:
```sh
git clone https://github.com/user/my-arduino-project.git
```
2 follow the diagram for the connections
3 update motor.ino in arduino card and close the IDE Arduino (for resolve Serial problem)
4 Install all lib :
```sh
pip install requests openai-whisper sounddevice numpy soundfile pyttsx3 pygame pyserial
```
5 Replace MY_API_KEY and COM_OF_THE_ARDUINO in main.py
6 Run main.py
```sh
python main.py
```

BIN
assets/blender/dents.blend Normal file

Binary file not shown.

Binary file not shown.

BIN
assets/images/project.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 KiB

BIN
assets/images/schema.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

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: