Тёмный

I2C on the Raspberry Pi - HOW TO use I2C with Python 

pi3g
Подписаться 2,5 тыс.
Просмотров 33 тыс.
50% 1

Опубликовано:

 

23 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@Eddie.Mootsen
@Eddie.Mootsen Год назад
Thanks. Using virtual environment is good idea !
@KulaGGin
@KulaGGin 5 месяцев назад
It's not a good idea. It's just a necessity: it's forced by the Python community on Linux and if we don't, we get errors while installing any packages system-wide. Had to lose an hour or two on a project with a very close dead line and make sense of these virtual environments and I was forced to use it. But I've been using Python on Windows on many projects for many years without any problems and never used virtual environments. I used it to write programs for many different things: scripts to do stuff on the system, scripts to do stuff on web, extensions for different programs: Blender, IDA. And many other things.
@vaclavnemec5996
@vaclavnemec5996 Год назад
Hi, thank you for this tutorial. For some reason, i can detect the I2C slave (made from RP2040) with i2cdetect -y 1 on Raspberry pi 3 B V1.2 before i run the script. After this, the I2C gets probably blocked and when i try to run i2cdetect -y 1 again, it gets ultra slow and nothing is detected - the journalctl kernel says "i2ctransfer timed out". Do you have any idea what is going on? Thank you very much in advance, keep going and building the cahnnel. Best wishes and Happy New year to you! =)
@KulaGGin
@KulaGGin 5 месяцев назад
Thanks for showing how to enable I2C. I'm getting *No Hardware I2C on (scl,sda)=(3, 2)* error even considering I connected everything correctly and the tutorial doesn't explain that I have to enable I2C in the config of the device.
@insylem
@insylem Год назад
At 2:43 Where is the adress "0x77" displayed? It shows a 77 at 7 horizontal and 70 vertical. It shows blanks on 0 - 7 horizontal at 00 vertial, and shows "--" for everything elase
@pi3g
@pi3g Год назад
Hi @insylem - this is a good question! What you're looking at is a I2C device output table in hexadecimal. When you see a "--", that means that it's not detecting any device. The "77" is reached by adding the "7" (vertical) to the "70" (horizontal). In I2C output tables, the 0x isn't included, so that's why you don't see 0x, even though the full address here is 0x77.
@insylem
@insylem Год назад
@@pi3g thanks
@devdass6465
@devdass6465 5 месяцев назад
I've been constantly getting this error again and again {ERROR: Could not find a version that satisfies the requirement Ada ERROR: No matching distribution found for Ada} What should I do??
@shrishailctalukar
@shrishailctalukar 11 месяцев назад
How to control I2C device with sysfs?
Далее
ТЕСЛА КИБЕРТРАК x WYLSACOM / РАЗГОН
1:40:47
What is I2C, Basics for Beginners
18:30
Просмотров 166 тыс.
I2C with Arduino and Raspberry Pi - Two Methods
30:13
Просмотров 205 тыс.
The Petabyte Pi Project
22:27
Просмотров 2,2 млн
How To Find Unknown I2C Addresses Several Ways
17:32
Просмотров 19 тыс.
Using the second (I2C 0) port on a Raspberry Pi
4:11
I2C | Raspberry Pi Pico Workshop: Chapter 4.4
14:15
Просмотров 3 тыс.