How To - 1-Wire Interface with Arduino!

Опубликовано: 15 Май 2026
на канале: Kevin Darrah
54,749
519

For inquiries or design services:
http://www.kdcircuits.com
Twitter:   / kdcircuits  

This video shows how to work with the DS18B20 1-Wire Temperature Sensor:
http://datasheets.maximintegrated.com...

The Code:
http://www.kevindarrah.com/wp-content...

Version 2 - Fixed a whole bunch of stuff
http://www.kevindarrah.com/wp-content...

Note! Timing might be a little off, let me know if any issues.

And since this video is soooo long, here are the links to the different parts of the video:
1:55 Hardware Breakdown
4:25 Code Walkthrough Starts
6:17 How to get the temp of one device on the Bus
7:34 Reset the Bus
9:47 Writing a Byte to the Bus
12:24 Reading the Scratch Pad
13:45 Performing the CRC Check of the Scratchpad Read
17:27 Temperature Calculations
24:30 Get the ROM Address of a single Device
27:00 Reading a Byte from the Bus
28:30 Get the temperature of a Device with a specific address
31:21 Write to the Scratchpad
34:00 Search the Bus for devices
41:30 Code Walkthrough of the Search Function
51:00 Searching the Bus for devices that are Alarming
52:35 Demonstration of the Alarm Function

Check out my Tindie store (trigBoard is available) https://www.tindie.com/stores/kdcircu...

Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen!
  / kdarrah  

Twitter:   / kdcircuits  

For inquiries or design services:
https://www.kdcircuits.com