YouTube2Text

DS18B20 Temperature Sensor with ESP32: Wiring & Basic Code Tutorial — Transcript

by Robocraze · 1,028 words · 162 segments · language en · Watch on YouTube

Full transcript

  1. 0:00[Music]
  2. 0:08hi guys welcome to Robo craze today we
  3. 0:13are going to be talking about the ds1 8b
  4. 0:16to zero temperature sensor and how to
  5. 0:18integrate it using an ESP 32 this is the
  6. 0:23data sheet for the ds1 8b to 0
  7. 0:26temperature sensor it is made by Dallas
  8. 0:29semiconductor and here you can find the
  9. 0:31pin assignment and the unique features
  10. 0:33that this temperature sensor offers as
  11. 0:36you can see it is a digital thermometer
  12. 0:39which provides 9 to 12 bit temperature
  13. 0:42readings also it can be interfaced using
  14. 0:45only a single wire this means that the
  15. 0:49power for reading writing and performing
  16. 0:52temperature conversions
  17. 0:53can be derived from the data line itself
  18. 0:55without the need for an external power
  19. 0:57source as part of this blog we will also
  20. 1:00be learning about things peak which is
  21. 1:02an IOT platform service that allows you
  22. 1:05to analyze live data streams on the
  23. 1:08cloud we start off by signing up for a
  24. 1:12things peak account fill in your email
  25. 1:14address and fill in the other details
  26. 1:16that have been asked once you press
  27. 1:22continue a verification mail will be
  28. 1:26sent to your registered email ID
  29. 1:29[Music]
  30. 1:50[Music]
  31. 1:55open the email thread sent by things
  32. 1:58peek and in the bottom you can see that
  33. 2:00they're asking you to log in to your
  34. 2:02things speak account using the email
  35. 2:05address associated with your MathWorks
  36. 2:07account if you don't have a Matt works
  37. 2:10account don't worry we'll cover that
  38. 2:13also as part of the tutorial head over
  39. 2:16to iNDOT MathWorks calm and click on
  40. 2:19sign in at this stage if you don't have
  41. 2:23a MathWorks account it is necessary to
  42. 2:25create one simply fill in the required
  43. 2:29details and you're good to go make sure
  44. 2:35that you're giving the same email
  45. 2:37address for both the things speak
  46. 2:39account and the MathWorks account
  47. 2:40otherwise the two will not be linked
  48. 2:43together
  49. 2:45log in to your mathworks account and in
  50. 2:48a different tab log in to your things
  51. 2:50peak account
  52. 2:54[Music]
  53. 3:04at the home screen click on new channel
  54. 3:07for our application a channel is nothing
  55. 3:12but a place where all the temperature
  56. 3:14values from the sensor will be stored on
  57. 3:17the cloud fill in the name of the
  58. 3:20channel according to your need and the
  59. 3:23description for our application we are
  60. 3:27going to be monitoring temperature so
  61. 3:29our field one will be renamed to
  62. 3:31temperature hit on save channel at the
  63. 3:35bottom of the page and in the home page
  64. 3:38you can see that a new channel has been
  65. 3:39created next we are going to be looking
  66. 3:43at the hardware connections between the
  67. 3:45ds1 8b to 0 temperature sensor and an
  68. 3:49ESP 32 this is the temperature sensor
  69. 3:53probe and at the other end of it you
  70. 3:56have three wires coming out of the
  71. 3:58sensor red is VCC black is ground and
  72. 4:05yellow is signal we are also using a 10k
  73. 4:09resistor for this application connect
  74. 4:13the signal line at one end of the
  75. 4:15resistor
  76. 4:16[Music]
  77. 4:20VCC for the sensor is rated at 3.3 volts
  78. 4:24and connect ground on a different rail
  79. 4:28of the breadboard
  80. 4:30[Music]
  81. 4:35from the ESP 30 to development module we
  82. 4:38are using three pins ground GPIO 23 and
  83. 4:433.3 volts Connect 3.3 volts to the VCC
  84. 4:48of the sensor connect common ground and
  85. 4:56GPIO 23 to the other end of the resistor
  86. 4:59which is connected to the signal pin of
  87. 5:01the sensor the other end of the resistor
  88. 5:07needs to be pulled up high to 5 volts
  89. 5:10and for this we are using an Arduino
  90. 5:15connect the 5 volt pin to the other end
  91. 5:18of the resistor and common ground the
  92. 5:20circuit
  93. 5:21[Music]
  94. 5:25now we'll be looking at the cold part
  95. 5:30[Music]
  96. 5:36in the code we are first including all
  97. 5:39the header files that we require at the
  98. 5:42top
  99. 5:44[Music]
  100. 5:47we are also defining the SSID and
  101. 5:51password of our Wi-Fi network and the
  102. 5:54pin 23 which is connected to the signal
  103. 5:57pin of the sensor the channel ID and
  104. 6:03right API key are two other parameters
  105. 6:06which are important in this application
  106. 6:09we will discuss where to find these two
  107. 6:12parameters in the later section the
  108. 6:15setup function is pretty straightforward
  109. 6:17in which we initialize a serial
  110. 6:20connection between our laptop and the
  111. 6:23ESP board we also start Wi-Fi on the ESP
  112. 6:29board and initialized the thin speak
  113. 6:31section in the loop function we try to
  114. 6:35connect the ESP board to our Wi-Fi
  115. 6:38network using the SSID and password
  116. 6:40credentials provided we also try to
  117. 6:45receive the temperature sensor values
  118. 6:48continuously and publish them to think
  119. 6:51speak at an interval of two seconds now
  120. 6:53let's go ahead and approve the program
  121. 6:56into the ESP
  122. 6:57[Music]
  123. 7:09[Music]
  124. 7:13to find the channel ID and write API
  125. 7:16keys click on the channel that you
  126. 7:19recently created on top you can find the
  127. 7:22channel ID and in the API key section
  128. 7:25you can find the right API key
  129. 7:35as you can see I am continuously writing
  130. 7:38the temperature sensor value on the
  131. 7:42serial monitor and every time I press
  132. 7:45hard on the sensor the temperature gets
  133. 7:47warmer and the sensor readings go up if
  134. 8:01you open the graph on the things peak
  135. 8:03channel that you have created you can
  136. 8:05see that the temperature gets updated
  137. 8:08there periodically in this example we
  138. 8:11are dipping the temperature sensor probe
  139. 8:13into hot water and you can see the jump
  140. 8:16in temperature readings
  141. 8:21[Music]
  142. 8:27in this tutorial we will also be
  143. 8:30learning about pocket IOD which is an
  144. 8:33android application with the help of
  145. 8:36pocket iot we can remotely monitor the
  146. 8:40temperature readings have been stored in
  147. 8:43cloud it's installation is pretty
  148. 8:47straightforward head over to Play Store
  149. 8:49and install the pocket IOT app once
  150. 8:53installed enter the channel credentials
  151. 8:56and you're done
  152. 8:59well guys that was all about the ds1 8b
  153. 9:032:01 by a temperature sensor and
  154. 9:07uploading its temperature readings to
  155. 9:10the cloud using things peak we also saw
  156. 9:14how using an android phone we can
  157. 9:18monitor these temperature readings using
  158. 9:20the pocket iot app for further
  159. 9:24documentation please visit our blog link
  160. 9:27is in the description thank you for
  161. 9:29watching and stay tuned
  162. 9:40[Music]

About this transcript

This page contains the full transcript of DS18B20 Temperature Sensor with ESP32: Wiring & Basic Code Tutorial by Robocraze, generated from the public captions YouTube serves with the video. The transcript has 1,028 words across 162 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.