Comments on: ESP32 CYD with LVGL: Display Temperature with DS18B20 Sensor (Text and Arc) https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 03 Sep 2024 15:07:27 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-949549 Tue, 20 Aug 2024 10:24:24 +0000 https://randomnerdtutorials.com/?p=159220#comment-949549 In reply to Doug R.

lv_obj_t * arc1
lv_obj_t * arc2
lv_obj_t * arc3

]]>
By: Doug R https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-949255 Mon, 19 Aug 2024 10:35:56 +0000 https://randomnerdtutorials.com/?p=159220#comment-949255 In reply to Sara Santos.

Just to clarify ,
Would you say
lv_obj1_ t * arc
lv_obj_t1* arc , or
lv_obj_t * arc1

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-949238 Mon, 19 Aug 2024 08:43:55 +0000 https://randomnerdtutorials.com/?p=159220#comment-949238 In reply to Doug R.

Hi.
Yes. you need to create two instances.
Regards,
Sara

]]>
By: Doug R https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-949057 Sun, 18 Aug 2024 15:56:40 +0000 https://randomnerdtutorials.com/?p=159220#comment-949057 Hi Sara
I want to have a couple of sensor temp readers and display them on the CYD at the same time.

My question really is in coding, do I need to create another instance of
lv_obj_t * arc ?
Say lv_obj_t1 * arc ?
Of coarse all the t code would need to be replicated to t1 throughout the sketch.

I can get the two curved gauges on the CYD and placed how I want, it’s just how to get second input.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-938521 Wed, 17 Jul 2024 16:01:01 +0000 https://randomnerdtutorials.com/?p=159220#comment-938521 In reply to Douglas Leppard.

Hi.
Yes, you are right.
I’ll fix the code.
Thanks for pointing that out.
Regards,
Sara

]]>
By: Douglas Leppard https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-936789 Fri, 12 Jul 2024 23:14:42 +0000 https://randomnerdtutorials.com/?p=159220#comment-936789 In reply to Ronny Larsson.

I had the same problem. It seems that when you change the flag to F it already converts the temperature to F and doesn’t need the conversion formula. Find the line 1.8 * sensors.getTempFByIndex(0) + 32 and change it to sensors.getTempFByIndex(0) without the conversion formula.

Works for me now.

]]>
By: Jerry https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-935390 Mon, 08 Jul 2024 19:01:43 +0000 https://randomnerdtutorials.com/?p=159220#comment-935390 First, the short connection cable assembly, which plugs into CYD P3 and CN1 connectors on Board backside, is not automatically shipped with a CYD. I learned this fact the hard way. I ordered a CYD. It arrived with no cable assembly. I ordered two more CYD’s making sure that a cable was included with same.

Second, the white lettering on the orange/yellow CYD PCB is hard to read, given the small size lettering on the silkscreen. White lettering does not contrast well printed on an orange/yellow background. The CYD photograph does not offer a clear identification for the CN1 and P3 pin outs. I was finally able to read the pin outs using a fairly powerful magnifying glass.

Third, I had to spend some tine on my CYD identifying which wire colors on my CYD cable matched up with what CN1 and P3 pins.

If it is any help to other CYD users, my cable assembly wire colors/pin out connections are:

CN1 3V3 GPO27 GPO22 Gnd P3 GPO21 GPO22 GPO35 Gnd
Red Yel Blue Blk Red Yel Blue Blk

]]>
By: Ronny Larsson https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-934214 Fri, 05 Jul 2024 01:53:32 +0000 https://randomnerdtutorials.com/?p=159220#comment-934214 Hi Have you tried this code in Fahrenheit degrees?
My code works fine in C degrees but not in F degrees. When I have 30 C and switch to #define TEMP_CELSIUS 0 it shows 186.8 F, any good solution for this problem.
Thanks’
Ronny L

]]>
By: Paolo https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-933923 Thu, 04 Jul 2024 07:39:13 +0000 https://randomnerdtutorials.com/?p=159220#comment-933923 Good morning, I can use a DHT22 as a sensor as an alternative to the DS18B20 sensor.
In case what changes do I need to make to the sketch. Thank you

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-cyd-lvgl-temperature-ds18b20/#comment-933218 Tue, 02 Jul 2024 09:27:22 +0000 https://randomnerdtutorials.com/?p=159220#comment-933218 In reply to Dan.

Hi.
Sure. I’ll create something like that in the future.
Meanwhile, we have a similar project with the BME280 in our new eBook: https://randomnerdtutorials.com/learn-lvgl-esp32-ebook/
Regards,
Sara

]]>