I2C Addresses - Collin’s Lab Notes

  Рет қаралды 111,069

Adafruit Industries

Adafruit Industries

3 жыл бұрын

Find I2C capable hardware at Adafruit:
www.adafruit.com/?q=I2C&sort=...
Connect to multiple modules using I2C - just keep those addresses in order #adafruit #collinslabnotes
Visit the Adafruit shop online - www.adafruit.com
-----------------------------------------
LIVE CHAT IS HERE! adafru.it/discord
Adafruit on Instagram: / adafruit
Subscribe to Adafruit on KZfaq: adafru.it/subscribe
New tutorials on the Adafruit Learning System: learn.adafruit.com/
-----------------------------------------

Пікірлер: 36
@rolandmdill
@rolandmdill 2 жыл бұрын
You can use multiple fixed address i2c devices by connecting it to an i2c multiplexer
@ethzero
@ethzero Жыл бұрын
Which Adafruit do sell and honestly I was expecting the clip to end with the fact 🤷
@chriswouse7713
@chriswouse7713 2 жыл бұрын
There are a number of pitfalls: Some I2C addresses shown in data sheets are shown as a 7-bit address as the last bit in the address is the read/write bit. So if you’re bit bashing, you have to do a bit of bitwise math to get the actual address. Can you do a video on multi-master I2C systems?
@richsadowsky8580
@richsadowsky8580 3 жыл бұрын
Thanks for this. I am just getting into the STEMMA connection type. It's perfect for me. I'm a slob and wires would run every which way but this nice packaging on commonly used pins 3.3, GND, SCL and SDA. I've also used the power 2 pin and 3 pin (have used with neopixels). Some of my cables came with some starter kit and don't seem to relate to STEMMA QT or SparkFun's similar ones. When still prototyping these types of connectors are golden.
@DonCarlione973
@DonCarlione973 10 ай бұрын
Ada's products are outstanding! I look forward to the next project ✌🏼
@LinaScott
@LinaScott Жыл бұрын
I used the fine product from you guys that let's you switch between addresses if you have multiple of the same address in a chain.
@OMGWTFBBQSHEEP
@OMGWTFBBQSHEEP 2 жыл бұрын
Thanks! Nice to learn about the i2c protocol
@ammo2222
@ammo2222 2 жыл бұрын
I²C: you can Daisychain me Other 2-Wire Bus Systems: Hold my Spare Wires!
@jajajtec
@jajajtec 2 жыл бұрын
THANKS! This is litherly all i needed in a 59 second video. Nice work man!
@fred0356
@fred0356 2 жыл бұрын
Thanks for the video! I just looked up yesterday a video on 12c. I was doing raspberry pi stuff and I'm new to the whole thing. So this helped tie stuff together a little more.
@mybb9200
@mybb9200 2 жыл бұрын
Adafruit has the most useful and informative short videos on KZfaq! A big thumbs up for adafruit 👍👍👍👍👍
@der.Schtefan
@der.Schtefan 8 ай бұрын
You can use a multiplexer, multiple busses, or a simple chip enable line if possible.
@dennisfahey2379
@dennisfahey2379 8 ай бұрын
I2C was the industries first multivendor expansion bus from the 1970's. Since most microcontrollers were 1MHZ or below I2C could be very slow, "wired OR" and extensible. It works for low speed applications where data needs updated in the 100's of milliseconds to seconds range. Note you can use modules that are at the same address with a multiplexer wherein you select the one you wish to talk to before accessing that specific common address. DO NOT use I2C for hot swap applications as inserting a module when a transaction is in progress will corrupt that transaction in uncontrollable ways. Read cycles may turn to writes etc. Not good.
@zenmaster24
@zenmaster24 3 жыл бұрын
if you are daisy chaining devices and one of the devices fails, does that mean your whole chain fails? ie is the i2c protocol reliant on being routed to the correct device through the intermediary devices?
@matteopascoli
@matteopascoli 3 жыл бұрын
No, it’s a bus, the devices are independent, unless ofc the failed device pulls the lines up or down.
@zenmaster24
@zenmaster24 3 жыл бұрын
@@matteopascoli thanks for the explanation. instead of a logical bus/physical bus, can you do a logical bus, physical star like old school network hubs? so in effect there would be an i2c hub at the center of it all.
@matteopascoli
@matteopascoli 3 жыл бұрын
@@zenmaster24 As for the network star, you would need multiple i2c ports. If you plan to make a complex i2c system, there are modules/shields that manage multiple i2c busses.
@impulseimp1035
@impulseimp1035 Жыл бұрын
@@zenmaster24 yep, you can connect your devices in parallel, no need to connect them in series
@Zakumei
@Zakumei 2 жыл бұрын
I wanna make a sphere of sensors, and just call it the "Poindexter" You know, that one dude who has the answer for EEEEEEVERYTHING. Well this sphere does that. Need to know ambient radiation? Gieger counter. Room temp? Thermostat. Exact PPM rating of Farts in the room? Gas sensor set to hydrogen sulphide. Magnetic polarity alignment? Compass chained to the handle (yeah it has a handle)
@aSameplayer
@aSameplayer 2 жыл бұрын
I hate how I2C costs me clock ticks a parallel connection would not
@nicoketzer3110
@nicoketzer3110 2 жыл бұрын
If you have a LED-Array it could be useful to have LED"s with the same Address. For Example: you have the Blue LED's on 0x20 the Green LED's on 0x40 and the Red LED's on 0x60. If you want to light up all Blue LED's you just write it to the Adress 0x20 and all LED-Boards will do the Command
@Mgis90
@Mgis90 2 жыл бұрын
SPI has more lines then?
@Mgis90
@Mgis90 2 жыл бұрын
It has 4 data lines, excluding two for power.
@redcrafterlppa303
@redcrafterlppa303 2 жыл бұрын
Can't you use a normal shift register with a parallel to serial library?
@dale7561
@dale7561 2 жыл бұрын
Hi All. Just watched this and have a quick question. I need an accurate measurement to 0.1mm if possible. It needs to measure from 1mm to 250mm. I am trying to find something affordable but I can't seem to. Any ideas?
@InzemamZahidi911
@InzemamZahidi911 2 жыл бұрын
🐥
@rolandmdill
@rolandmdill 2 жыл бұрын
A digital caliper? No idea what you have to measure
@dale7561
@dale7561 2 жыл бұрын
@@rolandmdill so I have a woodworking machine and it has a thicknesser. Using a microcontroller I would like to add a stepper motor and measurement so I can just type it, 27mm for example and it will adjust to the level. I wanted to a a distance sensor to help improve accuracy. My issue is, that sensors that are actually accurate and can work on short distances are upwards of a 100 eur. I was wondering if someone didn't know of a more affordable option.
@rolandmdill
@rolandmdill 2 жыл бұрын
@@dale7561 Then add an encoder to your stepper motor / shaft to measure how many turns it actually did. Just google closed loop stepper motor, that is how it is done in robotics. Of course you will have to calibrate that setup, make a bunch of test pieces, but this will be way more reliable than a sensor. With a distance sensor any tiny speck of sawdust might ruin your measurement and therefore the precision of your machine!
@dale7561
@dale7561 2 жыл бұрын
@@rolandmdill thanks Roland. That sounds a great solution. I have some encoders lying around so I will give that a try! Thanks for your help!
@bencoss7003
@bencoss7003 2 жыл бұрын
I'm learning quickly on this stuff but and it looks like they're chained together with copper is there any plans to chain boards together with fiber optics?
@impulseimp1035
@impulseimp1035 Жыл бұрын
For what purpose?
@lilstubthumb
@lilstubthumb 2 жыл бұрын
Thank you for calling it I squared c instead of eye two see.
@mostlymessingabout
@mostlymessingabout 2 жыл бұрын
4 is quite a high number of pins 🤔
@shawnalfaro6943
@shawnalfaro6943 7 ай бұрын
I2C servo controller possibly?
What is I2C, Basics for Beginners
18:30
nandland
Рет қаралды 162 М.
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 179 М.
Хотите поиграть в такую?😄
00:16
МЯТНАЯ ФАНТА
Рет қаралды 2,7 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 6 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 6 МЛН
Solving I2C Address Conflicts - TCA9548A I2C Multiplexer
24:29
DroneBot Workshop
Рет қаралды 100 М.
Beginners Guide to I2C on the Raspberry Pi Pico (BNO055 IMU Example)
16:57
Learn Embedded Systems
Рет қаралды 72 М.
Connecting Arduino with multiple I2C devices
6:22
BlueDot
Рет қаралды 190 М.
I built my own computer. by hand.
13:03
jdh
Рет қаралды 1,1 МЛН
Inter-Integrated Circuit (I2C) Basics
25:29
Intermation
Рет қаралды 14 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3 МЛН
Electronic Basics #19: I2C and how to use it
6:09
GreatScott!
Рет қаралды 414 М.
Stacking Headers - Collin’s Lab Notes #adafruit #collinslabnotes
1:00
Adafruit Industries
Рет қаралды 103 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 54 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,8 МЛН
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 14 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 355 М.