element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Ben Heck Featured Content
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • Ben Heck Featured Content
  • More
  • Cancel
Ben Heck Featured Content
Forum 1 Wire GPIO outputs
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Ben Heck Featured Content to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 7 replies
  • Subscribers 44 subscribers
  • Views 970 views
  • Users 0 members are here
  • 1
  • gpio
  • wire
Related

1 Wire GPIO outputs

e14 Contributor
e14 Contributor over 11 years ago

Starting a project with the Arduino, and don't know how many output pins I need yet, but it appears to be a bunch.

 

Don't need many input pins, perhaps four might be enough.

 

Have been looking at the 1 wire I/O boards using the DS2413 chip.

 

Looks good, and I've watched perhaps 20 tutorials on it, and I now know enough to be able to wire up maybe 30 different temperature sensors.

 

BUT, most of my outputs will be simply turning on a light (usually LDs) switch, and a couple will run linear actuators, using PWM and an H-bridge.

 

My question is simple.  After I ask the DS2413 to take a line low (to activate a relay or a transistor, for instance) what happens to the output pin on the DS2413 after I leave and go on to some other software routine?  If I tell it to close a relay, will the relay stay closed after we leave that command?

 

Thanks

 

Tom

  • Sign in to reply
  • Cancel
Parents
  • gadget.iom
    0 gadget.iom over 11 years ago

    if you use onewire.Write then the output will latch at the desired value until your code asks it to change.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 11 years ago in reply to gadget.iom

    Thanks so very much.

     

    Although I've been playing with computers since the late '70s, this is my first tempt to use an Arduino, but it probably won't be my last.

     

    Everyone seems to love to use the one-wire to read things, but have not found one single mention about how to use it to Write stuff.

     

    I just may have to put together a circuit to try it out and make a short tutorial on it.

     

    Thanks again for your answer.

     

    Tom

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • e14 Contributor
    0 e14 Contributor over 11 years ago in reply to gadget.iom

    Thanks so very much.

     

    Although I've been playing with computers since the late '70s, this is my first tempt to use an Arduino, but it probably won't be my last.

     

    Everyone seems to love to use the one-wire to read things, but have not found one single mention about how to use it to Write stuff.

     

    I just may have to put together a circuit to try it out and make a short tutorial on it.

     

    Thanks again for your answer.

     

    Tom

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • gadget.iom
    0 gadget.iom over 11 years ago in reply to e14 Contributor

    You're welcome. Let me know if you require any assistance with code.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 11 years ago in reply to gadget.iom

    Again, thanks for the offer.  Who knows.

     

    Anyone know off the top of their head who this one wire system was first "invented" for?  (And who never used it...)

     

    And another application that saw it, and liked it, and went to town using it?

     

    Tom

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 11 years ago in reply to e14 Contributor

    This says Dallas inented it.

    http://en.wikipedia.org/wiki/1-Wire

     

    Why is probably for external sensors.

     

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 11 years ago in reply to mcb1

    This may, or may not, be direct lineage.

     

    But a similar "1-wire" configuration was proposed to link together many remote sensors in large aircraft.  If I recall correctly, it was actually a three wire version, gnd, positive, and data.  One idea was that some items need to be polled, or commanded, much more frequently than others.

     

    Even small aircraft can get bogged down with lots of control wiring going to various parts of the aircraft.  Several helicopter manufacturers use variations of normal wire to save space.  Bell uses a type of wire with a very thin brown insulation to save space.  I've been told that you can overload one wire in the middle of a bundle until the conductor melts out the ends of the insulation, without harming the rest of the bundle.

     

    Hughes Hellicopters used to use (and probably still uses) a very small shielded audio cable, with the outside diameter much smaller than average shielded cable, just to keep bundles of cable small enough to run through the lightening holes in the structural portions of the aircraft.

     

    But I'm not aware of any manufacturer using the earlier version on aircraft.  But it was apparently adopted in mass by the submarine builders.  The space just inside the hull of most submarines can get very crowded very quickly with huge wiring bungles.  But for redundancy, the have gone to three complete systems running to each, and some small computer in each remote device checks to see if the three lines agree, and discards the errant line.

     

    But then I don't have any actual first hand knowledge of submarines, except the ones I've visited in various museums.

     

    Tom

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Problemchild
    0 Problemchild over 11 years ago in reply to mcb1

    Yep that's why it's referred to as the Dallas 1 wire bus.... At least to those I know.

     

    Any way that probably got dropped when Maxim bought them ..

    http://news.cnet.com/Maxim-buys-Dallas-Semi-for-2.5-bln/2100-12_3-260799.html

    I thought that was only a year or two now I see it's 13 years ago !!!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube