I2C Part 2 - Build a I2C Sensor

Поділитися
Вставка
  • Опубліковано 6 лют 2025

КОМЕНТАРІ • 155

  • @allinclusive5762
    @allinclusive5762 5 років тому +56

    You and "the gui with the swiss accent" ( Mr. Spiess ) a are a class of their own! Very professional! Thanks for your work! Thumbs up!!

    • @Dronebotworkshop
      @Dronebotworkshop  5 років тому +7

      Andreas is the best, I just stand in his shadow - which is a very big shadow considering that he is in Switzerland and I'm in Canada! But I do thank you for the complement.

    • @allinclusive5762
      @allinclusive5762 5 років тому

      @@Dronebotworkshop So - i'm sitting in the middle ( Germany ) - and i think, you are fishing for compliments ;)

    • @sledgeHammerRulez
      @sledgeHammerRulez 5 років тому +1

      don't do yourself short! i like your videos like the ones from andreas. I'm looking forward to your connection between a pi and an arduino. I want a (double) car-detection & aid (distance to the wall 4 my wife) in my garage directed by an pi (connecting to home-assistant) and measured with an arduino. KUTGW!

    • @davidfarning8246
      @davidfarning8246 5 років тому

      @@sledgeHammerRulez That is an interesting idea. I think I will make an arduino based ultrasonic sensor for my mom that tells her when she has pulled her car alll the way forward in the garage.

    • @jonathanr4242
      @jonathanr4242 4 роки тому

      @@davidfarning8246 LOL! I need one for my mum that reminds her to open the garage door before trying to drive the car out.

  • @Pinchington
    @Pinchington 3 роки тому +2

    If Mr. Rodgers worked with electronics and programming, it would be you. Love your videos

  • @acadman4322
    @acadman4322 5 років тому +30

    :-) Another high-quality tutorial from the best teacher on UA-cam. Thank you.

  • @Mystic0Dreamer
    @Mystic0Dreamer 5 років тому +6

    I thank you for your excellent explanation of the programs you use. You go through each and every line of code in precise detail, and that's exactly what I need. So I can't thank you enough for your attention to precise detail. Also I totally agree with "I Two C". That's perfectly acceptable and how I pronounce it too. I understand that "I Squared C" is also acceptable, but like you, I actually prefer "I Two C". Because in truth, there's nothing mathematically squared about it. You are an excellent instructor far above the norm.

  • @gunnarstoa
    @gunnarstoa 5 років тому +1

    I truly enjoy your videos and instructional style and was pleasantly surprised to hear you mention my original favorite UA-cam teacher with the Swiss accent! The sinister part of me was waiting for you to coyly explain that the reason you decided to build a custom 4-way ultrasonic I2C sensor (unlike Mr. Spiess' 3-way sensor) is simply because 4 is clearly better than 3. Maybe zoom in to picture of two groups of puppies where 4 is clearly better than 3. No smiling, just more matter-of-fact presentation of your analysis. I'm kind of glad you didn't as I would be cleaning up a cup of coffee right now. But seriously, thank you for sharing your knowledge!

  • @robertwillemsen368
    @robertwillemsen368 5 років тому +7

    Very good video again! For everybody complaining about I2C or I square C, please start your own channel and do a better job. I wish you all the best but doubt you will succeed.
    Keep up the good work! Love IT!

    • @Dronebotworkshop
      @Dronebotworkshop  5 років тому +6

      Thank you Robert, it can be very dishearting to put the effort into making a video only to have some clown critize it for something as silly as "I squared C" vs "I two C". Especially when neither of them are technically correct - it's the Inter Integrated Circuit bus so it should probably be "IIC"! Maybe I should have just said "TWI" to avoid offending Mr. Perfection.
      I really appreciate your nice comment, hopefully there are others who feel the way you do. Thanks!

    • @robertwillemsen368
      @robertwillemsen368 5 років тому

      @@Dronebotworkshop the problem is that it is not possible to satisfy everybody. But nowaday it is so easy to BASH that you could be discouraged tot make this video's. Well I happen to love them andere learn a lot. Hope this helps to continue! Thanks

  • @raagamparmar179
    @raagamparmar179 4 роки тому +2

    Thanks Man! I am a teenager in to come in 10th, and with your help, I've made my very own I2C Keypad 4x4 Matrix and made a smart keypad door lock with it. I am going to make a PCB for that. Thanks a lot.

  • @bigsteve6729
    @bigsteve6729 2 роки тому +1

    Your videos are nothing but flawless. Great job

  • @Steven-jf4cs
    @Steven-jf4cs 5 років тому

    Outstanding tutorial. Clear, concise and fun to watch and learn. So being that I'm from Southern California you get the "woohhhoo Awesome Dude....you made I2C gnarly" award!

  • @conversationwithgod272
    @conversationwithgod272 4 місяці тому +1

    Best explanation ever...we love you lots bright brain.

  • @dizignit1983
    @dizignit1983 Рік тому

    Thanks!

  • @diamantbluemc
    @diamantbluemc 4 роки тому

    Thank you from the bottom of my heart !!!!

  • @davetribbett8577
    @davetribbett8577 3 роки тому

    This guy is fantastic! The two I2C vids are really good, best I’ve seen! Hoping he also does the other available interfaces...highly recommend this channel...

  • @northshorepx
    @northshorepx 5 років тому +2

    Bill - WOW! That was an amazing tutorial. I know feel confident that I could change my own sensors to be I2C items. It's like I can create a wired version of MQTT where I don't need wireless. Thank you do much for doing such a patient and well thought out tutorial.

  • @PhG1961
    @PhG1961 5 років тому

    Awesome ! I've been using an ultrasonic sensor on a servo that sweeps left to right to avoid obstacles. The noise of the servo drive me (and many others) crazy. This solution is really silent ! Much better.

  • @ExperimentwithPhotography
    @ExperimentwithPhotography 4 роки тому

    Your presentation so skillful and excellent that I do not have word for it. it is too good....!!!!

  • @AhmadAsmndr
    @AhmadAsmndr 4 роки тому

    thank you very much i learn new things every time i watch your videos..

  • @azyfloof
    @azyfloof 5 років тому +3

    Hi, Bill!
    I just wanted to reach out and thank you personally for covering I2C, because that first episode in particular helped me learn a huge amount on the topic! I was able to massively overhaul the hardware and software of a project I'm working on for an up coming convention.
    I previously had an ATMega328 running animations on about 120 neopixels, while reading buttons on a control panel and polling a potentiometer for a brightness control. Since learning about I2C and how to implement two way communication between two or more microcontrollers, I've been able to use one ATMega to run the light animations, and second ATMega running the control panel. I've also been able to swap out the potentiometer for a rotary encoder AND implement IR remote functionality using a cheap slim pocket IR remote, since I learned from your videos how to use IR control in projects :)
    I hope you know how much you've taught people and inspired them to try new things :D
    Take care of yourself :)
    ~Azy

  • @mohammedomer7155
    @mohammedomer7155 4 роки тому

    This channel is very helpful. Thanks so much for the time you put into it

  • @opal177
    @opal177 2 роки тому

    Thank you so much for your good videos.

  • @oracid
    @oracid 5 років тому +2

    Thank for all. From Paris.

  • @quaternion-pi
    @quaternion-pi 5 років тому +4

    Simply amazing tutorial. As the newping library is available on platformio, I'm moving to visual studio code with the platformio extension instead of the arduino interface - seems a much nicer programming environment. Thanks for sharing your excellence!

    • @sledgeHammerRulez
      @sledgeHammerRulez 5 років тому

      andreas, the guy with the swiss accent, did an excellent video on it last sunday! I will switch also, since visual studio code is now available as addon for home-assistant as well

  • @DavidDyck
    @DavidDyck 5 років тому +2

    thank you!
    at 3:50 bit zero is mentioned, but the timing diagram shows bits one through bit N - is the diagram off-by-one - or
    Also it is stated "the clock signal will go high every time a data byte is sent" - perhaps sometimes you mean a single data bit?

    • @vtorsi610
      @vtorsi610 4 роки тому

      No, his diagram shows many BYTES 0 ... - It should show many clock cycles per BYTE.

    • @DavidDyck
      @DavidDyck 4 роки тому

      @@vtorsi610 thanks perhaps that is what is confusing - the clock is shown clocking individual "bits", but the audio is using the word "byte" - the audio clearly shows the clock for the start "bit" - confusing use of bit and byte
      The wikipedia timing diagram uses the word "bit" for each clock transition - very similar image
      en.wikipedia.org/wiki/I%C2%B2C#Timing_diagram

  • @corbamilk6412
    @corbamilk6412 5 років тому +9

    The readI2C() in the video isn't waiting for 100ms, it's waiting no more than 100 ms. You will break out of the while if either there is something available or you are greater than or equal to 100 ms. You then do the read only if the elapsed time is less than 100ms.
    The return from readI2C() is undefined if more than 100 ms occurs between the request and the waiting for a response. It only reads and sets bval if there is less than 100ms, if it is more than 100 ms you return an indeterminate value.

    • @GrafRucola
      @GrafRucola 5 років тому +2

      Thx, I felt that there was something fishy in these lines, you helped me understand what was going on!

  • @ratmadness4858
    @ratmadness4858 9 місяців тому

    this video was very helpful! thanks

  • @guyd6
    @guyd6 5 років тому

    Excellent against. It's a real course. Continue your nice job.

  • @weeeBloom
    @weeeBloom 2 роки тому

    Thank you very much!! amazing tutorial!!

  • @raagamparmar179
    @raagamparmar179 4 роки тому

    Wow! This video has inspired me to develop my homemade 3x6 keyboard matrix into a I2C Device. That would be Wonderful! Thanks a lot :)))))))

  • @dansam1395
    @dansam1395 5 років тому

    forward to see one for SPI too. Thanks for sharing with us such a great quality tutorials.

  • @MrHjsalom
    @MrHjsalom 5 років тому +1

    Thank you for sharing your knowledge with your outstanding dedication.

  • @rsrini7
    @rsrini7 5 років тому

    Thanks for wonderful explanation and demo on I2C. Please explain on SPI compared with I2C difference, applications. Finally About UART, CAN bus as well.

  • @geoffreyjbrown
    @geoffreyjbrown 5 років тому

    Many thanks for your videos. Very informative. One topic I would be interested in a video on which continues the I2C learning is whether it is possible to use I2C within an ISR (interrupt service routine). It would be useful say if a RTC (real time clock) was able to be read in an ISR as millis() does not function. This could ideally go into detail about when and how interrupts are used in I2C comms.
    Geoffrey, New Zealand.

  • @electronic7979
    @electronic7979 5 років тому +2

    Very useful video 👍

  • @DodgyBrothersEngineering
    @DodgyBrothersEngineering 5 років тому

    Great video goes a long way towards answering some questions I have about a project.

  • @roberthillkg5wry206
    @roberthillkg5wry206 5 років тому +2

    Yet another really great tutorial. I did have a question about your explanation of the protocol. As you describe the data being clocked on the SDA line, you mentioned the data as being sent in bytes. I think you really meant to say that data is sent bitwise until 8 bits are sent whereas the slave can then ack or nack the byte sent. Any number of bytes and be transferred during a transaction until a Stop or Restart is encountered. Once again, really love your videos.

    • @superleisie
      @superleisie 5 років тому

      You are right. There should be a clock signal (a rising edge) for every bit and not for a byte. His explanation is wrong.

  • @dbijenhof
    @dbijenhof 3 роки тому +1

    When talking about sending data, you say data bytes (segment around the 4 minut mark), when I assume you mean data bits. The SDA-line can only contain one bit at a time...

  • @adapasriharsha3720
    @adapasriharsha3720 4 роки тому

    thank you for making this video

  • @olegvelichko1659
    @olegvelichko1659 5 років тому

    Awesome content! Thanks for these videos!
    On a side note - during the first few minutes of the intro it looks like you have cat ears thanks to the pliers on the peg board behind you. Easter egg or not - still found it pretty neat... 👍👍

  • @Taran72
    @Taran72 5 років тому

    Yes, this video (as your other videos) definitely inspired me to create my own master and slave I2C project. Thank you for providing the explanation and the code. :)

  • @yusufaksel2516
    @yusufaksel2516 5 років тому

    You should add thia video to your i2c playlist, thanks by the way.

  • @SaucemanSauceman
    @SaucemanSauceman 5 років тому +1

    Really enjoy your vids, they have helped me alot!

  • @CR046
    @CR046 5 років тому

    Thanks for your work! Greatings from Belgium.

  • @johnfrankforther8162
    @johnfrankforther8162 5 років тому

    Thanks for the great video. This looks like something I may use on my model railroad for signal control.

  • @wayneswan3092
    @wayneswan3092 24 дні тому

    The "master" would be the arduino itself. Correct? Where all other devices hooked up to it via I2C would be slave?

  • @phucthinhnguyen5633
    @phucthinhnguyen5633 5 років тому +3

    OMG!! This is what i need!! Right on time!! Thanks Dronebot!!!

  • @obyildiz
    @obyildiz 4 роки тому

    Very useful tutorial! thanks sir.

  • @dalie3672
    @dalie3672 4 роки тому

    I'm messed up with the theory part, what i think is the CLK signal toggles when a bit sent, not a byte. Also i expected a example communication with different sensors through I2C in the last part of the video, but it turned out to be just a combination of this and the last videos.

  • @billstrain1
    @billstrain1 5 років тому +3

    Like your quality tutorials. I have a question. Since you are going to send back 4 bytes of sensor data, why not just ask for 4 bytes on the master request and then have the slave just read the 4 HC-SR04's at that point of time in the order of 1, 2, 3 and 4. All the other reading between requests will not do the master any good.
    BillW

    • @vtorsi610
      @vtorsi610 4 роки тому

      You can send all 4 bytes

    • @privatepeewee6402
      @privatepeewee6402 3 роки тому

      @@vtorsi610 he's asking why wait for 8 bytes if the slave only sends 4, if you read all 4 sensors in a defined order and pnly wait for 4 bytes instead of 8 then the communication time slave to master is halved making it possible to respond faster to sensor input.

  • @flanker0ne
    @flanker0ne 2 роки тому

    I have some problem trying to understand how the readings from the sensors remain synchronized.
    How the Master can always recognise the 3rd sensor as the third?

  • @dibyojyotibhattacherjee4279
    @dibyojyotibhattacherjee4279 9 місяців тому

    Hello, while adding up those pullup resistors on the SDA and the SCL line, will it be a problem if I add pull-down ones?

  • @samerswedan5876
    @samerswedan5876 3 роки тому

    Thank you very much

  • @soumitradey8208
    @soumitradey8208 5 років тому

    Wow excellent! Great explanation. Best in the world!

  • @passertm
    @passertm 5 років тому

    Great. Super videos. Thanks a lot!!!

  • @OsoPolarClone
    @OsoPolarClone 5 років тому

    Very good video. Thanks

  • @opalprestonshirley1700
    @opalprestonshirley1700 5 років тому

    Great tutorial, I've got to try this.

  • @surendramaharjan3129
    @surendramaharjan3129 4 роки тому

    the drill machine in background is it for pcb drilling to mount the through hole components?

  • @starkship7018
    @starkship7018 2 роки тому

    very help full tutorial respect++++

  • @tinkmarshino
    @tinkmarshino 5 років тому

    Bill, I actually followed a lot of what you said! I got confused a bit at the beginning but as you went through the sketches I kind of got it! It amazes me how you can make things understandable to me in my current condition.. I am so thankful. One thing I do not understand is why use i2c? everything seemed work ok before you added the second arduino? I did not understand what the advantage was.. Sorry if my questions are rather childish.. But I do have such a hard tome understanding things here in my later years.. Sheesh it never used to be this way.. Well thanks for the share and carry on my friend.. oh one other thing.. I got the DroneBot workshop news letter on april 8th has thee been a new one? or is it just once a month? I have forgotten..

  • @Rainy_days_lover
    @Rainy_days_lover 2 роки тому

    could you do a tutorial for i2c for when the slave only sends the data once if requested by master?

  • @kulaniscap
    @kulaniscap 6 місяців тому

    Can I connect the 5V Arduino to a 3.3V ESP32 via I2C? What voltage should I connect the Pull-up resitor to?

  • @davidhawley1132
    @davidhawley1132 11 місяців тому

    It's not clear here why a data-based protocol (the 255 marker) is being used instead of multiple byte reads/writes. Am I misunderstanding the I2C spec, is it an issue with the library, a robustness issue, or something else?

  • @proftiagogomes
    @proftiagogomes 5 років тому

    Please Tell me How to make a I2C to LDR, and other to LM35 and read only with SDA and SCL from Arduíno UNO???

  • @KKTVirtualLearning
    @KKTVirtualLearning 3 роки тому

    Excellent

  • @syedmuhammadali2083
    @syedmuhammadali2083 5 років тому

    Please share some videos for I2C interfacing using Texas Instruments micro controller.

  • @HeliosFire9ll
    @HeliosFire9ll 4 роки тому +1

    shouldn't the code be if(millis() - entry > 100) bval = Wire.read() instead of if(millis() - entry < 100) bval = Wire.read()? To show that the time has ellapsed

    • @HeliosFire9ll
      @HeliosFire9ll 4 роки тому

      Could we also replace millis() with delay(100)?

    • @sidspatil
      @sidspatil 4 роки тому

      Yes, I believe, that's an error in the sketch shown in the video, as well.
      Attn: @Bill

  • @newburypi
    @newburypi 5 років тому +3

    A caution regarding the HC-SR04. There is now a "p" version of this sensor (recognized by the missing xtal) that does not work in one wire mode. only in two wire mode.

  • @mikemiller2748
    @mikemiller2748 4 роки тому

    Thanks for this video! How would you build a system that has upwards of 60 sensors? I2C should allow them all to be connected serially, without requiring a connection from each back to the arduino as you’ve done here, right? Would each sensor need its own microcontroller in that case?

    • @diamantbluemc
      @diamantbluemc 4 роки тому

      You will definitely have a significant delay if you will use one Arduino Mega and wait for each one to measure, if you can read all of them at the same time ( assumming they will not interfer with each other ) just scale the code to acomodate all of that data, from my experience with 20 sensors and a master and slave ( 2 Megas), it was not a problem. Btw why do you need so many ?

  • @mejrimouhamedali1011
    @mejrimouhamedali1011 Рік тому

    That's good thank you

  • @lylehintz7275
    @lylehintz7275 3 роки тому

    What happens if you use one of the reserve addresses?

  • @kacadenganmata
    @kacadenganmata 2 роки тому

    if the pull up resistor doesnt exist, is it cause the slave does not send the data to master?

  • @YKibarashi
    @YKibarashi 2 роки тому

    how 1 wire mode is even possible ? as I know we can't change the mode of a pin while execting a program ! so how Newping library is working ?

  • @PTHouy
    @PTHouy 3 роки тому

    I wondering how to draw diagram like this 8:07. what software did you used?

  • @hubertmargreiter3508
    @hubertmargreiter3508 4 роки тому

    Like all of your videos, also this one is very educational. Thanks for uploading!!
    But how do you approach the problem if you want to transfer 128 bytes from a slave node to a master (e.g. Arduino or Teensy)?
    Do you know of any link that might help me with a code fragment?

  • @dainiusjaraminas6412
    @dainiusjaraminas6412 5 років тому

    Very useful . Sir thank you very much :)

  • @Logical_Controls
    @Logical_Controls 5 років тому

    Why the hell are you making videos at 5:38 in the morning Bill? Haha very informative as always. Thanks for the video.

    • @Dronebotworkshop
      @Dronebotworkshop  5 років тому +4

      Actually I film most of my videos from about 4am to 7am - it's a lot quieter at that time.

    • @Logical_Controls
      @Logical_Controls 5 років тому +1

      @@Dronebotworkshop And that mentality is the difference between your channel and all the other hobby electronics channels on YT, most of which are not even half as well constructed nor half as informative.

  • @mikeholczer
    @mikeholczer 5 років тому

    Great video! Could you have powered the Arduino running the slave code from the other one?

    • @Dronebotworkshop
      @Dronebotworkshop  5 років тому

      Hi Mike - I think that might be a bit too much current for the Master Arduino to handle.

    • @mikeholczer
      @mikeholczer 5 років тому

      makes sense, thanks.@@Dronebotworkshop

  • @fahmywaleed
    @fahmywaleed 5 років тому

    Thanks for the excellent video, I have a question though hope it is the wright spot to ask. My understanding from the video that due to address conflict we cannot connect the 4 ultrasonic sensors to the same I2C bus because all of them have the same address?

    • @PablumMcDump
      @PablumMcDump 4 роки тому

      The sensors weren't I2C capable. Those pins were "trigger" and "echo", not SCL and SDA, which is why they could be tied together in the example.

  • @b.shashanksunny1927
    @b.shashanksunny1927 5 років тому

    sir in my project i want to send string variable from master to salve and multiple sensor data is need to send from salve to master(master is node mcu and salve is arduino uno)

  • @eddieeriksson5830
    @eddieeriksson5830 5 років тому

    Can shelded twisted pair increase the distance between the Master /Slave units?

  • @wishicouldarduino8880
    @wishicouldarduino8880 5 років тому

    Something is wrong with i2c master sketch doesn't compile for windows says expected initializer before j token right at void set up any solutions would be greatly appreciated thanks😁

  • @atmosferaDIGITALweb
    @atmosferaDIGITALweb 5 років тому

    Ótimo tutorial, espetacular !!!

  • @DustinjBailey
    @DustinjBailey 5 років тому

    I'd love if you made a video about connecting 2 ESP8266 devices over wifi. :-D

  • @santorcuato
    @santorcuato 5 років тому

    You are a MASTER! Nice video, thanks.

  • @Rohit-oz1or
    @Rohit-oz1or 4 роки тому +1

    Why can't we read the full payload at once in place of byte by byte?

    • @noweare1
      @noweare1 4 роки тому +1

      You are right. Sending back five bytes would of been better. Instead the master has to request 5 times. I don't know the library but that could mean starting and stopping the bus 5x to get the readings.

    • @vtorsi610
      @vtorsi610 4 роки тому

      @Rohit - You can ...

  • @dawnishsyafie4738
    @dawnishsyafie4738 5 років тому

    HOw to use on sound sensor ...Please .......

  • @nishikanthingole3638
    @nishikanthingole3638 5 років тому

    Hello @DroneBot Workshop,
    i am using esp32-wroom with bq24195l, but i am unable to communicate bq with esp32 via i2c.
    can you please tell me how i get data from BQ to ESP32 via I2C??
    thank you

  • @LUCKY007725
    @LUCKY007725 5 років тому

    Very informative video, thanks
    Could you please tell me how I can separate the values of dht22 as temperature and humidity...
    If You can make a complete tutorial on it then will be very helpful.
    I have dht22 connected with uno and i2c with esp8266, I want to get values from uno to esp8266 and display them over blynk app.
    Please favor me

    • @vtorsi610
      @vtorsi610 4 роки тому

      There are finished DHT22 drivers available - just use google.

  • @narutoboruto4784
    @narutoboruto4784 2 роки тому

    Hi Dronebot iam working on an MS4525DO digital airspeed sensor with I2C communication module i want it to measure velocity of air through an arduino uno,I was able to start communicating with the sensor. It does respond to changes in airflow.
    But I cannot get the values to come close to normal pressure reading.

    • @narutoboruto4784
      @narutoboruto4784 2 роки тому

      I will really appreciate your help with this,thank you

  • @gaventucker8416
    @gaventucker8416 4 роки тому

    How can I get a consultation?

  • @lem09able
    @lem09able 5 років тому

    Hello sir, would it work if I used an RTC module, a master arduino, and a slave arduino? I want the master to be receiving time from RTC and the slave arduino to be sending int values to the master. Then the master will take a look at values given by the rtc and slave and perform a certain operation base on those values. Example: An if else decision based on the time given by rtc and value sent by slave. If the values match the condition, the operation happens. My problem is that the rtc module is also connected in sda and scl, so how should I proceed since the master slave should also be connected via sda and scl?

    • @vtorsi610
      @vtorsi610 4 роки тому

      1 Master Arduino + 1 Slave Arduino @ Address xxx + 1 Slave RTC @ address yyy is OK !

  • @pokednaful
    @pokednaful 3 роки тому

    Is it possible for TCS34725?

  • @rgdphome8974
    @rgdphome8974 5 років тому +1

    Gr8 Sir.

  • @aleksandarrankovic2035
    @aleksandarrankovic2035 5 років тому

    Can you make tutorial for 10-bit addresses.I tried to register on yours site but it does not accept mail.They are great tutorials, it would be nice to move on with I2C.For example, how to make address 200, and how to extract bites.Thanks

    • @noweare1
      @noweare1 4 роки тому

      With 10 bit addresses you get a nack from the slave after the first byte of the address but the i2c register should be set for 10 bit slave address mode. The master will just send the second byte of the address and this time the slave will send back an ACK and off you go. The i2c has a lot of options that can be set up if the chip has a hardware i2c. If you are using a library then it just depends how much functionality the author included in the library.

    • @aleksandarrankovic2035
      @aleksandarrankovic2035 4 роки тому

      Thanks @@noweare1 I solved the problem at another way. Thanks again

    • @noweare1
      @noweare1 4 роки тому

      Did you use a library or hardware registers ?

    • @aleksandarrankovic2035
      @aleksandarrankovic2035 4 роки тому

      @@noweare1 I skipped I2C.I use Serial comunication UART it was easier for me

    • @noweare1
      @noweare1 4 роки тому

      @@aleksandarrankovic2035 Good deal ! Good luck in your projects.

  • @ilhamrahmatmuharam8501
    @ilhamrahmatmuharam8501 4 роки тому

    hello sir, I am an arduino beginner user ,, I want to use a pressure sensor with type xgzp6857 and will be processed by arduino, this sensor uses the i2c communication protocol, I have found the i2c sensor address is 0x6D, but this sensor does not yet have a library for arduino, how can I use this sensor so that the pressure reading can be displayed on the serial monitor?
    maybe you have an idea for this problem?
    thank you

    • @vtorsi610
      @vtorsi610 4 роки тому

      Get the DATASHEET and go to the Arduino Forum ...

  • @A.D.38q9
    @A.D.38q9 3 роки тому

    How can i make this with 2 of this sensors en 3 arduino's 2 slaves and 1 master en de master request value of them both everytime

  • @pisacc
    @pisacc 5 років тому

    To subscribers: Play with 1.25 speed. Even 1.5 is not too fast.

  • @munfaridlmunfaridl2491
    @munfaridlmunfaridl2491 2 роки тому

    can i get code please
    ?

    • @Steven-jf4cs
      @Steven-jf4cs 2 роки тому

      Did you look in at the full article link? May I suggest just typing it out to get some memory practice. It's not a huge piece of work really.

  • @alibehrouz9833
    @alibehrouz9833 5 років тому

    greatttttttttttttttttttttttttttttttttttttt

  • @superleisie
    @superleisie 5 років тому

    Are you sure that your explanation of the protocol is correct? There should be one clock cycle per BIT and not per BYTE.

    • @vtorsi610
      @vtorsi610 4 роки тому

      Correct - There are 8 Clock Cycles per byte + 1 Clock Cycle for the ACK/NAK reply. But he is showing many BYTES...

  • @kokogyi5905
    @kokogyi5905 4 роки тому

    Please like to learn 2 arduino UNO, master and slave using Modbus.