Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

71%
+3 −0
Q&A 1-wire interface overvoltage protection

I'm designing a robust 1-wire output for an IoT board. The interface should be able to withstand high voltage. Mainly the same voltage level as the board power supply. That's 12V to 36V DC. The p...

1 answer  ·  posted 8mo ago by DeadMouse‭  ·  last activity 8mo ago by Olin Lathrop‭

#3: Post edited by user avatar DeadMouse‭ · 2024-03-10T16:11:24Z (8 months ago)
  • I'm designing a robust 1-wire output for an IoT board.
  • The interface should be able to withstand high voltage. Mainly the same voltage level as the board power supply. That's 12V to 36V DC.
  • The protection is intended for the board only, not the devices connected to it.
  • Consider the protection must be able to withstand permanent voltage.
  • This is what I came up with.
  • I'm not going to use UART as `TX` and `RX` lines. I'll do it by software, I separated the direction because it's easier to provide a stronger protection. I'm not sure how to merge the two lines.
  • The `OUT` label is where the 1-wire goes out of the board. `RX` and `TX` are the two lines that go directly to microcontroller.
  • R18 is the 1-wire pullup.
  • D5 protects protects the 3.3V line from the high-voltage that might apply on the line.
  • Mosfet VDS should be able to withstand the high-voltage. The mosfet circuitry is used to overcome the high resistance of R23 when the microcontroller wants to transmit data to the line.
  • ![Circuit](https://electrical.codidact.com/uploads/ax21ot9v3xovcs2zecceec43bj1f)
  • I'm designing a robust 1-wire output for an IoT board.
  • The interface should be able to withstand high voltage. Mainly the same voltage level as the board power supply. That's 12V to 36V DC.
  • The protection is intended for the board only, not the devices connected to it.
  • Consider the protection must be able to withstand permanent voltage.
  • This is what I came up with.
  • I'm not going to use UART as `TX` and `RX` lines. I'll do it by software, I separated the direction because it's easier to provide a stronger protection. I'm not sure how to merge the two lines.
  • The `OUT` label is where the 1-wire goes out of the board. `RX` and `TX` are the two lines that go directly to microcontroller.
  • R18 is the 1-wire pullup.
  • D5 protects protects the 3.3V line from the high-voltage that might apply on the line.
  • Mosfet VDS should be able to withstand the high-voltage. The mosfet circuitry is used to overcome the high resistance of R23 when the microcontroller wants to transmit data to the line.
  • Will that work?
  • ![Circuit](https://electrical.codidact.com/uploads/ax21ot9v3xovcs2zecceec43bj1f)
#2: Post edited by user avatar DeadMouse‭ · 2024-03-10T16:09:05Z (8 months ago)
  • I'm designing a robust 1-wire output for an IoT board.
  • The interface should be able to withstand high voltage. Mainly the same voltage level as the board power supply. That's 12V to 36V DC.
  • The protection is intended for the board only, not the devices connected to it.
  • Consider the protection must be able to withstand permanent voltage.
  • This is what I came up with.
  • I'm not going to use UART as `TX` and `RX` lines. I'll do it by software, I separated the direction because it's easier to provide a stronger protection. I'm not sure how to merge the two lines.
  • The `OUT` label is where the 1-wire goes out of the board. `RX` and `TX` are the two lines that go directly to microcontroller.
  • R18 is the 1-wire pullup.
  • Mosfet VDS should be able to withstand the high-voltage. The mosfet circuitry is used to overcome the high resistance of R23 when the microcontroller wants to transmit data to the line.
  • ![Circuit](https://electrical.codidact.com/uploads/ax21ot9v3xovcs2zecceec43bj1f)
  • I'm designing a robust 1-wire output for an IoT board.
  • The interface should be able to withstand high voltage. Mainly the same voltage level as the board power supply. That's 12V to 36V DC.
  • The protection is intended for the board only, not the devices connected to it.
  • Consider the protection must be able to withstand permanent voltage.
  • This is what I came up with.
  • I'm not going to use UART as `TX` and `RX` lines. I'll do it by software, I separated the direction because it's easier to provide a stronger protection. I'm not sure how to merge the two lines.
  • The `OUT` label is where the 1-wire goes out of the board. `RX` and `TX` are the two lines that go directly to microcontroller.
  • R18 is the 1-wire pullup.
  • D5 protects protects the 3.3V line from the high-voltage that might apply on the line.
  • Mosfet VDS should be able to withstand the high-voltage. The mosfet circuitry is used to overcome the high resistance of R23 when the microcontroller wants to transmit data to the line.
  • ![Circuit](https://electrical.codidact.com/uploads/ax21ot9v3xovcs2zecceec43bj1f)
#1: Initial revision by user avatar DeadMouse‭ · 2024-03-10T16:08:03Z (8 months ago)
1-wire interface overvoltage protection
I'm designing a robust 1-wire output for an IoT board.  

The interface should be able to withstand high voltage. Mainly the same voltage level as the board power supply. That's 12V to 36V DC.

The protection is intended for the board only, not the devices connected to it.

Consider the protection must be able to withstand permanent voltage.

This is what I came up with.

I'm not going to use UART as `TX` and `RX` lines. I'll do it by software, I separated the direction because it's easier to provide a stronger protection. I'm not sure how to merge the two lines.

The `OUT` label is where the 1-wire goes out of the board. `RX` and `TX` are the two lines that go directly to microcontroller.

R18 is the 1-wire pullup.   
Mosfet VDS should be able to withstand the high-voltage. The mosfet circuitry is used to overcome the high resistance of R23 when the microcontroller wants to transmit data to the line.

![Circuit](https://electrical.codidact.com/uploads/ax21ot9v3xovcs2zecceec43bj1f)