• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

MicroPython Programming with ESP32 – Adding Additional DS18B20 Temperature Sensors?

Q&A Forum › MicroPython Programming with ESP32 – Adding Additional DS18B20 Temperature Sensors?
0 Vote Up Vote Down
Gayland Monken asked 6 years ago

Rui and Sara,
I just finished the above course and everything worked perfectly. Thank you for a great course and the accuracy of your book.
I now would like to build on to the last project and add another DS18B20 temperature sensor or two. Is this possible with little additional coding? Also could the temperatures be graphed in different colors on the same chart?
Again thank you for this course.
Gayland

1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi Gayland.
I’m really happy that you’ve finished the eBook already and that everything went well.
The DS18B20 communicates via 1-Wire communication protocol. So, you can read several temperature sensors wired on the same GPIO.
The code that starts on page 243 has a function called read_ds_sensor() that scans temperature sensors and then, reads the temperature of the sensors found. That function should work fine to return the temperature from several sensors. However, you’ll need to change the code so that you know which temperature corresponds to which sensor.
Yes, you can plot different series on the same chart on Node-RED. I’ve found this great tutorial showing how to do that: http://noderedguide.com/tutorial-node-red-dashboards-multiple-lines-on-a-chart/
I hope this helps.
Kind regards, and thank you for supporting our work.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.