Page 1 of 1

hotplug i2C devices

Posted: 29 Oct 2019, 19:30
by ingoiot
hi,

when i hotplug my ds18b20 Temp sensor, the esp reboots.
Can i make it hot plugable?

Re: hotplug i2C devices

Posted: 29 Oct 2019, 20:40
by TD-er
The DS18b20 is 1wire, not I2C.

And the Dallas plugin even does cause reboots when it is not properly connected, so I guess hot swap is out of the question for that one.

None of the plugins is written with hot plugging in mind, so it may work, but I would not advice to do so.

Re: hotplug i2C devices

Posted: 30 Oct 2019, 04:50
by ThomasB
Also, keep in mind that hot swapping a powered sensor must use a compatible connector. For example, a TRS phone plug like this can be problematic:

Image

Depending on plug pin-out, connectors like it may briefly short power during plug insertion. That's rarely a good thing to do.

- Thomas

Re: hotplug i2C devices

Posted: 30 Oct 2019, 18:37
by ingoiot
tnx,
looks like i have to stop hotpluggin it^^