Pages: [1]   Go Down
Author Topic: Arduino as a 1-wire slave device  (Read 1475 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1-Wire devices have a master / slave relationship, where the 1-Wire controller is the "master" and devices like the DS18x20 temp sensors are the "slaves".  

The OneWire library makes it possible to use the Arduino as a 1-Wire controller (several threads here discuss interrogating 1-Wire temp sensors).   Has anyone tried coding for the opposite way around ?  Ie making the micro emulate a 1-Wire slave device?

I have an existing 1-Wire microLan with many different types of slave devices attached.  But sometimes I need some more intelligence than the Dallas chips provide.  It would be really neat to have an Arduino emulate one of the Dallas chips.    

Has anyone had a crack at this?  Starting from scratch is a bit scary!
Logged

Offline Offline
Edison Member
*
Karma: 3
Posts: 1001
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Has anyone had a crack at this?  Starting from scratch is a bit scary!
I've not tried, but if you extract the core functions (read/write) from the "master" library would already be close to having a client library.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would be very interested in that as well!
Any news?
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 177
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This would be really nice, I'm building a 1-wire network and it's a pity I couldn't use Arduinos as slave devices.
However you could use a DS2408 that have 8 I/O pins and hook them to the Arduino. For many applications even 4 could be enough
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Somebody emulated 1-Wire slave device? It is necessary to link two Arduino on distance of 10 metres without superfluous monetary expenses.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Jobless Computer Engineer
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Himm. Are you sure about there is no OW Slave code for Arduino?  :o
I don't expect that. Now working on serialize GLCD library via i2c, I wanted to support OneWire protocol at my GLCD backpack device too.

 :-/ Anyway. I implement OneWire Slave protocol to PIC16F628 with ASM (because of using 4Mhz IntOSC = 1MIPS), It looks I needed reimplement samething to arduino, but this time with C... smiley-razz
Logged

South Africa
Offline Offline
Jr. Member
**
Karma: 8
Posts: 99
if (num1 = num2) {A big mistake!} else {This will never work!}
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Has anyone had a crack at developing code for a onewire slave using an Arduino?
Logged

Pages: [1]   Go Up
Jump to: