Go Down

Topic: Running I2C and 1-wire devices together (Read 1 time) previous topic - next topic

chewie

Is this possible ?

I want to use a DS1307 RTC (I2C) with a DS1820 thermometer and a DS2433 EEPROM (both 1-wire) for a simple data logger.

H/W is not my area of expertise so I am looking for some guidance.

I am confused by conflicting descriptions of the I/F. I have located code examples for each device they just don't look like they can hang together.

Any advice gratefully received.

Chewie

Grumpy_Mike

Quote
they just don't look like they can hang together.


What makes you say that?
I would have thought you can run them both. There is nothing fundamentally mutually exclusive about the two protocols.

NVRDUNN

They will work together. I'm working on a home monitoring system that's connected to I2C (RTC & EEPROM), 1-Wire (Temp and A/D) and SPI (DOGM GLCD Display). I have the system working right now with a single 1-wire device, logging to the EEPROM and graphing to the GLCD.

The best approach I found is work on it as spate pieces. 1st get the 1-wire part working (this seems to be the most difficult one of the 3). Once you have that working, then add in the I2C then SPI. As I add each piece, I debug with info out the serial port to make sure everything is still working.

chewie

OK, I'll give it a try. Maybe I am put off by the different coding styles.

Thanks

robtillaart

#4
Dec 02, 2010, 11:08 pm Last Edit: Dec 02, 2010, 11:13 pm by robtillaart Reason: 1
check http://www.ladyada.net/make/logshield/ works like a charm for me, has RTC (I2C) and SDCARD (SPI) I used it for multiple  DS18B20's and some IRQ based counter's and log them on SD-card so I could read the data on my PC
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

robtillaart

As stated above I used DS18b20's temp sensors that's 1 wire
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy