🧪 De nouveaux tutoriels arrivent — du bras robotique au capteur
Aller au contenu

Raspberry Pi: Communication IIC ​

Installer les dépendances ​

Plain
sudo apt-get update
Plain
sudo apt-get install -y python3-smbus python3-serial i2c-tools

Activer l'I2C ​

Plain
sudo raspi-config

Sélectionnez Interface Options -> I2C -> Yes

Redémarrez le Raspberry Pi

Emplacement du fichier ​

~/IIC_Voice/iic_voice.py

Instructions de câblage ​

Image 1

Exécution ​

Plain
cd IIC_Voice
Plain
python3 iic_voice.py

Format de sortie ​

Plain
Speech Serial Opened! Baudrate=115200
ID:4
ID:1
ID:10