1-Wire - Through the Looking Glass (Scope) and Down the Rabbit Hole (Bit Level)

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 43

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

    I have implemented DS18B20 long long time ago but still I enjoyed your video my friend !!! Very well explained all timings and loved every detail there !

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

      Thanks for the praise! I'm always happy when somebody enjoys / gets something out of my videos.

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

    Thank you! ... The specific information I needed to implement inside of a PIC micro controller in assembly language was from 29:08 to 38:28 and your explanation helped me out greatly.

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

      You're welcome! I'm always happy if my videos are helpful to somebody. And kudos to you, implementing 1-wire in assembly language from scratch - that's a feat!

  • @rene-jeanmercier6517
    @rene-jeanmercier6517 4 роки тому

    Hi Robert. The diode. Very ingenious way to differentiate between devices. Excellent reference material. Thank you very much for sharing your knowledge with us. Regards, RJM

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

      Hi René-Jean, as always thanks for the praise! And you're very welcome! Best Regards, Robert

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

    Robert I learnt a lot from this 1-wire series. Great video.

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

      WunHeart, thanks for the praise. I'm happy that video was helpful to you.

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

    I'm glad I was strapped in ! but plenty of "takeaways" of me ...cheers.

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

      I did gave a fair warning, didn't I? Without that Corona thing going on I probably wouldn't have made this video. I mean sitting in front of the scope for hours and decoding bits by hand. Who would do such a thing? I did :-) I also took a whole lot away from making this video. Among other things that the Dallas Temperature library has an issue with DS18B20s (won't set the resolution). So there's another video coming up :-)

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

      @@robertssmorgasbord Yep, fair warning !

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

    Nice demonstration of 1-wire.
    Just one remark at „error in the datasheet“: *No!*
    A bit transfer from device to host is always started by a short 0 from the host and a 0 or 1 response from the device. The short 0 is kind of the clock pulse merged on the single data line.
    Datasheet describes exactly what the protocol defines and the silicon got implemented.
    Getting the power status of a device is by reading a single bit and as 0 means „I need parasitic“, all devices responses are or‘ed together to a „all devices have enough power?“ answer, as power on the data line dos not hurt.

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

      Thanks for the info/correction. Guess I misread/misinterpreted that part of the datasheet. My bad!

  • @altairibn-laahad8442
    @altairibn-laahad8442 3 роки тому

    Very informative. I absolutely loved the video. Thanks a lot!

  • @dharshnesaravanan3978
    @dharshnesaravanan3978 5 місяців тому

    I am trying to capture the wave in the oscilloscope. The sensor works fine. I am getting correct temperature reading in Arduino ide serial monitor. But when connected to oscilloscope, i am not able to debug which part is which. I even connected the diode like u said to differentiate the master signal from the slave. My professor wants me to find the 16 bits of the temperature that is stored in scratch pad and the digital value 16 bits has to match with the celcius value shown in the ide. Even after connecting diode and changing the resistor to 1.5k, i am not able to differentiate anything. The oscilloscope that I use is tektronix DPO 5204. How can i debug it. ( i am using in normal power supply mode only. Not parasitic mode)

    • @robertssmorgasbord
      @robertssmorgasbord  5 місяців тому

      The diode in line with the pull up resistor is just there so you can detect the parasitic power delivery by the master to the slaves. It doesn't help you detecting if the master or a slave is transmitting. It's the 100 Ohm resistors in line with the slaves' bus pins that help to differentiate between the master or the slaves transmitting ( ua-cam.com/video/UIx8R1LV6HM/v-deo.html ). That's all coming to my mind right now. Hope it helps!

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

    Amazing. Now I got it. Thanks!!!

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

    Really nice video! I learned a lot.

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

    Greetings :) First of all, Thank You very much for explaining 1-Wire techology in your videos. However, one part still needs to be unraveled about how the temperature number is mathematically generated. In other words, how Byte becomes a real temperature number. Thank you very much in advance if you have time to ecplain it.

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

      To be honest, I actually never went through the trouble decoding the data myself (did that only for SPI and MAX6675) - I used a library ;-) See the following videos:
      Arduino, DS18B20/DS18S20 Temperature Sensor and 1-Wire Bus - The Details ua-cam.com/video/XUm9RPWRBx8/v-deo.html
      Arduino, DS18B20/DS18S20 Temperature Sensor and 1-Wire Bus - Addendum ua-cam.com/video/QXZOWEoRcFw/v-deo.html
      Use the time indexes in the description to jump to the software stuff. Cheers!

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

    Thank you! Thank you, thank you. thank you

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

    Thank you!!! I liked and subscribed.

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

      Thank you very much for subscribing! And you're very welcome :-)

  • @dharshnesaravanan3978
    @dharshnesaravanan3978 5 місяців тому

    Could you please help me. I can also send you the picture of the circuit and the waveform if you want

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

    Thank you man!

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

    👏👏👏

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

    Thank you

  • @PraveenM-n4u
    @PraveenM-n4u Рік тому

    How to read rom commands from master

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

      I'm not quite sure what you mean. The master is the master and you (a slave) cannot read from it. Or are you talking about reading the ROM of a specific I2C slave?

    • @PraveenM-n4u
      @PraveenM-n4u Рік тому

      @@robertssmorgasbord Thank you for reply,
      Actually I'm working with one wire communication using STC IC and i design the slave module. the slave module working Input or output device. Already i finished input module but the output module working based on rom command so, i want slave read rom command from master to act as a output device

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

      @@PraveenM-n4u Wow, that's a very advanced project! I have to admit, that I never implemented an 1-Wire slave in hardware and/or software, so I can't really help you there. But have a look at that Arduino library github.com/mikaelpatel/Arduino-OWI which implements master AND slave mode. Maybe you can get some pointer from there. Here's additional documentation for that library: mikaelpatel.github.io/Arduino-OWI/ .

    • @PraveenM-n4u
      @PraveenM-n4u Рік тому

      @@robertssmorgasbord Thank you for your Help sir.

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

      @@PraveenM-n4u You're very welcome! And I didn't really help, I just gave you a pointer to someone else's work 😅

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

    Thank you - this was a very helpful video for debugging and your effort here are really appreciated. One minor point just to let you know. I found the hand and pen waving throughout the video really distracting, and it caused me to need to look away a lot in order to listen to the content - if possible I'd recommend less of this, as it distracts from otherwise excellent content. Many thanks.

    • @robertssmorgasbord
      @robertssmorgasbord  Рік тому +1

      You're welcome! And thanks for the praise! I'll try to limit the hand and pen waving in the future. No promises though, because I get quite animated when I explain stuff 😅