OneWire with Ind.I/O

Hi. I was trying to convert the OneWire lib for the arduino to run on the 32u4 with the Ind.I/O basecard. The reason for using the Ind.I/O card for this is that I want to be able to use the 4-20mA and 0-10V ports together with the OneWire.

I want to connect the OneWire sensor to one of the digital ports. However, I am having some problems with the timings on the digital ports, since it seems that they can not switchs the level on the ports faster than approximately 500 uS. For the OneWire sensors I need to be able to switch the ports with down to 5 uS.

I tried to increase the speed of the I2C busfrom 100kHz to 400kHz making it able to switch with approximately 125 uS which is still not fast enugh.

Is there any workaround to get OneWire work with the Ind.I/O board, or is it only possible with the Proto board? Are there for example any I/Os in the expansion port which are not used by the Ethernet module which could be used?

jmj
jmj
7
| 3 1 1
Asked on 2/8/16, 8:18 PM
0
vote
3315 Views

You can use the arduino pins directly like normal pins. They are in the 14-pin IDC connector. So just purchse a connector cable and check the pin order to connect OneWire to one of those. Works for me with Dallas temperature sensors.

Samppa Turunen
Samppa Turunen
32
| 0 0 1
Answered on 2/15/16, 7:47 PM
1
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

18 follower(s)

Stats

Asked: 2/8/16, 8:18 PM
Seen: 3315 times
Last updated: 2/15/16, 7:47 PM