I2C with Arduino and Raspberry Pi - Two Methods

I2C with Arduino and Raspberry Pi - Two Methods

DroneBot Workshop

5 лет назад

205,037 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@aqiiiiiiiil
@aqiiiiiiiil - 17.12.2020 10:36

Hi, do you have a guide on connecting multiple slave arduino from master raspi ?

Ответить
@karthikregu6952
@karthikregu6952 - 03.01.2021 08:43

is it possible atmega 328 chip as i2c with out Arduino ,after programming in with Arduino

Ответить
@rubenhidalgocarrillo
@rubenhidalgocarrillo - 19.01.2021 19:10

Hi!
I don't know your name, I've been searching but I have not found it...
First of all, you're a very good teacher!!!!
I've have a question... The smbus library on the Raspberry Pi BLOCKS the program execution until it has transferred the whole data. If you use the serial channel it does not happen in this way. For serial, you write, the function returns, and in the background the transmission takes place.
It is a great inconvenience, thus the program can do nothing that waiting for the transmission.
The only solution I've found to avoid this situation is to build a socket server, place on it the communication, and call this server in other programs. In the case the program is a web page the solution is good, but I don't understand why the smbus library has been designed in this way.
I've tried to place the i2c communication in a separated thread in the same program, but it does not work...

Sorry for my English.... I'm spanish.

Congratulations for your videos!!!
Thaks!

Ответить
@Damoon2543
@Damoon2543 - 27.01.2021 01:37

Thank you! It was really helpful and informative. I also think educational and scientific could be a little more smiley ;)

Ответить
@francescolaporta9704
@francescolaporta9704 - 31.01.2021 01:52

but what if i want to send strings? how can I do? can you give an example?

Ответить
@vdubmerc3
@vdubmerc3 - 07.02.2021 05:19

Any future plans on making a tutorial on using an Arduino as a Master and a RPi as a Slave?

Ответить
@neilAneerGAmAI
@neilAneerGAmAI - 11.02.2021 19:43

Very helpful. Thanks!

Ответить
@belkhiriasadok7245
@belkhiriasadok7245 - 17.02.2021 20:35

My absolute heartfelt thanks for your incredible contribution.
I am looking to setup a project and after doing a lot of research on the subject i've decided to go with a single rpi connected to multiple arduinos slaves over i2c . So is there any way to do that and how to connect more than an arduino board????

Ответить
@andreipata321
@andreipata321 - 27.02.2021 21:30

I got a question...if i want to use them in a portable project and i will use a battery pack probably where should i connect the battery and how and what voltage should the batteries output ?

Ответить
@anthonywooten9930
@anthonywooten9930 - 27.03.2021 17:43

Making a GPS tracking uav drone for my project. Thinking of combining arduino and the pi for it? Steps to make that work?

Ответить
@wissamchahla6793
@wissamchahla6793 - 29.04.2021 01:12

Hello,
Thanks for great tutorials.
I have a question on the logic level converter.
i have two arduino boards (Nano and Nao 33 IOT) they operate at different voltage levels.
how can we do serial communication between these two boards ? will the I2c level convertor work in this scenario or i need something else?
Regards

Ответить
@N1ghtR1der666
@N1ghtR1der666 - 08.05.2021 09:11

I have no trouble sending data from pi to arduino or from arduino ot pi but I cant work out both, I need 2 way communication, what would I need to change to get this going. simply adding the read and write commands to both causes either a communication error or causes the arduino to power cycle

Ответить
@ratanpal6760
@ratanpal6760 - 11.05.2021 16:29

You are genius.Your detailing and way of description is just marvelous. If you can make some videos related to some basic electronics, It would be so useful for laymen like me.

Ответить
@aremumuiz6994
@aremumuiz6994 - 23.05.2021 13:22

is it possible to expand or increase raspberry pi pico GPIO

Ответить
@busraakargol5
@busraakargol5 - 02.06.2021 13:56

Hey sir, I have some problems, may you help me?

Ответить
@davidmc105
@davidmc105 - 27.10.2021 08:38

These are the most easily understood and trustworthy tutorials I have seen. I'm trying something similar but unsuccessfully so far. Does an Arduino Nano have a 5V I2C pull up? Specifically, can I use an Arduino Nano (5V) slave with an ESP8266 ESP01 (3.3V) master without a Logic Level Converter?

Ответить
@gerhardseipp5544
@gerhardseipp5544 - 13.12.2021 20:15

once again learned something with joy. great explains how to connect a raspberry pi to an arduino Thank you from Germany

Ответить
@andrewferg8737
@andrewferg8737 - 30.12.2021 21:52

Can you wire a Pi Motor HAT directly to an Arduino by just connecting the corresponding I2C pins (A4 & A5 to pi 3 & 5) ?

Ответить
@net51cc
@net51cc - 01.01.2022 23:11

Did you actually upload the video on using multiple i2c masters and extending the bus? I can't find it. BTW I love your videos.

Ответить
@eugenex8892
@eugenex8892 - 14.01.2022 03:50

It's stupid to connect arduino directly to I²C buss, USB connection are most successful for connection. Also bcm2835 pin header are very unsuccessful in programming logic.

Ответить
@consolenichecsn6930
@consolenichecsn6930 - 24.01.2022 05:34

Great video. Didn't use the Arduino as a master and raspberry as a slave.

Ответить
@Aliye727
@Aliye727 - 26.01.2022 15:39

hi ı have a ubuntu on my raspberyy pi 4 how ı can setup that

Ответить
@It4heath
@It4heath - 07.02.2022 19:46

Thank You for covering this subject. I was having an issue powering/grounding an IoT project that has an UNO R3 connected to a DHT11 with 2 way communicating with an ESP8266 that is connected to wi-fi and a 4-way relay. The 3.3/5 volt common grounding was giving me a head ach, and causing issues with the sensor data transmitting continuously. No one else really covers things as well as you do. AWWWsome and thank you again.

Ответить
@amsunaakage
@amsunaakage - 12.02.2022 21:12

God Bless you, thank you very much for sharing your experience and knowledge with us, you are a great tutor <3

Ответить
@vincentcaudo-engelmann9057
@vincentcaudo-engelmann9057 - 21.02.2022 03:05

Super high quality instruction. Thank you for this video.

Ответить
@naomisunga4799
@naomisunga4799 - 27.02.2022 10:45

Can Raspberry Pi and Raspberry Pi Pico can be connected?

Ответить
@ivanrojas1475
@ivanrojas1475 - 15.03.2022 08:18

PLEASE HELP, WHICH VERSION OF PYTHON IS HE USING? I used 3.9.0 and it doesn't recognize the smbus and also the smbus2

Ответить
@bestest43
@bestest43 - 18.03.2022 10:26

how does raspberry differ from being master to slave in the first and the second setups? Moreover, I couldn’t fully understand why we shouldn’t you use any other i2c device while we connect arduino and rasp?

Ответить
@addohm
@addohm - 06.04.2022 05:13

Would like to have seen requests like we do with arduino to arduino.

Ответить
@mohamedyosef7505
@mohamedyosef7505 - 02.05.2022 00:53

Hello,
I've watched all your videos about I2C protocol and I'm trying to send data from arduino to my raspberry pi but it's not working
every time I try to send data from my pi to arduino works fine but when i try to read a block of data or even a single byte it's not working at all and gives me error or gives me trash data, Can you help me please 😊!

Ответить
@raisagorbachov
@raisagorbachov - 14.05.2022 18:27

I2C on a Pi Pico would be interesting. That's the route I'm trying to follow - after I understand I2C a bit more.

Ответить
@Lunarspear2023
@Lunarspear2023 - 02.07.2022 22:55

Can anyone point me to the right way to send an array from arduino to raspberry pi over i2c? Sending from the py to arduino works as intended.

Ответить
@mini_special
@mini_special - 22.07.2022 19:48

Thank you for your video. It helped me a lot.

Ответить
@dustydodge1781
@dustydodge1781 - 31.07.2022 17:52

I have really appreciated all your videos!! Any advice on how to set up the RPI as the slave? I can’t seem to find any examples on how to do that. I have the logic converter connected, but can’t get the code working.

Ответить
@weeeBloom
@weeeBloom - 02.10.2022 18:47

great tutorial, thanks a lot!

Ответить
@dominiksagn788
@dominiksagn788 - 08.10.2022 17:05

Awesome Video!

Ответить
@BleepKing
@BleepKing - 16.12.2022 10:27

will a pico work as a peripheral using the arduino ide?

Ответить
@nagireddy3341
@nagireddy3341 - 05.04.2023 09:35

Can we connect 5v operating sensor to Arduino while using i2c

Ответить
@RoboSidekick
@RoboSidekick - 18.05.2023 02:23

I wilder how much traffic can this bus handle?

Ответить
@DiyintheGhetto
@DiyintheGhetto - 04.06.2023 08:00

Hello, I'm new to coding my skills are mostly in hardware. But I was wondering If I'm controling over 30 relays from the arduino how do I control them through the raspverry pi using a web server page from the pi itself?

Ответить
@DiegoDeRosa-y4x
@DiegoDeRosa-y4x - 10.06.2023 19:56

You channel is amazing! I learn a lot from you. I am trying to send a string from a Raspberry pi to Arduino 1. Do you have any special advise for it? Thank you!!!

Ответить
@DiegoDeRosa-y4x
@DiegoDeRosa-y4x - 23.06.2023 01:51

Hello. I was able to connect the Raspberry pi 4 (Master) to arduino uno. It works perfectly. But when I want to install the 7inch touchscreen from Raspberry Pi, AND the arduino via i2c, there is a conflict and it stop working... Are there any clues you can share for this situation?. Thank you very much!

Ответить
@OctavMandru
@OctavMandru - 05.07.2023 18:39

I checked on both my Arduino's (a Jade and another one) and the SDA and SCL stay at 5V, so they have pullup resistors to 5V. Beware! Its is always best to use a logic level shifter, damage is irreversible to poor pi's. I really don't understand why they chose 3.3 V for I2C on these

Ответить
@MrFlae
@MrFlae - 20.02.2024 14:11

Great video! What about connecting say 2 Arduino as slaves to a Pi as master, do we need that LLC?

Ответить
@ArchonLicht
@ArchonLicht - 21.03.2024 14:52

It's not I two C - it's I squared C. I²C

Ответить
@minhtruong9408
@minhtruong9408 - 09.04.2024 18:05

Thank you so much for the information

Ответить
@HalilouIlboudo
@HalilouIlboudo - 10.05.2024 01:47

Bonsoir Monsieur j'espère que vous allez bien? je travail sur la communication i2c Raspberry Arduino mais j'ai un souci avec les transfère des données avant d'utiliser votre solution quand j'exécute le programme la carte arduino reçevait les données envoyer par le raspberry mais le raspberry à son tour ne reçevait pas les données envoyer par l'Arduino mais après avoir suivit votre video j'ai compris que le problème c'était le niveau logique donc j'ai payé un convertisseur de niveau logique et l'utiliser mais je n'arrive meme plus à reçevoir les données sur la carte arduino. Avez vous une autre solution à me proposer ou pensez vous que le problème vient de mon convertisseur?? merci d'avance

Ответить
@Caldoric
@Caldoric - 12.08.2024 12:46

Did you ever do that third I2C video you mentioned here? Your I2C playlist only has two videos in it...

Ответить