mirror of
https://github.com/acabon29/ia_hackathon.git
synced 2025-10-29 19:45:59 +00:00
add readme
This commit is contained in:
parent
a97d12443c
commit
d51e1cd100
43
README.md
Normal file
43
README.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# 🚀 IA Hackathon Project
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
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. 🎯
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 📌 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:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
📌 **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
|
||||||
BIN
assets/blender/dents.blend
Normal file
BIN
assets/blender/dents.blend
Normal file
Binary file not shown.
BIN
assets/blender/ia workshop.blend
Normal file
BIN
assets/blender/ia workshop.blend
Normal file
Binary file not shown.
BIN
assets/images/project.jpg
Normal file
BIN
assets/images/project.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 692 KiB |
3
main.py
3
main.py
@ -131,7 +131,8 @@ def main():
|
|||||||
pygame.init()
|
pygame.init()
|
||||||
pygame.mixer.init()
|
pygame.mixer.init()
|
||||||
print("Connexion a la carte arduino...")
|
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)
|
time.sleep(2)
|
||||||
print("Connexion réalisé !")
|
print("Connexion réalisé !")
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user