I2C and a Dallas temperature sensor at the serial port

Share your advanced PureBasic knowledge/code with the community.
infratec
Always Here
Always Here
Posts: 7623
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

I2C and a Dallas temperature sensor at the serial port

Post by infratec »

Hi,

since I did't find anything about I2C in the forum and it is not mentioned in the original topic,
I thought it will be a good idea to make a hint to

http://www.purebasic.fr/english/viewtop ... 6&start=15

There you can find a I2C implementation over the serial port.
A Dallas DS1631 I2C temperature sensor is handled by this code.

Best regards,

Bernd

:oops: I hope CrazyFrog112 has nothing against this topic
CrazyFrog112
User
User
Posts: 47
Joined: Sun Jan 27, 2008 6:17 pm

Re: I2C and a Dallas temperature sensor at the serial port

Post by CrazyFrog112 »

I have nothing against this :D
jamba
Enthusiast
Enthusiast
Posts: 144
Joined: Fri Jan 15, 2010 2:03 pm
Location: Triad, NC
Contact:

Re: I2C and a Dallas temperature sensor at the serial port

Post by jamba »

great!
I see I2C in my future...so thanks for posting the link! :mrgreen:
-Jon

Fedora user
But I work with Win7
infratec
Always Here
Always Here
Posts: 7623
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: I2C and a Dallas temperature sensor at the serial port

Post by infratec »

Hi,

here you can find the hardware which will fit the software :D

Image

:oops: I hope that this 'graphic' link is allowed.

Simply use a DS1631 instead of U1
Remove U2 and C4

That's all.

Bernd
CrazyFrog112
User
User
Posts: 47
Joined: Sun Jan 27, 2008 6:17 pm

Re: I2C and a Dallas temperature sensor at the serial port

Post by CrazyFrog112 »

Or you can use this version ( the one I've built ). It powers directly from USB port and the component-list is smaller.
You can add up to 8 sensors in parallel-conection.

Image

The project I'll be working in couple of weeks is for a thermometer that uses 1-wire technology and I will try to translate some codes again.
User_Russian
Addict
Addict
Posts: 1551
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: I2C and a Dallas temperature sensor at the serial port

Post by User_Russian »

CrazyFrog112 wrote:It powers directly from USB port and the component-list is smaller.
Maybe once a temperature sensor connected to the bus USB?
An example can be found here
PC program written in PureBasic :) :)
Post Reply