hotplug i2C devices

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ingoiot
Normal user
Posts: 83
Joined: 15 Aug 2019, 22:09

hotplug i2C devices

#1 Post by ingoiot » 29 Oct 2019, 19:30

hi,

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

TD-er
Core team member
Posts: 8747
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: hotplug i2C devices

#2 Post by TD-er » 29 Oct 2019, 20:40

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.

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: hotplug i2C devices

#3 Post by ThomasB » 30 Oct 2019, 04:50

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

ingoiot
Normal user
Posts: 83
Joined: 15 Aug 2019, 22:09

Re: hotplug i2C devices

#4 Post by ingoiot » 30 Oct 2019, 18:37

tnx,
looks like i have to stop hotpluggin it^^

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests