Hello ! I'm french and I think you are the best youtube channel in english to explain electronic simply ! It's clear and understandable ! 👍👏 Thank you for your work ! ( Sorry for my english if I make a mistake ) 😁
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.
I give you the award for the best video explaining I2C and warnings for I2V Bus 0 and voltage considerations. If you find yourself in East Lansing, MI I will present the Award to you at the local brewery. Nice job, I like you video technique and editing hope you don't mind if I copy parts of that technique. Keep broadcasting!!
Glad to see you're back with your superbly detailed videos. Now I'm anxious to get my Pi talking to my Arduino. Also looking forward to the installment where you address increasing the distance I2C can be used over. Great work Bill. Top notch TH-cam presentation.
I would like to see a comparison video on using UART vs i2c vs SPI, etc... As means to establish communication between an Arduino and a Raspberry Pi (or between 2 arduinos and etc). As a quick guide on why should you use one protocol over another one for your project.
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.
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?
This is just what I needed to know. I'm about to use I2C between a RPi 3B+ and a D1 mini (w/motor shield for a stepper motor. Thanks for those videos, too.). Are there any gotcha issues that I should know? Looking forward to your next I2C video. Thanks! 😎
I love this python code I haven't gotten into it much but I guess its going to be inevitable in this design plus it increases code knowledge cool ! Thanks for illustrating that you can have a free flowing design and integrate many things all culminating to make an awesome robot like db 1 is 😁👍
@ 28:00 you mention another i2c video that would be out in "a couple of weeks" but a search through your channel didn't turn up the video, was it ever made? The proposed topics are of interest for a project I am working on. Thanks!
I would love to see a video how to have one Raspberry Pi (master unit server that does all the processing) and then multiple Arduino clients (over ethernet, they work as actuators; they send sensor data to rapsberry server and raspberry then sends data back on what port to turn on)
Imagine in the year 3070: I have Raspberry Pi with 3.3 V I2C and Arduino with 3.3 V I2C, but Arduino is made out of antimatter and Raspberry Pi from matter. Incompatible. Need a special wireless conversion module with a ton of millitary grade safeguard systems to prevent me from blowing up the whole city in a nuclear detonation should these two accidentally touch on my benchtop.
can someone please explain 13:46 for a dummy, what does he mean by pull up resistors that will pull the line up to 5V? I mean, isn't the arduino itself is pulling the line up to 5V?
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.
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!!!
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?
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 ?
13:44 Is there a way I can measure if a device uses pull up resistors with a multimeter? I'd like to use a pi to interface with a 5V device, and if possible, I'd like to do that without a logic converter.
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?
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
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????
Congrats on the video, it is very helpfull. However I have some questions about many I2C devices. If I want do connect 2 arduinos into the raspberry Pi, I stiil can use 0x8 as a slave address on both arduinos? Or i need to use 0x8 on one arduino and another address (idk which address) on the another? About the phisical connections, I Still use the same pins on the rasp/arduinos, right?
don't really understand what these addresses are, where did you get them from or how do you know that is the address you are trying to access, can they be anything else like 0x9 for example. How do they actually work? . In the python program you had 0x0 and 0x1 where did you get them from or are they just simple address variables that can be declared/set to anything you want.
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
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!
Can this be used for two way communication without the logic converter as long as the Pi is the master? So the Pi can send a request and get data back from the Aurdino. Seems like it should work since the pins are pulled low to send data and the only pull up is in the Pi but I'm not sure and don't want to destroy my pi.
29:20 was that your belly, or do you have a cat? :D ALSO, what is the "bandwidth" of those logic level converters? I tried one with some Neopixels before, because I was powering a Arduino with five volts and wanted to run the Neopixels from 3.7 volts, but they wouldn't work
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!
Hi there. Is this more reliable than connecting the RPi to the Arduino via USB serial? I have been using that arrangement and once in a while, the arduino changes its address (ACM0 becomes ACM1). I am thinking this might be a more robust connection.
Thanks for the Video sir - great explanations however in terms of your connections - i am not clear on arduino usb connection.Do you have the arduino separately connected to pc via usb?
Love to watch this channel and one of the best instructional videos. But where can you purchase "a handful" of bidirectional converters for a "couple dollars" ? I'm finding one sells for $10 with shipping (Adafruit, Sparkfun) .
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 😊!
There is a tour of the workshop where everything is described about all the storage solutions. th-cam.com/video/n838ifEFGTk/w-d-xo.html Follow the link and you will have your answers and lots more. Have Fun, Joe
Is there a good I2C GPIO breakout board for analog inputs? I would like to wire up lots of potentiometers (minimum 26) and a bunch of switches (minimum 27)...
This is the best channel for IoT devices, soo much detail and clarity - amazing tutorials, thank you!
Hello ! I'm french and I think you are the best youtube channel in english to explain electronic simply ! It's clear and understandable ! 👍👏 Thank you for your work ! ( Sorry for my english if I make a mistake ) 😁
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.
i am having a similar issue im unable to make the esp32 slave.........may be its because of common grounding
I give you the award for the best video explaining I2C and warnings for I2V Bus 0 and voltage considerations. If you find yourself in East Lansing, MI I will present the Award to you at the local brewery. Nice job, I like you video technique and editing hope you don't mind if I copy parts of that technique. Keep broadcasting!!
once again learned something with joy. great explains how to connect a raspberry pi to an arduino Thank you from Germany
Glad to see you're back with your superbly detailed videos. Now I'm anxious to get my Pi talking to my Arduino. Also looking forward to the installment where you address increasing the distance I2C can be used over. Great work Bill. Top notch TH-cam presentation.
I would like to see a comparison video on using UART vs i2c vs SPI, etc... As means to establish communication between an Arduino and a Raspberry Pi (or between 2 arduinos and etc). As a quick guide on why should you use one protocol over another one for your project.
Again an excellent and easy to follow instruction video! Looking forward to I2C part 2!
I'm impressed with your presentation's. I also follow Mr Carlson's Lab. Your are both clear and concise.
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.
Another excellent, useful, educational video. Awaiting part two.... Thanks!
Absolutely Love your Workshop!!
Keep up the Good Work :)
Loved the episode. Looking forward to the next I2C episode. THANK YOU for making these.
great tutorial, thanks a lot!
nailed the camera transitions *thumbs up*
always a concise explainer. Thanks heaps. Keep up the amazing videos.
You are amazing,your videos are very much usefull to me,keep it up don't stop your tutorials,thank you so much🤖
Super high quality instruction. Thank you for this video.
Very nice and professionally prepared.
Awesome Video!
Helpful video 👍 Thank you
Thank you for the good I2C explanation
Thank you for your video. It helped me a lot.
Thanks, I just ordered a five pack of the converters.
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?
God Bless you, thank you very much for sharing your experience and knowledge with us, you are a great tutor
Thank you so much for the information
Appreciate all the hard work you do.
Just trying to connect an ESP32 (3.3V) and arduino. That was a perfectly timed video :D Thanks!
This is just what I needed to know. I'm about to use I2C between a RPi 3B+ and a D1 mini (w/motor shield for a stepper motor. Thanks for those videos, too.). Are there any gotcha issues that I should know? Looking forward to your next I2C video.
Thanks! 😎
I really love this Guy.
Thank you! It was really helpful and informative. I also think educational and scientific could be a little more smiley ;)
Great video. Didn't use the Arduino as a master and raspberry as a slave.
I love this python code I haven't gotten into it much but I guess its going to be inevitable in this design plus it increases code knowledge cool ! Thanks for illustrating that you can have a free flowing design and integrate many things all culminating to make an awesome robot like db 1 is 😁👍
I2C on a Pi Pico would be interesting. That's the route I'm trying to follow - after I understand I2C a bit more.
@ 28:00 you mention another i2c video that would be out in "a couple of weeks" but a search through your channel didn't turn up the video, was it ever made? The proposed topics are of interest for a project I am working on. Thanks!
I would love to see a video how to have one Raspberry Pi (master unit server that does all the processing) and then multiple Arduino clients (over ethernet, they work as actuators; they send sensor data to rapsberry server and raspberry then sends data back on what port to turn on)
Imagine in the year 3070: I have Raspberry Pi with 3.3 V I2C and Arduino with 3.3 V I2C, but Arduino is made out of antimatter and Raspberry Pi from matter. Incompatible. Need a special wireless conversion module with a ton of millitary grade safeguard systems to prevent me from blowing up the whole city in a nuclear detonation should these two accidentally touch on my benchtop.
Can’t wait for multi master/slave video
Great explanation!
I'd love a video Arduino --> Jetson Nano communication with I2C.
can someone please explain 13:46 for a dummy, what does he mean by pull up resistors that will pull the line up to 5V? I mean, isn't the arduino itself is pulling the line up to 5V?
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.
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!!!
very educational,thank you.
Cool work
Did you ever do that third I2C video you mentioned here? Your I2C playlist only has two videos in it...
Great tutorial my frind u helped me so much, bis später
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.
Great video! What about connecting say 2 Arduino as slaves to a Pi as master, do we need that LLC?
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?
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 ?
thanks for all.
hey i would love to see an video on the use of rs485 communication between arduinos. hope you can add it to your list
will a pico work as a peripheral using the arduino ide?
13:44 Is there a way I can measure if a device uses pull up resistors with a multimeter? I'd like to use a pi to interface with a 5V device, and if possible, I'd like to do that without a logic converter.
Did you make the video about extending the I2C range?
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?
Can you wire a Pi Motor HAT directly to an Arduino by just connecting the corresponding I2C pins (A4 & A5 to pi 3 & 5) ?
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
Excellent!
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????
Congrats on the video, it is very helpfull. However I have some questions about many I2C devices. If I want do connect 2 arduinos into the raspberry Pi, I stiil can use 0x8 as a slave address on both arduinos? Or i need to use 0x8 on one arduino and another address (idk which address) on the another? About the phisical connections, I Still use the same pins on the rasp/arduinos, right?
don't really understand what these addresses are, where did you get them from or how do you know that is the address you are trying to access, can they be anything else like 0x9 for example. How do they actually work? . In the python program you had 0x0 and 0x1 where did you get them from or are they just simple address variables that can be declared/set to anything you want.
Can we connect 5v operating sensor to Arduino while using i2c
Hi, do you have a guide on connecting multiple slave arduino from master raspi ?
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
Thank you a lot!! Very good. :-)
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!
Can this be used for two way communication without the logic converter as long as the Pi is the master? So the Pi can send a request and get data back from the Aurdino. Seems like it should work since the pins are pulled low to send data and the only pull up is in the Pi but I'm not sure and don't want to destroy my pi.
Thank you ❤
29:20 was that your belly, or do you have a cat? :D
ALSO, what is the "bandwidth" of those logic level converters? I tried one with some Neopixels before, because I was powering a Arduino with five volts and wanted to run the Neopixels from 3.7 volts, but they wouldn't work
Making a GPS tracking uav drone for my project. Thinking of combining arduino and the pi for it? Steps to make that work?
Like the pi control the gps, wifi, ai configuration and the arduino would run one task like driving my four motors, could this be done?
Tips ?
How do load cell or strain gauge work???
Can we get a video on it
Any future plans on making a tutorial on using an Arduino as a Master and a RPi as a Slave?
It is possible to do the same on (RPI Zero w & Teensy) or on (RPI Zero w & Arduino Nano) ?????
Is the logic converter necessary? Why not just run the arduino at 3.3v?
I know you can’t make it run full speed clock but should still work.
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!
but what if i want to send strings? how can I do? can you give an example?
Your the best!!! :D
Hi there. Is this more reliable than connecting the RPi to the Arduino via USB serial? I have been using that arrangement and once in a while, the arduino changes its address (ACM0 becomes ACM1). I am thinking this might be a more robust connection.
Thanks for the Video sir - great explanations however in terms of your connections - i am not clear on arduino usb connection.Do you have the arduino separately connected to pc via usb?
is it possible to expand or increase raspberry pi pico GPIO
Thanks
hi please make video for the foward and inverse kinematics for robotic arm
Would it be possible to send a ps4 controller user inputs from a pi to an arduino mega using this method?
I wilder how much traffic can this bus handle?
Love to watch this channel and one of the best instructional videos. But where can you purchase "a handful" of bidirectional converters for a "couple dollars" ? I'm finding one sells for $10 with shipping (Adafruit, Sparkfun) .
On Ebay you can buy a pack of 10 for $2-3 . From 2-8 pin converter.
any plans on finishing the part 3 of the Google AIY series? Thanks
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 😊!
Can Raspberry Pi and Raspberry Pi Pico can be connected?
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.
what are you using to hold up the pliers and stuff?
There is a tour of the workshop where everything is described about all the storage solutions.
th-cam.com/video/n838ifEFGTk/w-d-xo.html
Follow the link and you will have your answers and lots more.
Have Fun,
Joe
is it possible atmega 328 chip as i2c with out Arduino ,after programming in with Arduino
Can the code on the Raspberry Pi side be written in Java instead?
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
How do you hook 128 devices up only a meter away from the master?
Is there a good I2C GPIO breakout board for analog inputs? I would like to wire up lots of potentiometers (minimum 26) and a bunch of switches (minimum 27)...
do a video on stm32 board plz
Can we do SPI between the Pi and Arduino?