Onewire Temperature Sensor #624
Replies: 3 comments 2 replies
-
I don't recommend "Parasitic mode" powering - which is what you are trying. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the answer, Arnie. I use "parasitic power" configuration both with bit-banging, through transistor level-converting and onewire bridge from Dallas in various circuits without any issues. I'll try your suggestion. I've placed debug output in updateTemperatures() in HwTools.cpp, which is the only reference to onewire, but this function doesn't seem to be called at all. Do I need to activate/include any functions, or is the onewire activated/included by default, and only the correct pin need to be chosen? Is there any particular pin(s) for the onewire on the ESP32? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the information. I've solved the issue. I've found out that the temperature is updated in relation with reading the HAN data. As I was testing without a HAN connection, the temperature was not read. Now I have tried both with parasitic mode and supplied mode, both configurations work without any issues. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've connected a DS18B20 to IO pin 23, and selected this pin in the configuration page. Pin 1 and 3 of the temperature sensor has been connected to GND, and a pull-up (3.3V) resistor connected to pin 2 of the sensor.. The temperature sensor doesn't seem to be detected, nor found. Is there any small detail that I miss in order to activate the onewire interface?
Best regards,
Flemming
Beta Was this translation helpful? Give feedback.
All reactions