3.5mm jack plug DS18B20 'hot pluggable' into NODEMCU?
Posted: Wed Jul 29, 2020 5:38 pm
Apologies if this is a dumb question.
I have a DS18B20 temperature sensor plugged into a 3.5mm jack on the bread board and hooked up to pin D5 in the ESP8266 NODEMCU.
THE DS18B20 is wired as
Tip - data
Ring - 3.3v
Sleeve -ground
I am using the Onewire and DallasTemperature and it is all working just fine and reporting back on 2 temp sensors.
If I start up a simple sketch unrelated to the temp probes and run it , it works fine.
However if I unplug the temp probe from the 3.5mm jack, the program crashes . Every program crashes that I run if I unplug the sensor jack plug from the board.
Is this to be expected? (I did apologize in case it was a dumb question!).
Should a component not be removed whilst there is power to it?
I have tried removing the 3.3v wire on the breadboard to the plug and the program continues to run . Tried it with the data and ground also and again, continues to work.
So I am assuming that the removal of the jack plug is shorting something out whilst being pulled?
Thanks in advance !!
I have a DS18B20 temperature sensor plugged into a 3.5mm jack on the bread board and hooked up to pin D5 in the ESP8266 NODEMCU.
THE DS18B20 is wired as
Tip - data
Ring - 3.3v
Sleeve -ground
I am using the Onewire and DallasTemperature and it is all working just fine and reporting back on 2 temp sensors.
If I start up a simple sketch unrelated to the temp probes and run it , it works fine.
However if I unplug the temp probe from the 3.5mm jack, the program crashes . Every program crashes that I run if I unplug the sensor jack plug from the board.
Is this to be expected? (I did apologize in case it was a dumb question!).
Should a component not be removed whilst there is power to it?
I have tried removing the 3.3v wire on the breadboard to the plug and the program continues to run . Tried it with the data and ground also and again, continues to work.
So I am assuming that the removal of the jack plug is shorting something out whilst being pulled?
Thanks in advance !!